middleware

package
v5.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxRequestSize

func MaxRequestSize(next http.Handler, maxReqSize uint64) http.Handler

func NewLogMiddleware

func NewLogMiddleware(next http.Handler, accessLogs bool, log *zap.Logger) http.Handler

func Redirect

func Redirect(_ http.Handler, port int) http.Handler

func TLSAddr

func TLSAddr(host string, forcePort bool, sslPort int) string

TLSAddr replaces listen or host port with port configured by SSLConfig config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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