model

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2021 License: Apache-2.0 Imports: 0 Imported by: 1

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 HrModule

type HrModule struct {
	Tag string `json:"tag"`
}

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 Interactive interface {
	SetValue(key string, value string)
}

type MessageCard

type MessageCard struct {
	Config   *CardConfig   `json:"config,omitempty"`
	Header   *CardHeader   `json:"header,omitempty"`
	Elements []interface{} `json:"elements"`
}

type TextModule

type TextModule struct {
	Tag     string `json:"tag"`
	Content string `json:"content"`
	Lines   int64  `json:"lines,omitempty"`
}

type UriModule

type UriModule struct {
	Url        string `json:"url"`
	AndroidUrl string `json:"android_url"`
	IosUrl     string `json:"ios_url"`
	PcUrl      string `json:"pc_url"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL