middleware

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CtxAuthorizationKey = CtxKey("Authorization")
View Source
const CtxCorrelationIdKey = CtxKey("x-correlation-id")
View Source
const CtxSignedHeadersKey = CtxKey("x-signed-headers")
View Source
const CtxSystemPeerKey = CtxKey("x-system-peer")

Variables

This section is empty.

Functions

func Client

func Client(logger log.Logger) middleware.Middleware

Client is a client logging middleware.

func ClientCorrelationIdInjector

func ClientCorrelationIdInjector() middleware.Middleware

func Server

func Server(logger log.Logger) middleware.Middleware

Server is an server logging middleware.

func ServerCorrelationIdInjector

func ServerCorrelationIdInjector() middleware.Middleware

func ServerSecurityHeaderValidator

func ServerSecurityHeaderValidator() middleware.Middleware

func Validator

func Validator() middleware.Middleware

Validator is a validator middleware.

Types

type CtxKey

type CtxKey string

type Redacter

type Redacter interface {
	Redact() string
}

Jump to

Keyboard shortcuts

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