Documentation ¶
Index ¶
- func ContextWithLogger(ctx context.Context, logger *slog.Logger) context.Context
- func ContextWithRequestID(ctx context.Context, id RequestID) context.Context
- func FlyInfoDetector(request bunrouter.Request) ([]any, error)
- func LoggerFromContext(ctx context.Context) *slog.Logger
- func NewBunrouterMiddleware(options ...Option) bunrouter.MiddlewareFunc
- func NewOtelEventHandler(ctx context.Context, inner slog.Handler) slog.Handler
- func StandardInfoDector(request bunrouter.Request) ([]any, error)
- type Option
- type RequestDetector
- type RequestID
- type ResponseInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithLogger ¶
func ContextWithRequestID ¶
func NewBunrouterMiddleware ¶
func NewBunrouterMiddleware(options ...Option) bunrouter.MiddlewareFunc
func NewOtelEventHandler ¶
Types ¶
type Option ¶
type Option func(m *bunrouterMiddleware)
func WithRequestDetectors ¶
func WithRequestDetectors(detectors ...RequestDetector) Option
type ResponseInfo ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.