Documentation ¶
Index ¶
- type Card
- type Intent
- type OutputSpeech
- type Reprompt
- type Request
- func (r *Request) IsIntentRequest() bool
- func (r *Request) IsLaunchRequest() bool
- func (r *Request) IsSessionEndedRequest() bool
- func (r *Request) SessionTerminationIsDueToError() bool
- func (r *Request) SessionTerminationIsDueToMaxRepromptLimitExceeded() bool
- func (r *Request) SessionTerminationWasUserInitiated() bool
- func (r *Request) String() (string, error)
- type Response
- type ResponseBody
- type Session
- type Slot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Card ¶
type OutputSpeech ¶
func NewOutputSpeech ¶
func NewOutputSpeech(text string) *OutputSpeech
type Reprompt ¶
type Reprompt struct {
OutputSpeech *OutputSpeech `json:"outputSpeech,omitempty"`
}
func NewReprompt ¶
type Request ¶
type Request struct { Version string `json:"version"` Session *Session `json:"session"` Body struct { Type string `json:"type"` RequestID string `json:"requestId"` Timestamp string `json:"timestamp"` Intent Intent `json:"intent,omitempty"` Reason string `json:"reason,omitempty"` } `json:"request"` }
func (*Request) IsIntentRequest ¶
func (*Request) IsLaunchRequest ¶
func (*Request) IsSessionEndedRequest ¶
func (*Request) SessionTerminationIsDueToError ¶
func (*Request) SessionTerminationIsDueToMaxRepromptLimitExceeded ¶
func (*Request) SessionTerminationWasUserInitiated ¶
type Response ¶
type Response struct { Version string `json:"version"` SessionAttributes map[string]interface{} `json:"sessionAttributes,omitempty"` Body *ResponseBody `json:"response"` }
func NewResponse ¶
type ResponseBody ¶
type ResponseBody struct { OutputSpeech *OutputSpeech `json:"outputSpeech,omitempty"` Card *Card `json:"card,omitempty"` Reprompt *Reprompt `json:"reprompt,omitempty"` ShouldEndSession bool `json:"shouldEndSession"` }
Click to show internal directories.
Click to hide internal directories.