Documentation ¶
Index ¶
- Variables
- func AccessLog(next http.Handler) http.Handler
- func Cache(store cache.Cache) func(next http.Handler) http.Handler
- func EnrichCorrelationID(gen *corridgen.Generator) func(next http.Handler) http.Handler
- func GetClientIP(r *http.Request) string
- func MiddlewareChain(handler http.Handler, midllewares ...Middleware) http.Handler
- func NotCachable(r *http.Request) bool
- func СonstructKey(uri string) uint64
- type Middleware
- type Options
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoOptions = errors.New("no options provided")
)
Functions ¶
func EnrichCorrelationID ¶
EnrichCorrelationID - add unique correlation id to header
func GetClientIP ¶
func MiddlewareChain ¶
func MiddlewareChain(handler http.Handler, midllewares ...Middleware) http.Handler
MiddlewareChain - chain multiple middlewares
Types ¶
Click to show internal directories.
Click to hide internal directories.