Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Trace ¶
func Trace(next router.HandlerFunc) router.HandlerFunc
Trace is a middleware for tracing using opentelemetry
Types ¶
type Runner ¶
type Runner interface { // Run and pass mandatory middlewares when running each server Run(middlewares ...router.MiddlewareFunc) error Shutdown(ctx context.Context) error }
Runner server interface
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server configuration
func (*Server) Metrics ¶
func (s *Server) Metrics(next router.HandlerFunc) router.HandlerFunc
Metrics is a middleware for metrics monitoring
Click to show internal directories.
Click to hide internal directories.