Add middlewares
- Builder for chaining multiple middlewares on top of a base handler - Middleware for adding a map of values to the request context - Middleware for adding zerolog logging to the request
This commit is contained in:
parent
bdbcf826eb
commit
9d803a94ee
5 changed files with 92 additions and 0 deletions
9
go.mod
9
go.mod
|
@ -1,3 +1,12 @@
|
|||
module gitlab.com/mstarongitlab/goutils
|
||||
|
||||
go 1.19
|
||||
|
||||
require github.com/rs/zerolog v1.33.0
|
||||
|
||||
require (
|
||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||
github.com/mattn/go-isatty v0.0.19 // indirect
|
||||
github.com/rs/xid v1.5.0 // indirect
|
||||
golang.org/x/sys v0.12.0 // indirect
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue