Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alarm ¶
type Alarm interface { SetProxy(string) SetHookURL(string) Send(ctx context.Context, content string) error Method() string }
Alarm interface
type DingDing ¶
type DingDing struct {
// contains filtered or unexported fields
}
DingDing dingding alarm implementation
func NewDingDing ¶
func NewDingDing() *DingDing
func (*DingDing) SetHookURL ¶
SetHookURL set RequestURL eg: https://oapi.dingtalk.com/robot/send?access_token=xxxxx
type Telegram ¶ added in v0.2.6
type Telegram struct {
// contains filtered or unexported fields
}
func NewTelegram ¶ added in v0.2.6
func NewTelegram() *Telegram
func (*Telegram) SetHookURL ¶ added in v0.2.6
SetHookURL setting RequestURL eg:https://api.telegram.org/bot{token}/sendMessage?chat_id={chatId}
Click to show internal directories.
Click to hide internal directories.