Versions in this module Expand all Collapse all v1 v1.0.0 Sep 7, 2018 Changes in this version + func WithDebugMode(ext *Extension) + type Application struct + ApplicationID string + type AudioPlayer struct + OffsetInMilliseconds int + PlayerActivity PlayerActivity + Stream interface{} + TotalInMilliseconds int + type ContentLayer struct + Height int + Width int + type Context struct + AudioPlayer *AudioPlayer + System *System + type Device struct + DeviceID string + Display *Display + type Directive struct + Header *Header + Payload interface{} + type Display struct + ContentLayer *ContentLayer + DPI int + Orientation Orientation + Size Size + type Event struct + Name string + Namespace string + Payload interface{} + type EventRequest struct + Event *Event + RequestID string + Timestamp string + func (*EventRequest) Request() + type Extension struct + ID string + func NewExtension(extensionID string, options ...ExtensionOption) *Extension + func (e *Extension) ParseRequest(r *http.Request) (*RequestMessage, error) + type ExtensionOption func(*Extension) + type Header struct + MessageID string + Name string + Namespace string + type Intent struct + Name string + Slots map[string]*Slot + type IntentRequest struct + Intent *Intent + func (*IntentRequest) Request() + type LaunchRequest struct + func (*LaunchRequest) Request() + type Orientation string + const OrientationLandscape + const OrientationPortrait + type OutputSpeech struct + Brief *SpeechInfo + Type OutputSpeechType + Values SpeechInfoValues + Verbose *Verbose + type OutputSpeechBuilder struct + func NewOutputSpeechBuilder() *OutputSpeechBuilder + func (b *OutputSpeechBuilder) AddSpeechText(text string, lang SpeechInfoLang) *OutputSpeechBuilder + func (b *OutputSpeechBuilder) AddSpeechURL(url string) *OutputSpeechBuilder + func (b *OutputSpeechBuilder) Build() *OutputSpeech + func (b *OutputSpeechBuilder) SpeechSet(brief *SpeechInfo, verbose *Verbose) *OutputSpeechBuilder + type OutputSpeechType string + const OutputSpeechTypeSimpleSpeech + const OutputSpeechTypeSpeechList + const OutputSpeechTypeSpeechSet + type OutputSpeechVerboseType string + const OutputSpeechVerboseTypeSimpleSpeech + const OutputSpeechVerboseTypeSpeechList + type PlayerActivity string + const PlayerActivityIDLE + const PlayerActivityPAUSED + const PlayerActivityPLAYING + const PlayerActivitySTOPPED + type Reprompt struct + OutputSpeech *OutputSpeech + type Request interface + Request func() + type RequestMessage struct + Context *Context + Request Request + Session *Session + Version string + func (m *RequestMessage) UnmarshalJSON(b []byte) error + type RequestType string + const RequestTypeEvent + const RequestTypeIntent + const RequestTypeLaunch + const RequestTypeSessionEnded + type Response struct + Card interface{} + Directives []*Directive + OutputSpeech *OutputSpeech + Reprompt *Reprompt + ShouldEndSession bool + type ResponseBuilder struct + func NewResponseBuilder() *ResponseBuilder + func (b *ResponseBuilder) AddDirective(d *Directive) *ResponseBuilder + func (b *ResponseBuilder) Build() *ResponseMessage + func (b *ResponseBuilder) OutputSpeech(os *OutputSpeech) *ResponseBuilder + func (b *ResponseBuilder) Reprompt(os *OutputSpeech) *ResponseBuilder + func (b *ResponseBuilder) SessionAttributes(attributes map[string]string) *ResponseBuilder + func (b *ResponseBuilder) ShouldEndSession(v bool) *ResponseBuilder + type ResponseMessage struct + Response *Response + SessionAttributes map[string]string + Version string + type Session struct + New bool + SessionAttributes map[string]string + SessionID string + User *User + type SessionEndedRequest struct + func (*SessionEndedRequest) Request() + type Size string + const SizeCustom + const SizeL100 + const SizeM100 + const SizeNone + const SizeS100 + const SizeXL100 + type Slot struct + Name string + Value string + type SpeechInfo struct + Lang SpeechInfoLang + Type SpeechInfoType + Value string + func (*SpeechInfo) SpeechInfoValues() + type SpeechInfoArray []*SpeechInfo + func (SpeechInfoArray) SpeechInfoValues() + type SpeechInfoLang string + const SpeechInfoLangEN + const SpeechInfoLangEmpty + const SpeechInfoLangJA + const SpeechInfoLangKO + type SpeechInfoType string + const SpeechInfoTypePlainText + const SpeechInfoTypeURL + type SpeechInfoValues interface + SpeechInfoValues func() + type System struct + Application *Application + Device *Device + User *User + type User struct + AccessToken string + UserID string + type Verbose struct + Type OutputSpeechVerboseType + Values SpeechInfoValues