simple

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware() endpoint.Middleware

AuthMiddleware returns a pluggable endpoint.Middleware which rejects the request if: * userID is missing from the context

func HTTPToContext

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

HTTPToContext moves the userID from the X-Configsum-Userid header into the context of the request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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