Documentation ¶
Index ¶
- Constants
- func GetColorTemplateWithStatus(status config.Status) string
- type Action
- type Config
- type DingDingAt
- type DingDingMarkDown
- type DingDingMessage
- type FeiShuContentV2
- type FeiShuMessage
- type FeiShuMessageV2
- type Field
- type Header
- type I18NElements
- type IMNotifyService
- func (w *IMNotifyService) SendDingDingMessage(uri, title, content string, atMobiles []string, isAtAll bool) error
- func (w *IMNotifyService) SendFeishuMessage(uri string, lcMsg *LarkCard) error
- func (w *IMNotifyService) SendFeishuMessageOfSingleType(title, uri, content string) error
- func (w *IMNotifyService) SendMessageRequest(uri string, message interface{}) ([]byte, error)
- func (w *IMNotifyService) SendWeChatWorkMessage(textType TextType, uri, content string) error
- type IMNotifyType
- type LarkCard
- type LarkCardReq
- type Markdown
- type Messsage
- type Text
- type TextElem
- type TextType
- type Title
- type WeChatWorkCard
- type ZhCn
Constants ¶
View Source
const ( WeChatWorkType = "wechat" MarkdownColorInfo = "info" MarkdownColorComment = "comment" MarkdownColorWarning = "warning" WeChatTextTypeText TextType = "text" WeChatTextTypeMarkdown TextType = "markdown" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DingDingAt ¶
type DingDingMarkDown ¶
type DingDingMessage ¶
type DingDingMessage struct { MsgType string `json:"msgtype"` MarkDown *DingDingMarkDown `json:"markdown"` At *DingDingAt `json:"at"` }
type FeiShuContentV2 ¶
type FeiShuContentV2 struct {
Text string `json:"text"`
}
type FeiShuMessage ¶
type FeiShuMessageV2 ¶
type FeiShuMessageV2 struct { MsgType string `json:"msg_type"` Content FeiShuContentV2 `json:"content"` }
type I18NElements ¶
type I18NElements struct {
ZhCn []*ZhCn `json:"zh_cn"`
}
type IMNotifyService ¶
type IMNotifyService struct {
// contains filtered or unexported fields
}
func NewIMNotifyClient ¶
func NewIMNotifyClient() *IMNotifyService
func (*IMNotifyService) SendDingDingMessage ¶
func (w *IMNotifyService) SendDingDingMessage(uri, title, content string, atMobiles []string, isAtAll bool) error
func (*IMNotifyService) SendFeishuMessage ¶
func (w *IMNotifyService) SendFeishuMessage(uri string, lcMsg *LarkCard) error
func (*IMNotifyService) SendFeishuMessageOfSingleType ¶
func (w *IMNotifyService) SendFeishuMessageOfSingleType(title, uri, content string) error
func (*IMNotifyService) SendMessageRequest ¶
func (w *IMNotifyService) SendMessageRequest(uri string, message interface{}) ([]byte, error)
func (*IMNotifyService) SendWeChatWorkMessage ¶
func (w *IMNotifyService) SendWeChatWorkMessage(textType TextType, uri, content string) error
type IMNotifyType ¶
type IMNotifyType string
const ( IMNotifyTypeDingDing IMNotifyType = "dingding" IMNotifyTypeWeChat IMNotifyType = "wechat" IMNotifyTypeLark IMNotifyType = "feishu" )
type LarkCard ¶
type LarkCard struct { Config *Config `json:"config"` Header *Header `json:"header"` I18NElements *I18NElements `json:"i18n_elements"` }
func NewLarkCard ¶
func NewLarkCard() *LarkCard
func (*LarkCard) AddI18NElementsZhcnAction ¶
func (*LarkCard) AddI18NElementsZhcnFeild ¶
type LarkCardReq ¶
type WeChatWorkCard ¶
Click to show internal directories.
Click to hide internal directories.