card

package
v0.0.0-...-852b98d Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCard

type BaseCard struct {
	Type string `json:"type"`
}

type ImageCard

type ImageCard struct {
	BaseCard
	List []map[string]string `json:"list"`
}

func NewImageCard

func NewImageCard() *ImageCard

func (*ImageCard) AddItem

func (this *ImageCard) AddItem(src string, thumbnail string) *ImageCard

type LinkAccountCard

type LinkAccountCard struct {
	BaseCard
}

func NewLinkAccountCard

func NewLinkAccountCard() *LinkAccountCard

type ListCard

type ListCard struct {
	List []*ListCardItem `json:"list"`
	BaseCard
}

func NewListCard

func NewListCard() *ListCard

func (*ListCard) AddItem

func (this *ListCard) AddItem(item *ListCardItem) *ListCard

type ListCardItem

type ListCardItem struct {
	Title   string `json:"title"`
	Content string `json:"content"`
	Image   string `json:"content"`
	Url     string `json:"url"`
}

func NewListCardItem

func NewListCardItem() *ListCardItem

func (*ListCardItem) SetContent

func (this *ListCardItem) SetContent(content string) *ListCardItem

func (*ListCardItem) SetImage

func (this *ListCardItem) SetImage(image string) *ListCardItem

func (*ListCardItem) SetTitle

func (this *ListCardItem) SetTitle(title string) *ListCardItem

func (*ListCardItem) SetUrl

func (this *ListCardItem) SetUrl(url string) *ListCardItem

type StandardCard

type StandardCard struct {
	Title   string `json:"title"`
	Content string `json:"content"`
	Image   string `json:"image"`
	BaseCard
}

func NewStandardCard

func NewStandardCard() *StandardCard

func (*StandardCard) SetContent

func (this *StandardCard) SetContent(content string) *StandardCard

func (*StandardCard) SetImage

func (this *StandardCard) SetImage(image string) *StandardCard

func (*StandardCard) SetTitle

func (this *StandardCard) SetTitle(title string) *StandardCard

type TextCard

type TextCard struct {
	BaseCard
	Content string `json:"content"`
}

func NewTextCard

func NewTextCard(content string) *TextCard

func (*TextCard) SetContent

func (this *TextCard) SetContent(content string)

Jump to

Keyboard shortcuts

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