Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Payload ¶
type Payload struct { Raw string `json:"raw"` Title string `json:"title"` Text string `json:"text"` Markdown string `json:"markdown"` // Don't put Title content in Markdown Files []string `json:"files"` Images []Image `json:"images"` Links []Link `json:"links"` Buttons []Button `json:"buttons"` At At `json:"at"` }
The purpse of Payload is to hide the complexity of constructing channel-specific Msg. Because each specific channel provides suitable Payload2MsgFn(s) convertion functions for its supported msgType(s).
type PayloadGenerator ¶
type PayloadGenerator interface {
ToPayload() *Payload
}
Click to show internal directories.
Click to hide internal directories.