Documentation
¶
Index ¶
- type CachedResponse
- type DB
- func (db *DB) GetAllUsers() ([]*UserDisplay, error)
- func (db *DB) GetCachedResponse(url string) (*CachedResponse, error)
- func (db *DB) GetUser(id int) (*User, error)
- func (db *DB) GetUserByEmail(email string) (*User, error)
- func (db *DB) InsertCachedResponse(url string, payload []byte) (int, error)
- func (db *DB) InsertUser(email, hashedPassword string) (int, error)
- func (db *DB) UpdateUserHashedPassword(id int, hashedPassword string) error
- type User
- type UserDisplay
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedResponse ¶
type DB ¶
func (*DB) GetAllUsers ¶
func (db *DB) GetAllUsers() ([]*UserDisplay, error)
func (*DB) GetCachedResponse ¶
func (db *DB) GetCachedResponse(url string) (*CachedResponse, error)
func (*DB) InsertCachedResponse ¶
Click to show internal directories.
Click to hide internal directories.