Documentation ¶
Index ¶
- type Config
- type DB
- func (db *DB) AccountWithCredentials(email, password string) (*goapi.Account, error)
- func (db *DB) AddAccount(a *goapi.Account) (*goapi.Account, error)
- func (db *DB) AddSession(session *goapi.Session) (*goapi.Session, error)
- func (db *DB) CreateSession(accountID uuid.UUID) (*goapi.Session, error)
- func (db *DB) ExpireSessionFromToken(token string) (*goapi.Session, error)
- func (db *DB) SessionFromToken(token string) (*goapi.Session, error)
- func (db *DB) UpdateSession(token string) (*goapi.Session, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB represents the database
func NewWithWaitLoop ¶
func (*DB) AccountWithCredentials ¶
AccountWithCredentials returns an account if the email and password provided match an (email,password) pair in the db
func (*DB) AddAccount ¶
AddAccount insert a new account in the database
func (*DB) AddSession ¶
AddSession creates a new session
func (*DB) CreateSession ¶
CreateSession creates a new session
func (*DB) ExpireSessionFromToken ¶
ExpireSessionFromToken expires the session with the given token
func (*DB) SessionFromToken ¶
SessionFromToken fetches a session by its token
Click to show internal directories.
Click to hide internal directories.