Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultHttpReqTimeout = 30 * time.Second
View Source
const DefaultSlackTimeout = 5 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
var (
Client HTTPClient
)
type HTTPClientMock ¶
type Site ¶
type Site struct {
URL string `yaml:"url"`
Interval string `yaml:"interval"`
Code uint16 `yaml:"code"`
}
func (Site) CheckUrlStatus ¶
type SiteConfig ¶
type SiteConfig struct {
Sites []Site `yaml:"sites"`
}
type SlackConfig ¶
type SlackConfig struct {
WebhookURL string `yaml:"webhook_url"`
Username string `yaml:"username"`
Channel string `yaml:"channel"`
TimeOut time.Duration `yaml:"timeout"`
}
func (SlackConfig) SendSlackNotification ¶
func (sc SlackConfig) SendSlackNotification(sr SlackRequest) error
type SlackMessage ¶
type SlackRequest ¶
Click to show internal directories.
Click to hide internal directories.