endpoints

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize added in v1.2.0

func Authorize(w http.ResponseWriter, r *http.Request)

Authorize : Authorization Handler

func CORSMiddleware

func CORSMiddleware(handler http.HandlerFunc) http.HandlerFunc

CORSMiddleware sets up CORS headers.

func HandleCORS

func HandleCORS(w http.ResponseWriter, r *http.Request)

HandleCORS is a CORS handler.

func TokenAuthMiddleware added in v1.2.0

func TokenAuthMiddleware(h http.HandlerFunc) http.HandlerFunc

TokenAuthMiddleware : Generate auth token

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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