dory

package
v0.0.0-...-65e2f22 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(secret string) endpoint.Middleware

AuthMiddleware returns a pluggable endpoint.Middleware which transparently inspects Dory specific Authentication information and rejects the request if: * signature or userID are missing * the signature does not match

func HTTPToContext

func HTTPToContext(ctx context.Context, r *http.Request) context.Context

HTTPToContext moves the Dory signature and userID from the request headers to the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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