middleware

package
v0.15.17-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const EventPropertiesKey key = "x-event-properties"
View Source
const HeaderTenantID = "X-Tracetest-TenantID"

Variables

View Source
var (
	TenantIDKey key = "tenantID"
)

Functions

func AnalyticsMiddleware added in v0.14.9

func AnalyticsMiddleware(next http.Handler) http.Handler

func EventPropertiesFromContext added in v0.14.9

func EventPropertiesFromContext(ctx context.Context) string

func NewMetricMiddleware

func NewMetricMiddleware(meter metric.Meter) mux.MiddlewareFunc

func NewStatusCodeCapturerWriter

func NewStatusCodeCapturerWriter(w http.ResponseWriter) *responseWriter

func SendEventWithProperties added in v0.14.9

func SendEventWithProperties(name, category, clientID string, data map[string]string, ctx context.Context) error

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