middleware

package
v0.0.0-...-ed06964 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderTenantID = "X-Tracetest-TenantID"

Variables

View Source
var (
	TenantIDKey key = "tenantID"
)

Functions

func NewMetricMiddleware

func NewMetricMiddleware(meter metric.Meter) mux.MiddlewareFunc

func NewStatusCodeCapturerWriter

func NewStatusCodeCapturerWriter(w http.ResponseWriter) *responseWriter

func TenantIDFromContext

func TenantIDFromContext(ctx context.Context) string

func TenantMiddleware

func TenantMiddleware(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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