middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: MIT Imports: 13 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(middleware middlewareFunc, lggr *log.Logger, validatorHook string) buffalo.MiddlewareFunc

LogEntryMiddleware builds a log.Entry applying the request parameter to the given log.Logger and propagates it to the given MiddlewareFunc

func NewFilterMiddleware

func NewFilterMiddleware(mf *module.Filter) buffalo.MiddlewareFunc

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

func NewValidationMiddleware

func NewValidationMiddleware(entry log.Entry, 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