Documentation
¶
Index ¶
Constants ¶
View Source
const HeaderKey = "X-Request-Id"
HeaderKey .
Variables ¶
View Source
var CacheKeyAlgorithmMap = make(map[string]CacheKeyAlgorithm)
CacheKeyAlgorithmMap .
View Source
var DefaultAuthConfig = &AuthConfig{}
DefaultAuthConfig .
View Source
var LruCache = nosql.DefaultLRUCache
LruCache .
Functions ¶
func EchoAuthWithConfig ¶
func EchoAuthWithConfig(authConfig *AuthConfig) echo.MiddlewareFunc
EchoAuthWithConfig 用于 echo 框架的签名校验中间件
func EchoCache ¶
func EchoCache(cacheMaxEntryNum ...int) echo.MiddlewareFunc
EchoCache 用于 echo 框架的缓存中间件。支持自定义 cache 数量
Types ¶
type CacheKeyAlgorithm ¶
CacheKeyAlgorithm .
type CacheKeyFunc ¶
CacheKeyFunc .
func (CacheKeyFunc) GenCacheKey ¶
func (c CacheKeyFunc) GenCacheKey(ctx echo.Context) string
GenCacheKey .
Click to show internal directories.
Click to hide internal directories.