middleware

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCORSMiddleware

func AddCORSMiddleware(mChain alice.Chain, logger zerolog.Logger, cfg config.Config) alice.Chain

AddCORSMiddleware appends CORS middleware to a provided middleware chain.

func AddRequestLoggingMiddleware

func AddRequestLoggingMiddleware(mChain alice.Chain, logger zerolog.Logger) alice.Chain

AddRequestLoggingMiddleware appends HTTP logging middleware to a provided middleware chain.

func Build

func Build(logger zerolog.Logger, cfg config.Config) alice.Chain

Build returns a new middleware chain.

Types

This section is empty.

Jump to

Keyboard shortcuts

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