Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder interface { Build() Receivers SetToUser(toUser []string) Builder SetToParty(toParty string) Builder SetToTag(toTag string) Builder SetAgentId(agentId int) Builder }
func NewReceiversBuilder ¶
func NewReceiversBuilder() Builder
type CardMessage ¶
type CardMessage struct { Receivers TemplateCard }
func NewCardMessage ¶
func NewCardMessage(builder Receivers, card TemplateCard) *CardMessage
func (*CardMessage) Message ¶
func (m *CardMessage) Message() (map[string]interface{}, error)
type CustomMessage ¶
type CustomMessage struct {
Custom map[string]interface{}
}
func NewCustomMessage ¶
func NewCustomMessage(custom map[string]any) *CustomMessage
type MarkdownMessage ¶
type MarkdownMessage struct { Receivers MsgType string `json:"msgtype"` Content string `json:"content"` }
func NewMarkdownMessage ¶
func NewMarkdownMessage(builder Receivers, content string) *MarkdownMessage
type TemplateCard ¶
type TextMessage ¶
type TextMessage struct { Receivers MsgType string `json:"msgtype"` Content string `json:"content"` }
func NewTextMessage ¶
func NewTextMessage(builder Receivers, content string) *TextMessage
Click to show internal directories.
Click to hide internal directories.