Documentation ¶
Index ¶
- type Action
- type BranchTagType
- type Config
- type DingDingAt
- type DingDingMarkDown
- type DingDingMessage
- type FeiShuContentV2
- type FeiShuMessage
- type FeiShuMessageV2
- type Field
- type Header
- type I18NElements
- type LarkCard
- type LarkCardReq
- type Markdown
- type Messsage
- type Service
- func (w *Service) SendInstantMessage(task *task.Task, testTaskStatusChanged, scanningTaskStatusChanged bool) error
- func (w *Service) SendMessageRequest(uri string, message interface{}) ([]byte, error)
- func (w *Service) SendWeChatWorkMessage(textType TextType, uri, content string) error
- func (w *Service) SendWorkflowTaskAproveNotifications(workflowName string, taskID int64) error
- func (w *Service) SendWorkflowTaskNotifications(task *models.WorkflowTask) error
- type Text
- type TextElem
- type TextType
- type Title
- type WeChatWorkCard
- type ZhCn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchTagType ¶
type BranchTagType string
const ( BranchTagTypeBranch BranchTagType = "Branch" BranchTagTypeTag BranchTagType = "Tag" CommitMsgInterceptLength = 60 )
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 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 Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewWeChatClient ¶
func NewWeChatClient() *Service
func (*Service) SendInstantMessage ¶
func (*Service) SendMessageRequest ¶
func (*Service) SendWeChatWorkMessage ¶
func (*Service) SendWorkflowTaskAproveNotifications ¶
func (*Service) SendWorkflowTaskNotifications ¶
func (w *Service) SendWorkflowTaskNotifications(task *models.WorkflowTask) error
type WeChatWorkCard ¶
Click to show internal directories.
Click to hide internal directories.