//
pkg.gl
Category
github.com/FlutterDizaster/file-server
internal
server
middlewares
package
0.0.0-20241030160950-bd9432071d43
Repository:
https://github.com/flutterdizaster/file-server.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
8
Dependents
1
Files
127 SLOC
#
Functions
Logger
Logger is a middleware that logs incoming requests and logging some of the details to slog.
MakeChain
MakeChain wraps a list of middlewares in a chain.
#
Constants
KeyUserID
No description provided by the author
#
Structs
Auth
Auth is a stateful middleware that checks if user is authorized.
#
Type aliases
CtxKey
No description provided by the author
Middleware
Middleware is a function that takes an http.Handler and returns an http.Handler.