Documentation ¶
Index ¶
- func New(opts ...Option) gin.HandlerFunc
- type Option
- func WithCacheKeyPrefix(str string) Option
- func WithDebug(enabled bool) Option
- func WithGlobalCacheDuration(d time.Duration) Option
- func WithGlobalSkipQueryFields(fields ...string) Option
- func WithJWTOption(opt *jwt.Option) Option
- func WithLogger(log xlog.XLogger) Option
- func WithRedisStore(client *redis.Client) Option
- func WithRedisStoreBy(addr string, db uint) Option
- func WithRoutePolicy(route string, withToken bool, fields ...string) Option
- func WithRouteRule(route string, withToken bool, duration time.Duration, fields ...string) Option
- func WithRouteSkipFiledPolicy(route string, withToken bool, skipFields ...string) Option
- func WithRouteSkipFiledRule(route string, withToken bool, duration time.Duration, skipFields ...string) Option
- func WithoutHeader(without bool) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...Option) gin.HandlerFunc
Types ¶
type Option ¶
type Option func(*handler)
func WithCacheKeyPrefix ¶
func WithGlobalCacheDuration ¶
func WithJWTOption ¶
func WithLogger ¶
func WithRedisStore ¶
func WithRedisStore(client *redis.Client) Option
func WithRedisStoreBy ¶
func WithRouteRule ¶
func WithRouteSkipFiledRule ¶
func WithoutHeader ¶
Click to show internal directories.
Click to hide internal directories.