middleware

package
v0.0.0-...-6be47e1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLogMiddleware

func AccessLogMiddleware() func(next http.Handler) http.Handler

AccessLogMiddleware writes api access log.

func AgentUniqueIdentifierHeaderValidator

func AgentUniqueIdentifierHeaderValidator(next http.Handler) http.Handler

AgentUniqueIdentifierHeaderValidator validates that the request contains a valid agent unique identifier in the headers

func AllowIfExtensionsEnabled

func AllowIfExtensionsEnabled(next http.Handler) http.Handler

func AppCtxMiddleware

func AppCtxMiddleware(appCtx appctx.ApplicationContext) func(next http.Handler) http.Handler

AppCtxMiddleware injects application context into request context.

func AwsRequestIDValidator

func AwsRequestIDValidator(next http.Handler) http.Handler

AwsRequestIDValidator validates that {awsrequestid} parameter is present in the URL and matches to the currently active id.

func RuntimeReleaseMiddleware

func RuntimeReleaseMiddleware() func(next http.Handler) http.Handler

RuntimeReleaseMiddleware places runtime_release into app context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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