Documentation ¶
Index ¶
- Variables
- func ContextFromFiberCtx(c *fiber.Ctx) context.Context
- func ContextIntoFiberCtx(c *fiber.Ctx, ctx context.Context)
- func ContextMiddleware(ctxLoader func() context.Context) fiber.Handler
- func HealthAPI(h HealthFunc) *healthAPI
- func IsReadRequest(c *fiber.Ctx) bool
- func IsWriteRequest(c *fiber.Ctx) bool
- func RequestIDFromFiberCtx(c *fiber.Ctx) string
- func RequestIDMiddleware() fiber.Handler
- func TelemetryMiddleware() fiber.Handler
- type API
- type ContextLoader
- type HealthFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHealthFunc = func() error { return nil }
Functions ¶
func ContextFromFiberCtx ¶
func ContextIntoFiberCtx ¶
func ContextMiddleware ¶
func HealthAPI ¶
func HealthAPI(h HealthFunc) *healthAPI
func IsReadRequest ¶
func IsReadRequest(c *fiber.Ctx) bool
func IsWriteRequest ¶
func IsWriteRequest(c *fiber.Ctx) bool
func RequestIDFromFiberCtx ¶
func RequestIDFromFiberCtx(c *fiber.Ctx) string
func RequestIDMiddleware ¶
func RequestIDMiddleware() fiber.Handler
func TelemetryMiddleware ¶
func TelemetryMiddleware() fiber.Handler
Types ¶
type ContextLoader ¶
type HealthFunc ¶
type HealthFunc func() error
Click to show internal directories.
Click to hide internal directories.