Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/766b/chi-prometheus
/ functions
Functions
9 in github.com/766b/chi-prometheus
⨍
Functions
9
◇
Types & classes
1
↓ 2 callers
Function
NewMiddleware
NewMiddleware returns a new prometheus Middleware handler.
middleware.go:33
↓ 2 callers
Function
NewPatternMiddleware
NewPatternMiddleware returns a new prometheus Middleware handler that groups requests by the chi routing pattern. EX: /users/{firstName} instead of /u
middleware.go:73
Function
Test_Logger
(t *testing.T)
middleware_test.go:14
Function
Test_MultipleLoggers
(t *testing.T)
middleware_test.go:144
Function
Test_PatternLogger
(t *testing.T)
middleware_test.go:76
Method
handler
(next http.Handler)
middleware.go:60
Function
main
()
example/main.go:15
Function
main
()
pattern_example/main.go:14
Method
patternHandler
(next http.Handler)
middleware.go:100