Documentation ¶ Overview ¶ Package middleware provides built-in HTTP middleware for request size limiting, HTTP-to-HTTPS redirection, and access logging. Index ¶ func MaxRequestSize(next http.Handler, maxReqSize uint64) http.Handler func NewLogMiddleware(next http.Handler, accessLogs bool, log *zap.Logger) http.Handler func Redirect(_ http.Handler, port int) http.Handler func TLSAddr(host string, forcePort bool, sslPort int) string 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. Source Files ¶ View all Source files doc.golog.gomaxRequest.goredirect.go Click to show internal directories. Click to hide internal directories.