Documentation
¶
Index ¶
- type RedisStore
- func (rs *RedisStore) Exist(license string) bool
- func (rs *RedisStore) Expired(license string) error
- func (rs *RedisStore) GetTokenByUid(uType guard.Type, uid int64) (*guard.UserToken, error)
- func (rs *RedisStore) GetTokenDetail(license string) (*guard.TokenDetail, error)
- func (rs *RedisStore) GetUserTokens(license string) (*guard.UserToken, error)
- func (rs *RedisStore) Provide(ctx context.Context) interface{}
- func (rs *RedisStore) Save(license string, tokenDetail *guard.TokenDetail) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func (*RedisStore) Exist ¶
func (rs *RedisStore) Exist(license string) bool
func (*RedisStore) Expired ¶
func (rs *RedisStore) Expired(license string) error
func (*RedisStore) GetTokenByUid ¶ added in v1.6.2
func (*RedisStore) GetTokenDetail ¶ added in v1.6.2
func (rs *RedisStore) GetTokenDetail(license string) (*guard.TokenDetail, error)
func (*RedisStore) GetUserTokens ¶
func (rs *RedisStore) GetUserTokens(license string) (*guard.UserToken, error)
func (*RedisStore) Provide ¶
func (rs *RedisStore) Provide(ctx context.Context) interface{}
func (*RedisStore) Save ¶
func (rs *RedisStore) Save(license string, tokenDetail *guard.TokenDetail) error
Click to show internal directories.
Click to hide internal directories.