middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const PukaTokenHeader = "X-Puka-Token"

PukaTokenHeader is the HTTP header used for auth.

Variables

This section is empty.

Functions

func CORS

CORS sets the neccessary headers.

func NewAuthenticator

func NewAuthenticator(tok string) api2go.HandlerFunc

NewAuthenticator returns a api2go middleware handler function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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