Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionModule ¶
type ActionModule struct { Tag string `json:"tag"` Actions []Interactive `json:"actions"` }
type ButtonModule ¶
type ButtonModule struct { Tag string `json:"tag"` Text *TextModule `json:"text"` Url string `json:"url,omitempty"` MultiUrl *UriModule `json:"multi_url,omitempty"` Type string `json:"type,omitempty"` Value map[string]string `json:"value,omitempty"` Confirm *ConfirmModule `json:"confirm,omitempty"` }
func (ButtonModule) SetValue ¶
func (p ButtonModule) SetValue(key string, value string)
type CardConfig ¶
type CardConfig struct {
WideScreenMode bool `json:"wide_screen_mode"`
}
type CardHeader ¶ added in v1.0.8
type CardHeader struct {
Title *TextModule `json:"title"`
}
type ConfirmModule ¶
type ConfirmModule struct { Title TextModule `json:"title"` Text TextModule `json:"text"` }
type ContentModule ¶ added in v1.0.6
type ContentModule struct { Tag string `json:"tag"` Text *TextModule `json:"text"` Fields []*Field `json:"fields,omitempty"` }
type Field ¶
type Field struct { IsShort bool `json:"is_short"` Text *TextModule `json:"text"` }
type ImageModule ¶
type ImageModule struct { Tag string `json:"tag"` ImgKey string `json:"img_key"` Alt *TextModule `json:"alt"` Title *TextModule `json:"title,omitempty"` }
type Interactive ¶
type MessageCard ¶
type MessageCard struct { Config *CardConfig `json:"config,omitempty"` Header *CardHeader `json:"header,omitempty"` Elements []interface{} `json:"elements"` }
type TextModule ¶
Click to show internal directories.
Click to hide internal directories.