http

package
v0.0.0-...-57137be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHealthFunc = func() error { return nil }

Functions

func ContextFromFiberCtx

func ContextFromFiberCtx(c *fiber.Ctx) context.Context

func ContextIntoFiberCtx

func ContextIntoFiberCtx(c *fiber.Ctx, ctx context.Context)

func ContextMiddleware

func ContextMiddleware(ctxLoader func() context.Context) fiber.Handler

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 API

type API interface {
	MountTo(fiber.Router)
}

type ContextLoader

type ContextLoader interface {
	LoadContext() context.Context
}

type HealthFunc

type HealthFunc func() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL