middleware

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package middleware package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrometheusMiddleware

func PrometheusMiddleware(next http.Handler) http.Handler

PrometheusMiddleware adds basic metrics to a handler

Types

type Handler

type Handler func(next http.Handler) http.Handler

Handler is used for returning middleware functions

func NewCommonHeadersMiddleware added in v0.6.0

func NewCommonHeadersMiddleware(
	headers map[string]string,
) Handler

NewCommonHeadersMiddleware creates an instance of CommonHeadersMiddleware

func NewJwtAuthMiddleware

func NewJwtAuthMiddleware(
	authenticator *auth.Authenticator,
	logger logger.Logger,
	respWriter response.Writer,
) Handler

NewJwtAuthMiddleware creates an instance of JwtAuthMiddleware

Jump to

Keyboard shortcuts

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