server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPCertReader

func HTTPCertReader(ctx context.Context, certURL string) ([]byte, error)

HTTPCertReader is a CertReader implementation that fetches the contents of the cert with a http call. No caching is performed.

func NewAppHandler

func NewAppHandler(app alexa.AppHandler) http.HandlerFunc

NewAppHandler returns a http.Handler that services requests using the provided AppHandler

func NewValidatingHandler

func NewValidatingHandler(alexaHandler http.Handler, certReader CertReader) http.HandlerFunc

NewValidatingHandler wraps a http.Handler and validates the request is an authentic request from the alexa skill service

Types

type CertReader

type CertReader func(ctx context.Context, url string) ([]byte, error)

CertReader returns the contents of the cert at the provided url

Jump to

Keyboard shortcuts

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