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
Log *logging.Log
Localizer *i18n.Localizer
}
func (*DiscordWebhook) Connect ¶
func (d *DiscordWebhook) Connect() bool
func (*DiscordWebhook) FromConfig ¶
func (d *DiscordWebhook) FromConfig(config koanf.Koanf)
type GotifyNotifs ¶
type GotifyNotifs struct {
URL string
Client *client.GotifyREST
AuthToken string
Connected bool
AllowedNotifs []string
Log *logging.Log
Localizer *i18n.Localizer
}
func (*GotifyNotifs) Connect ¶
func (d *GotifyNotifs) Connect() bool
func (*GotifyNotifs) FromConfig ¶
func (d *GotifyNotifs) FromConfig(config koanf.Koanf)
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 koanf.Koanf)
type Notifications ¶
type Notifications struct {
EnabledServices []Notification
Log *logging.Log
Localizer *i18n.Localizer
// contains filtered or unexported fields
}
func (*Notifications) Connect ¶
func (n *Notifications) Connect()
func (*Notifications) FromConfig ¶
func (n *Notifications) FromConfig(c *koanf.Koanf)
type Notifywebhook ¶
type Notifywebhook struct {
AllowedNotifs []string
Log *logging.Log
// contains filtered or unexported fields
}
func (*Notifywebhook) Connect ¶
func (n *Notifywebhook) Connect() bool
func (*Notifywebhook) FromConfig ¶
func (n *Notifywebhook) FromConfig(config koanf.Koanf)
type NtfyNotifs ¶
type NtfyNotifs struct {
AllowedNotifs []string
Log *logging.Log
Localizer *i18n.Localizer
// contains filtered or unexported fields
}
func (*NtfyNotifs) Connect ¶
func (n *NtfyNotifs) Connect() bool
func (*NtfyNotifs) FromConfig ¶
func (n *NtfyNotifs) FromConfig(config koanf.Koanf)
type Pushbullet ¶
type Pushbullet struct {
AllowedNotifs []string
Log *logging.Log
Localizer *i18n.Localizer
// contains filtered or unexported fields
}
func (*Pushbullet) Connect ¶
func (p *Pushbullet) Connect() bool
func (*Pushbullet) FromConfig ¶
func (p *Pushbullet) FromConfig(config koanf.Koanf)
type Pushover ¶
type Pushover struct {
AllowedNotifs []string
Log *logging.Log
Localizer *i18n.Localizer
// contains filtered or unexported fields
}
func (*Pushover) FromConfig ¶
type SMTPNotifs ¶
type SMTPNotifs struct {
AllowedNotifs []string
Log *logging.Log
Localizer *i18n.Localizer
// contains filtered or unexported fields
}
func (*SMTPNotifs) Connect ¶
func (s *SMTPNotifs) Connect() bool
func (*SMTPNotifs) FromConfig ¶
func (s *SMTPNotifs) FromConfig(config koanf.Koanf)
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 *logging.Log
Localizer *i18n.Localizer
}
func (*SplunkHEC) FromConfig ¶
Click to show internal directories.
Click to hide internal directories.