Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
func ExampleConfig ¶
func ExampleConfig() []*Config
type SMTPConfig ¶
type SMTPConfig struct { Username string `mapstructure:"username"` Password string `mapstructure:"password"` From string `mapstructure:"from"` Server string `mapstructure:"Server"` }
func SMTPExampleConfig ¶
func SMTPExampleConfig() *SMTPConfig
func (*SMTPConfig) Send ¶
func (cfg *SMTPConfig) Send(targets []string, message string)
type TelegramConfig ¶
func TelegramConfigExample ¶
func TelegramConfigExample() *TelegramConfig
func (*TelegramConfig) Send ¶
func (cfg *TelegramConfig) Send(targets []string, message string)
type WebHookConfig ¶
type WebHookConfig struct { Method string `mapstructure:"method"` Timeout time.Duration `mapstructure:"timeout"` }
func WebHookExampleConfig ¶
func WebHookExampleConfig() *WebHookConfig
func (*WebHookConfig) Send ¶
func (cfg *WebHookConfig) Send(targets []string, message string)
Click to show internal directories.
Click to hide internal directories.