Documentation ¶ Index ¶ func NewNotifier(notifierConfig map[string]string) types.Notifier type Notifier func (wh *Notifier) Name() string func (wh *Notifier) Payload(e types.InteractionEvent) ([]byte, error) func (wh *Notifier) Send(event types.InteractionEvent) error type POSTData Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewNotifier ¶ func NewNotifier(notifierConfig map[string]string) types.Notifier Types ¶ type Notifier ¶ type Notifier struct { *webhook.Notifier User string Icon string } func (*Notifier) Name ¶ func (wh *Notifier) Name() string func (*Notifier) Payload ¶ func (wh *Notifier) Payload(e types.InteractionEvent) ([]byte, error) func (*Notifier) Send ¶ func (wh *Notifier) Send(event types.InteractionEvent) error type POSTData ¶ type POSTData struct { Username string `json:"username"` AvatarURL string `json:"avatar_url"` Content string `json:"content"` } Source Files ¶ View all Source files logging.gonotifier.go Click to show internal directories. Click to hide internal directories.