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.
Click to show internal directories.
Click to hide internal directories.