Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgRepo ¶
Types ¶
type DingDingHookResp ¶
func (*DingDingHookResp) Error ¶
func (l *DingDingHookResp) Error() string
type FeiShuHookResp ¶
type FeiShuHookResp struct { Code int `json:"code"` Msg string `json:"msg"` Data any `json:"data"` }
func (*FeiShuHookResp) Error ¶
func (l *FeiShuHookResp) Error() string
type HookNotify ¶
type HookNotify interface { // Alarm 告警通知接口 Alarm(ctx context.Context, url string, msg *HookNotifyMsg) error }
func NewDingNotify ¶
func NewDingNotify() HookNotify
func NewFeishuNotify ¶
func NewFeishuNotify() HookNotify
func NewHookNotify ¶
func NewHookNotify(app vobj.NotifyApp) HookNotify
func NewOtherNotify ¶
func NewOtherNotify() HookNotify
func NewWechatNotify ¶
func NewWechatNotify() HookNotify
type HookNotifyMsg ¶
type WechatHookResp ¶
func (*WechatHookResp) Error ¶
func (l *WechatHookResp) Error() string
type WechatMarkdown ¶
type WechatMarkdown struct {
Content string `json:"content"`
}
Click to show internal directories.
Click to hide internal directories.