Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventSender ¶
EventSender publishes a response back to the smart home event api
type EventSenderFunc ¶
EventSenderFunc publishes a response back to the smart home event api
type HTTPEventSender ¶
type HTTPEventSender struct { TokenStore alexa.TokenReaderWriter UserIDReader alexa.UserIDReader ClientID string ClientSecret string }
HTTPEventSender sends responses to the smart home api with the credentials of the user.
type Handler ¶
type Handler struct { RequestHandler alexa.Handler EventSender EventSender }
Handler coordinates handling a request and sending the response back to the smart home event api
func (*Handler) HandleRequest ¶
HandleRequest passes the request to the RequestHandler. If response is returned it is published via the EventSender. An error of type SendError indicates the request was successful but the response failed to be sent.
Click to show internal directories.
Click to hide internal directories.