Documentation
¶
Index ¶
- Variables
- type DB
- func (d *DB) AddSessionToUser(_ context.Context, gothID, session string) error
- func (d *DB) CreateOrUpdateUser(_ context.Context, gothID, provider, email, name string) (string, error)
- func (d *DB) GetUser(_ context.Context, userID string) (any, error)
- func (d *DB) GetUserID(_ context.Context, gothID string) (string, error)
- func (d *DB) GetUserIDFromToken(_ context.Context, token string) (string, error)
- func (d *DB) GetUserWithSession(_ context.Context, userID string, token string) (any, error)
- func (d *DB) UpdateUserInfo(_ context.Context, userID string, email string, name string) error
- func (d *DB) UserDisabled(_ context.Context, userID string) (bool, error)
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoUser = errors.New("user does not exist")
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AddSessionToUser ¶
func (*DB) CreateOrUpdateUser ¶
func (*DB) GetUserIDFromToken ¶
func (*DB) GetUserWithSession ¶
func (*DB) UpdateUserInfo ¶
Click to show internal directories.
Click to hide internal directories.