middlewares

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextMiddleware

func ContextMiddleware(handler Handler, context *ledgerContext.AppContext) http.HandlerFunc

ContextMiddleware is a middleware that provides application context to the `Handler`

func TokenAuthMiddleware

func TokenAuthMiddleware(handler http.HandlerFunc) http.HandlerFunc

TokenAuthMiddleware is a middleware that provides authentication functionality

Types

type Handler

Handler is a custom HTTP handler that has an additional application context

Jump to

Keyboard shortcuts

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