Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlerterCreater ¶
type AlerterCreater interface { GetTypes() []string // Create 根据config生成一个alert GetAlerter(alertConfig map[string]interface{}) (interface{}, error) }
AlerterCreater 产生者 将产生逻辑规定到Alert的出生地
type ConfigError ¶
type ConfigError struct {
Message string
}
ConfigError 配置错误
func (ConfigError) Error ¶
func (configError ConfigError) Error() string
type HTTPAlert ¶
type HTTPAlert struct {
Url string
}
HTTPAlert http 报警方式
func (HTTPAlert) GetAlerter ¶
Create 。。。
type LogAlert ¶
type LogAlert struct { }
LogAlert 打印日志报警方式,默认报警方式,当没有任何报警方式时,自动添加该报警方式
func (LogAlert) GetAlerter ¶
Create 。。。
type MailAlert ¶
type MailAlert struct { Mail util.Mail To []string Subject string Content string // contains filtered or unexported fields }
MailAlert 发送邮件报警方式
func (MailAlert) GetAlerter ¶
Create 。。。
type NotFoundError ¶
type NotFoundError struct {
Message string
}
func (NotFoundError) Error ¶
func (notFoundError NotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.