Documentation ¶
Index ¶
- type Auth
- func (a *Auth) AddRecord(uid types.Uid, scheme, unique string, authLvl t.Level, secret []byte, ...) error
- func (a *Auth) DelAllRecords(user types.Uid) (int, error)
- func (a *Auth) DelScheme(user types.Uid, scheme string) error
- func (a *Auth) GetRecord(uid types.Uid, scheme string) (string, t.Level, []byte, time.Time, error)
- func (a *Auth) GetUniqueRecord(unique string) (types.Uid, t.Level, []byte, time.Time, error)
- func (a *Auth) UpdRecord(uid types.Uid, scheme, unique string, authLvl t.Level, secret []byte, ...) error
- type AuthArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) AddRecord ¶
func (a *Auth) AddRecord(uid types.Uid, scheme, unique string, authLvl t.Level, secret []byte, expires time.Time) error
AddRecord creates new authentication record
func (*Auth) DelAllRecords ¶
DelAllRecords deletes all authentication records for the user.
func (*Auth) GetUniqueRecord ¶
GetUniqueRecord returns user_id, auth level, secret, expire for a given unique value i.e. login.
type AuthArgs ¶
type AuthArgs struct { DB *pgxpool.Pool Utils *utils.Utils Cfg *config.StorePostgresConfig UGen *types.UidGenerator }
Click to show internal directories.
Click to hide internal directories.