middleware

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheControl

func CacheControl(cacheHeaderValue string) buffalo.MiddlewareFunc

CacheControl takes a string and makes a header value to the key Cache-Control. This is so you can set some sane cache defaults to certain endpoints.

func LogEntryMiddleware

func LogEntryMiddleware(lggr *log.Logger) buffalo.MiddlewareFunc

LogEntryMiddleware builds a log.Entry, setting the request fields and storing it in the context to be used throughout the stack

func NewFilterMiddleware

func NewFilterMiddleware(mf *module.Filter, upstreamEndpoint string) buffalo.MiddlewareFunc

NewFilterMiddleware builds a middleware function that implements the filters configured in the filter file.

func NewValidationMiddleware

func NewValidationMiddleware(validatorHook string) buffalo.MiddlewareFunc

NewValidationMiddleware builds a middleware function that performs validation checks by calling an external webhook

Types

This section is empty.

Jump to

Keyboard shortcuts

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