middleware

package
v0.0.0-...-c53624e Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BearerAuth

func BearerAuth(authUC usecase.AuthUseCase, next http.HandlerFunc) http.HandlerFunc

BearerAuth get Bearer Authorization header, parses and validate.

func Idempotency

Idempotency returns the same result for requests with the same uri, user and X-Idempotency-Key header.

Fallbacks to original request processing in case of errors.

func NewLoggerHandlerFunc

func NewLoggerHandlerFunc() func(http.Handler) http.Handler

NewLoggerHandlerFunc returns a http.Handler that adds log related middlewares.

Types

This section is empty.

Jump to

Keyboard shortcuts

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