package
Version:
v0.8.4
Opens a new window with list of versions in this module.
Published: Sep 10, 2026
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
TemplateBlue = "blue"
TemplateOrange = "orange"
TemplateRed = "red"
)
Card templates (Lark/Feishu header colors).
func NewBot(url, serviceName string)
Bot posts interactive cards to a single webhook URL (Lark/Feishu bot). Each bot has its own URL, so create one Bot per notification target.
Notify sends msg to the registered bot, if any and not disabled.
type Card struct {
MsgType string `json:"msg_type"`
Card cardBody `json:"card"`
}
Card mirrors a single-block Lark/Feishu interactive card payload.
func NewCard(title, template, content string) Card
NewCard builds a single-block interactive card
Source Files
¶
Click to show internal directories.
Click to hide internal directories.