Documentation ¶
Index ¶
- type SessionDB
- type UserDB
- func (udb *UserDB) AddCredentialsForUser(user *types.User, credentials []webauthn.Credential) error
- func (udb *UserDB) DeleteUserByID(id string) error
- func (udb *UserDB) GetUser(username string) (*types.User, error)
- func (udb *UserDB) GetUserByID(id string) (*types.User, error)
- func (udb *UserDB) PutUser(user *types.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionDB ¶
type SessionDB struct {
// contains filtered or unexported fields
}
func NewSessionDB ¶
func (*SessionDB) AuthenticateSession ¶
func (*SessionDB) DeleteSession ¶
func (*SessionDB) GetSession ¶
GetSession returns a *SessionData by the session's ID
func (*SessionDB) StartSession ¶
func (sdb *SessionDB) StartSession(data *webauthn.SessionData) (string, error)
type UserDB ¶
type UserDB struct {
// contains filtered or unexported fields
}
func NewUsersDB ¶
func (*UserDB) AddCredentialsForUser ¶
func (*UserDB) DeleteUserByID ¶
Click to show internal directories.
Click to hide internal directories.