Documentation ¶
Index ¶
- func NewClientFromConfig(cfg *v3.HTTPClientConfig) (*http.Client, error)
- func SendMessage(notifier *v3.Notifier, recipient string, msg *Message) error
- func TestEmail(host, password, username string, port int, requireTLS bool, ...) error
- func TestPagerduty(key, msg string, cfg *v3.HTTPClientConfig) error
- func TestSlack(url, channel, msg string, cfg *v3.HTTPClientConfig) error
- func TestWebhook(url, msg string, cfg *v3.HTTPClientConfig) error
- func TestWechat(secret, agent, corp, receiverType, receiver, msg string, ...) error
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientFromConfig ¶
func NewClientFromConfig(cfg *v3.HTTPClientConfig) (*http.Client, error)
NewClientFromConfig returns a new HTTP client configured for the given HTTPClientConfig.
func TestPagerduty ¶
func TestPagerduty(key, msg string, cfg *v3.HTTPClientConfig) error
func TestWebhook ¶
func TestWebhook(url, msg string, cfg *v3.HTTPClientConfig) error
func TestWechat ¶
func TestWechat(secret, agent, corp, receiverType, receiver, msg string, cfg *v3.HTTPClientConfig) error
Types ¶
Click to show internal directories.
Click to hide internal directories.