Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAlexaRequest ¶
func HandleAlexaRequest(app App) http.HandlerFunc
HandleAlexaRequest for dealing with alexa requests
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, resp *skillserver.EchoResponse)
WriteResponse to the responsewriter
func WriteSpeech ¶
func WriteSpeech(w http.ResponseWriter, speech string)
WriteSpeech to an echo response then pass that to the response writer.
Types ¶
type App ¶
type App struct { AppID string LaunchHandler HandlerFunc IntentHandler HandlerFunc SessionEndedHandler HandlerFunc AudioPlayerStateHandler HandlerFunc }
App is a mapping of the functions and intents for an alexa app.
type HandlerFunc ¶
type HandlerFunc func(context.Context, http.ResponseWriter, *skillserver.EchoRequest)
HandlerFunc is function for alexa response/request objects
type RequestTypeError ¶
type RequestTypeError struct {
RequestType string
}
RequestTypeError where the request type file in the alexa request was not valid.
func (*RequestTypeError) Error ¶
func (e *RequestTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.