redis

package
v1.0.602 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthCode added in v1.0.601

func NewAuthCode(mm interfaces.Models, m *Storage, db radix.Client) (res interfaces.AuthCode, err error)

func NewStorage added in v1.0.601

func NewStorage(mm interfaces.Models, opt *interfaces.AuthOption, database interface{}) interfaces.Storage

func NewTokens added in v1.0.601

func NewTokens(mm interfaces.Models, m *Storage, db radix.Client) (res interfaces.Tokens, err error)

Types

type AuthCode added in v1.0.601

type AuthCode struct {
	// contains filtered or unexported fields
}

func (*AuthCode) Add added in v1.0.601

func (c *AuthCode) Add(enableTracing bool, ctx context.Context, req *auth.AuthCodeList) (err error)

func (*AuthCode) Del added in v1.0.601

func (c *AuthCode) Del(enableTracing bool, ctx context.Context, req *auth.AuthCodeList) (err error)

func (*AuthCode) FindByCode added in v1.0.601

func (c *AuthCode) FindByCode(enableTracing bool, ctx context.Context, code string) (res []*auth.AuthCodeList, err error)

func (*AuthCode) FindByState added in v1.0.601

func (c *AuthCode) FindByState(enableTracing bool, ctx context.Context, userId, state string) (res []*auth.AuthCodeList, err error)

type Storage added in v1.0.601

type Storage struct {
	Options        *interfaces.AuthOption
	DefaultTimeout time.Duration
	// contains filtered or unexported fields
}

func (*Storage) AuthCode added in v1.0.601

func (c *Storage) AuthCode() interfaces.AuthCode

func (*Storage) Id added in v1.0.601

func (c *Storage) Id() string

func (*Storage) Init added in v1.0.601

func (c *Storage) Init() (err error)

func (*Storage) Tokens added in v1.0.601

func (c *Storage) Tokens() interfaces.Tokens

type Tokens added in v1.0.601

type Tokens struct {
	// contains filtered or unexported fields
}

func (*Tokens) DeleteToken added in v1.0.601

func (c *Tokens) DeleteToken(enableTracing bool, ctx context.Context, userid, id string) (err error)

func (*Tokens) FindByID added in v1.0.601

func (c *Tokens) FindByID(enableTracing bool, ctx context.Context, id string) (res []*auth.TokenList, err error)

func (*Tokens) GetToken added in v1.0.601

func (c *Tokens) GetToken(enableTracing bool, ctx context.Context, userid, id, appId string, withApp bool) (res types.TokenData, err error)

func (*Tokens) InsertToken added in v1.0.601

func (c *Tokens) InsertToken(enableTracing bool, ctx context.Context, req *auth.TokenList) (err error)

func (*Tokens) TerminateOtherTokens added in v1.0.601

func (c *Tokens) TerminateOtherTokens(enableTracing bool, ctx context.Context, userid, id string) (err error)

Jump to

Keyboard shortcuts

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