Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeiShuHook ¶
func NewFeishuHook ¶
func NewFeishuHook(token, url string) *FeiShuHook
func (*FeiShuHook) Push ¶
func (f *FeiShuHook) Push(msgType FeiShuMsgType, title, content string) error
飞书自定义机器人, 目前仅支持文字和富文本
msgType: 1-纯文本 2-富文本 msgType为1时,title为发送的文字信息,content置空 msgType为2时,title为富文本标题,content为富文本内容
type FeiShuMsgType ¶
type FeiShuMsgType int
const ( FText FeiShuMsgType = 1 // 普通文本消息 FFullText FeiShuMsgType = 2 // 富文本消息 )
Click to show internal directories.
Click to hide internal directories.