Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscordWebhook ¶
type DiscordWebhook struct { URL string Client *webhook.Client Connected bool AllowedNotifs []string }
func (*DiscordWebhook) Connect ¶
func (d *DiscordWebhook) Connect() (bool, string)
func (*DiscordWebhook) FromConfig ¶
func (d *DiscordWebhook) FromConfig(config viper.Viper)
type GotifyNotifs ¶
type GotifyNotifs struct { URL string Client *client.GotifyREST AuthToken string Connected bool AllowedNotifs []string Log log.Logger }
func (*GotifyNotifs) Connect ¶
func (d *GotifyNotifs) Connect() bool
func (*GotifyNotifs) FromConfig ¶
func (d *GotifyNotifs) FromConfig(config viper.Viper)
type Healthchecks ¶
type Healthchecks struct { AllowedNotifs []string URL string // contains filtered or unexported fields }
func (Healthchecks) Connect ¶
func (h Healthchecks) Connect() bool
func (*Healthchecks) FromConfig ¶
func (h *Healthchecks) FromConfig(config viper.Viper)
type Notifications ¶
type Notifications struct { EnabledServices []Notification Log log.Logger // contains filtered or unexported fields }
func (*Notifications) Connect ¶
func (n *Notifications) Connect()
func (*Notifications) FromConfig ¶
func (n *Notifications) FromConfig(c viper.Viper)
type Notifywebhook ¶
type Notifywebhook struct { AllowedNotifs []string Log log.Logger // contains filtered or unexported fields }
func (*Notifywebhook) Connect ¶
func (n *Notifywebhook) Connect() bool
func (*Notifywebhook) FromConfig ¶
func (n *Notifywebhook) FromConfig(config viper.Viper)
type Pushbullet ¶
type Pushbullet struct { AllowedNotifs []string Log log.Logger // contains filtered or unexported fields }
func (*Pushbullet) Connect ¶
func (p *Pushbullet) Connect() bool
func (*Pushbullet) FromConfig ¶
func (p *Pushbullet) FromConfig(config viper.Viper)
type Pushover ¶
type Pushover struct { AllowedNotifs []string Log log.Logger // contains filtered or unexported fields }
func (*Pushover) FromConfig ¶
type SplunkEvent ¶
type SplunkEvent struct { Event *SplunkEventData `json:"event"` Time int64 `json:"time"` SourceType string `json:"sourcetype"` }
type SplunkEventData ¶
type SplunkHEC ¶
type SplunkHEC struct { URL string Token string Connected bool AllowedNotifs []string Log log.Logger }
func (*SplunkHEC) FromConfig ¶
Click to show internal directories.
Click to hide internal directories.