middlewares

package
v0.0.0-...-1b39580 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

func CORS() mux.MiddlewareFunc

func CSRFMiddleware

func CSRFMiddleware(cfg csrf.Config) mux.MiddlewareFunc

func ContentTypeJSON

func ContentTypeJSON() mux.MiddlewareFunc

func CorrelationID

func CorrelationID() mux.MiddlewareFunc

func RequestLog

func RequestLog(logger *logger.Logger) mux.MiddlewareFunc

func ValidateJWTAccessToken

func ValidateJWTAccessToken(c auth.JWTConfig) mux.MiddlewareFunc

Types

type CorrID

type CorrID struct {
	// contains filtered or unexported fields
}

type OpenTelemetryHandler

type OpenTelemetryHandler struct {
	// contains filtered or unexported fields
}

func NewOpenTelemetryHandler

func NewOpenTelemetryHandler(operation string, opts []otelhttp.Option) *OpenTelemetryHandler

func (*OpenTelemetryHandler) Middleware

func (t *OpenTelemetryHandler) Middleware(h http.Handler) http.Handler

type PrometheusMiddleware

type PrometheusMiddleware struct {
	// contains filtered or unexported fields
}

func NewPrometheusMiddleware

func NewPrometheusMiddleware() *PrometheusMiddleware

func (*PrometheusMiddleware) Prometheus

func (p *PrometheusMiddleware) Prometheus() mux.MiddlewareFunc

Jump to

Keyboard shortcuts

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