Documentation ¶
Index ¶
- Constants
- type RedisAuth
- func (r *RedisAuth) Code(code int) *RedisAuth
- func (r *RedisAuth) Key(key string) *RedisAuth
- func (r *RedisAuth) Msg(msg string) *RedisAuth
- func (*RedisAuth) Name() string
- func (r *RedisAuth) Options(options *redis.Options) *RedisAuth
- func (r *RedisAuth) Pattern() string
- func (r *RedisAuth) Process() flygo.InterceptorHandler
- func (r *RedisAuth) Rule(rule Rule) *RedisAuth
- func (r *RedisAuth) Source(source Source) *RedisAuth
- func (*RedisAuth) Type() string
- type Rule
- type Source
Constants ¶
View Source
const ( //The parameter name Authorization = "Authorization" //Authorization passed //The Redis value in parameter AuthorizationData = "AuthorizationData" //The redis key prefix RedisKey = "auth:authorization:" )
View Source
const ( ModeInclude = iota ModeExclude )
Define Mode const
View Source
const ( SourceParameter = iota SourceHeader )
Define Source const
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisAuth ¶
type RedisAuth struct {
// contains filtered or unexported fields
}
Define RedisAuth struct
func (*RedisAuth) Process ¶
func (r *RedisAuth) Process() flygo.InterceptorHandler
Set middleware process
Click to show internal directories.
Click to hide internal directories.