Documentation
¶
Index ¶
- type DB
- func (db *DB) CreateChirp(chirp models.Chirp) (models.Chirp, error)
- func (db *DB) CreateUser(signupReq models.SignUpRequest) (models.User, error)
- func (db *DB) DeleteChirp(id string) error
- func (db *DB) DeleteOldDBFileIfExists(filepath string) error
- func (db *DB) GetChirp(id string) (models.Chirp, error)
- func (db *DB) GetChirps(sortOrder string) ([]models.Chirp, error)
- func (db *DB) GetChirpsByAuthorID(id string) ([]models.Chirp, error)
- func (db *DB) GetUserByEmail(email string) (models.User, error)
- func (db *DB) GetUserByID(id int) (models.User, error)
- func (db *DB) InvalidateRefreshToken(token string) error
- func (db *DB) RefreshTokenIsInvalid(token string) bool
- func (db *DB) UpdateUser(user models.User) error
- type DBStructure
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
}
func (*DB) CreateUser ¶
func (*DB) DeleteChirp ¶
func (*DB) DeleteOldDBFileIfExists ¶
func (*DB) GetChirpsByAuthorID ¶
func (*DB) InvalidateRefreshToken ¶
func (*DB) RefreshTokenIsInvalid ¶
Click to show internal directories.
Click to hide internal directories.