Documentation ¶
Index ¶
- type DB
- func (db *DB) DoesUserExist(userID uint) (bool, error)
- func (db *DB) GoogleUser(googleUserID string) (*model.User, error)
- func (db *DB) RegisterGoogleUser(googleUser goth.User) (uint, error)
- func (db *DB) User(userID uint) (*model.User, error)
- func (db *DB) UserIDOfGoogleUser(googleUserID string) (*uint, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
Interface between the server and its primary data store.
func (*DB) DoesUserExist ¶
Returns true if a user associated with the specified userID exists.
func (*DB) GoogleUser ¶
Returns the user identified by the specified googleUserID, or nil if no such user exists.
func (*DB) RegisterGoogleUser ¶
Creates an entry in the database for the specified googleUser.
Click to show internal directories.
Click to hide internal directories.