Versions in this module Expand all Collapse all v0 v0.3.0 Jul 30, 2020 Changes in this version + const BigImageType + const ButtonPressed + const ItemsListType + const NEDataTimeType + const NELocationType + const NENameType + const NENumberType + const SimpleUtterance + func AutoPong(b bool) func(*Options) + func Debug(b bool) func(*Options) + func Plural(n int, singular, plural1, plural2 string) string + func Timeout(t int) func(*Options) + type Button struct + Hide bool + Payload interface{} + Title string + URL string + func NewButton(title, url string, hide bool, payload ...interface{}) Button + type Card struct + Button *ImageButton + Description string + Footer ... + Header ... + ImageID string + Items []Image + Title string + Type string + type Entities map[string][]newrapper + func (e Entities) DatesTimes() []NEDateTime + func (e Entities) Locations() []NELocation + func (e Entities) Names() []NEName + func (e Entities) Numbers() []NumberWrapper + type Entity struct + Tokens struct{ ... } + Type string + Value *json.RawMessage + type Handler func(k Kit) *Response + type Image struct + Button *ImageButton + Description string + ImageID string + Title string + type ImageButton struct + Payload interface{} + Title string + URL string + func NewImageButton(title, url string, payload ...interface{}) ImageButton + type Kit struct + Ctx context.Context + Req *Request + Resp *Response + func (k Kit) Init() (*Request, *Response) + type List struct + Images []Image + func (l *List) Add(id, title, desc string, button ...ImageButton) *List + func (l *List) AddImages(images ...Image) *List + type NEDateTime struct + Day int + DayIsRelative bool + End int + Hour int + HourIsRelative bool + Minute int + MinuterIsRelative bool + Month int + MonthIsRelative bool + Start int + Year int + YearIsRelative bool + type NELocation struct + Airport string + City string + Country string + End int + HouseNumber string + Start int + Street string + type NEName struct + End int + FirstName string + LastName string + PatronymicName string + Start int + type NENumber float32 + type NumberWrapper struct + End int + Start int + Value float32 + type Options struct + AutoPong bool + Debug bool + Timeout time.Duration + type Phrase struct + TTS string + Text string + func NewPhrase(text, tts string) Phrase + type Request struct + Bearer string + LinkingComplete *struct{} + Meta struct{ ... } + Request struct{ ... } + Session struct{ ... } + State struct{ ... } + Version string + func (req *Request) AuthToken() string + func (req *Request) CanAccountLinking() bool + func (req *Request) ClientID() string + func (req *Request) Command() string + func (req *Request) DangerousContext() bool + func (req *Request) Entities() (Entities, error) + func (req *Request) HasScreen() bool + func (req *Request) IsLinkingComplete() bool + func (req *Request) IsNewSession() bool + func (req *Request) Locale() string + func (req *Request) MessageID() int + func (req *Request) OriginalUtterance() string + func (req *Request) Payload() (map[string]interface{}, error) + func (req *Request) PayloadString() (string, error) + func (req *Request) SessionID() string + func (req *Request) SkillID() string + func (req *Request) StateSession(key string) interface{} + func (req *Request) StateSessionAsJson() (string, error) + func (req *Request) Text() string + func (req *Request) Timezone() string + func (req *Request) Tokens() []string + func (req *Request) Type() string + func (req *Request) UserID() string + func (req *Request) Ver() string + type Response struct + Response ... + Session struct{ ... } + SessionState interface{} + StartAccountLinking *struct{} + Version string + func (resp *Response) AddSessionState(key string, data interface{}) error + func (resp *Response) BigImage(id, title, desc string, button ...ImageButton) *Response + func (resp *Response) Button(title, url string, hide bool, payload ...interface{}) *Response + func (resp *Response) Buttons(buttons ...Button) *Response + func (resp *Response) CustomSound(skill, sound string) *Response + func (resp *Response) Effect(effect string) *Response + func (resp *Response) EndSession() *Response + func (resp *Response) List(header, footer string, l List, button ...ImageButton) *Response + func (resp *Response) NoEffect() *Response + func (resp *Response) Pause(n int) *Response + func (resp *Response) Phrase(p ...Phrase) *Response + func (resp *Response) RandomPhrase(p ...Phrase) *Response + func (resp *Response) RandomText(s ...string) *Response + func (resp *Response) ResetTTS() *Response + func (resp *Response) ResetText() *Response + func (resp *Response) S() *Response + func (resp *Response) Sound(sound string) *Response + func (resp *Response) Space() *Response + func (resp *Response) StartAuthorization() *Response + func (resp *Response) TTS(tts ...string) *Response + func (resp *Response) Text(s ...string) *Response + func (resp *Response) TextWithTTS(s, tts string) *Response + type Stream <-chan Kit + func ListenForWebhook(hook string, opts ...func(*Options)) Stream + func (updates Stream) Loop(f Handler)