package
1.20.2
Repository: https://github.com/go-pkgz/rest.git
Documentation: pkg.go.dev

# Functions

AnonymizeIP is a function to reset the last part of IPv4 to 0.
ApacheCombined sets format to Apache Combined Log.
IPfn sets IP masking function.
Log sets logging backend.
Logger is a default logger middleware with "REST" prefix.
MaxBodySize sets size of the logged part of the request body.
New makes rest logger with given options.
Prefix sets log line prefix.
SubjFn triggers subject logging if subjFn is not nil.
UserFn triggers user name logging if userFn is not nil.
WithBody triggers request body logging.

# Structs

Middleware is a logger for rest requests.

# Interfaces

Backend is logging backend.

# Type aliases

Option func type.