alexa

package
v0.0.0-...-ad25176 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2018 License: MIT Imports: 6 Imported by: 0

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 WriteEmpty

func WriteEmpty(w http.ResponseWriter)

WriteEmpty request to the response writer.

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL