Documentation
¶
Index ¶
- Constants
- func GetWebhook(stateMachine fsm.StateMachine, store fsm.Store, distillIntent DistillIntent) func(http.ResponseWriter, *http.Request)
- type AudioItem
- type Authority
- type DistillIntent
- type EndSession
- type Error
- type Intent
- type Resolutions
- type ResolvedValue
- type Slot
- type SlotValue
- type StandardCard
- type Status
- type Stream
Constants ¶
View Source
const ( RequestTypeLaunch = "LaunchRequest" RequestTypeIntent = "IntentRequest" RequestTypeSessionEnded = "SessionEndedRequest" )
View Source
const AudioDirectiveType = "AudioPlayer.Play"
View Source
const DisplayTemplateDirectiveType = "Display.RenderTemplate"
Variables ¶
This section is empty.
Functions ¶
func GetWebhook ¶
func GetWebhook(stateMachine fsm.StateMachine, store fsm.Store, distillIntent DistillIntent) func(http.ResponseWriter, *http.Request)
GetWebhook returns the webhook that Alexa expects to communicate with
Types ¶
type Authority ¶
type Authority struct {
Authority string `json:"authority,omitempty"`
Status Status `json:"status,omitempty"`
Values []SlotValue `json:"values,omitempty"`
}
Authority Object See the Resolutions Object
type DistillIntent ¶
DistillIntent is a function that is responsible for converting an intent into an input string
type EndSession ¶
type EndSession struct{}
type Intent ¶
type Intent struct {
Name string `json:"name,omitempty"`
ConfirmationStatus string `json:"confirmationStatus,omitempty"`
Slots map[string]Slot `json:"slots,omitempty"`
}
Intent Object https://developer.amazon.com/docs/custom-skills/request-types-reference.html#intent-object
type Resolutions ¶
type Resolutions struct {
ResolutionsPerAuthority []Authority `json:"resolutionsPerAuthority,omitempty"`
}
Resolutions Object https://developer.amazon.com/docs/custom-skills/request-types-reference.html#resolutions-object
type ResolvedValue ¶
ResolvedValue Object See Resolutions
type Slot ¶
type Slot struct {
Name string `json:"name,omitempty"`
Value string `json:"value,omitempty"`
ConfirmationStatus string `json:"confirmationStatus,omitempty"`
Resolutions Resolutions `json:"resolutions,omitempty"`
}
Slot Object https://developer.amazon.com/docs/custom-skills/request-types-reference.html#slot-object
type SlotValue ¶
type SlotValue struct {
Value ResolvedValue `json:"value,omitempty"`
}
SlotValue Object See Resolutions
type StandardCard ¶
Click to show internal directories.
Click to hide internal directories.
