middleware

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Columnize added in v1.1.0

func Columnize(nowFormatted string, latency time.Duration, status, ip, method, path string, message interface{}, headerMessage interface{}) string

Columnize formats the given arguments as columns and returns the formatted output, note that it appends a new line to the end.

func DefaultConfig added in v1.1.0

func DefaultConfig() loggerConfig

DefaultConfig returns a default config that have all boolean fields to true except `Columns`, all strings are empty, LogFunc and Skippers to nil as well.

func NewBusFilter added in v1.7.9

func NewBusFilter() func(freedom.Worker)

NewBusFilter .

func NewRecover added in v1.6.3

func NewRecover() context.Handler

NewRecover

func NewRequest added in v1.1.0

func NewRequest(cfg ...loggerConfig) context.Handler

func NewRequestLogger added in v1.6.9

func NewRequestLogger(traceIDName string, body bool) func(context.Context)

NewRequestLogger .

func NewTrace

func NewTrace(traceIDName string) func(context.Context)

NewTrace .

Types

This section is empty.

Jump to

Keyboard shortcuts

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