Documentation ¶
Index ¶
- func NewAuthCode(mm interfaces.Models, m *Storage, db radix.Client) (res interfaces.AuthCode, err error)
- func NewStorage(mm interfaces.Models, opt *interfaces.AuthOption, database interface{}) interfaces.Storage
- func NewTokens(mm interfaces.Models, m *Storage, db radix.Client) (res interfaces.Tokens, err error)
- type AuthCode
- func (c *AuthCode) Add(enableTracing bool, ctx context.Context, req *auth.AuthCodeList) (err error)
- func (c *AuthCode) Del(enableTracing bool, ctx context.Context, req *auth.AuthCodeList) (err error)
- func (c *AuthCode) FindByCode(enableTracing bool, ctx context.Context, code string) (res []*auth.AuthCodeList, err error)
- func (c *AuthCode) FindByState(enableTracing bool, ctx context.Context, userId, state string) (res []*auth.AuthCodeList, err error)
- type Storage
- type Tokens
- func (c *Tokens) DeleteToken(enableTracing bool, ctx context.Context, userid, id string) (err error)
- func (c *Tokens) FindByID(enableTracing bool, ctx context.Context, id string) (res []*auth.TokenList, err error)
- func (c *Tokens) GetToken(enableTracing bool, ctx context.Context, userid, id, appId string, ...) (res types.TokenData, err error)
- func (c *Tokens) InsertToken(enableTracing bool, ctx context.Context, req *auth.TokenList) (err error)
- func (c *Tokens) TerminateOtherTokens(enableTracing bool, ctx context.Context, userid, id string) (err error)
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) FindByCode ¶ added in v1.0.601
func (*AuthCode) FindByState ¶ added in v1.0.601
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) 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 (*Tokens) InsertToken ¶ added in v1.0.601
Click to show internal directories.
Click to hide internal directories.