apimiddlewares

package
v0.0.0-...-030c94e Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const CtxUserKey ctxUserKeyType = "user"

CtxUserKey ...

View Source
const СtxRequestIDKey ctxRequestIDKeyType = "RequestID"

СtxRequestIDKey ...

Variables

This section is empty.

Functions

func AuthUser

func AuthUser(s store.Store) func(next http.Handler) http.Handler

AuthUser дополнительное замыкание чтобы передать storage

func RequestID

func RequestID(next http.Handler) http.Handler

RequestID adds request id to evry request

func RequestTimer

func RequestTimer(logger *logrus.Logger) func(next http.Handler) http.Handler

RequestTimer adds request id to evry request

Types

This section is empty.

Jump to

Keyboard shortcuts

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