Versions in this module Expand all Collapse all v0 v0.0.10 Jan 6, 2016 v0.0.9 Oct 17, 2015 Changes in this version + const HeaderEvent + const HeaderSignature + var DefaultNotFoundHandler = http.HandlerFunc(http.NotFound) + var DefaultUnauthorizedHandler = http.HandlerFunc(unauthorized) + func IsAuthorized(r *http.Request, secret string) (string, bool) + func Signature(body []byte, secret string) string + type Router struct + NotFoundHandler http.Handler + func NewRouter() *Router + func (r *Router) Handle(event string, h http.Handler) + func (r *Router) HandleFunc(event string, fn func(http.ResponseWriter, *http.Request)) + func (r *Router) Handler(req *http.Request) http.Handler + func (r *Router) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (r *Router) ServeHTTPContext(ctx context.Context, w http.ResponseWriter, req *http.Request) error + type SecretHandler struct + Handler http.Handler + Secret string + SetHeader bool + Unauthorized http.Handler + func Authorize(h http.Handler, secret string) *SecretHandler + func (h *SecretHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) + func (h *SecretHandler) ServeHTTPContext(ctx context.Context, w http.ResponseWriter, req *http.Request) error