1
0
mirror of https://github.com/nikoksr/notify.git synced 2024-11-28 08:39:13 +02:00
notify/service/pseudo/pseudo.go

16 lines
445 B
Go

package pseudo
// Pseudo struct represents a dummy notification service.
type Pseudo struct{}
// New returns a new instance of a Pseudo notification service. This is used internally to initialize
// notification services list and prevent nil-reference errors.
func New() *Pseudo {
return &Pseudo{}
}
// Send basically does nothing. Just here to conform the notify.Notifier interface.
func (Pseudo) Send(string, string) error {
return nil
}