Documentation ¶
Overview ¶
Package kv provide key-value storage.
It more efficient to use this package instead of using context dirrectly for key-value storage, because "net/http.Request.WithContext" always create shallow copy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Injector ¶
func Injector(key interface{}, value interface{}) func(http.HandlerFunc) http.HandlerFunc
Injector return middleware to set value with the key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.