store

package
v1.8.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 (rs *RedisStore) GetTokenByUid(uType guard.Type, uid int64) (*guard.UserToken, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL