Documentation ¶
Index ¶
- func GormInit() (*gorm.DB, error)
- func HashPassword(password string) (string, error)
- func Initialize(db *gorm.DB)
- type Postgres
- func (p *Postgres) DeleteUser(user *models.User) error
- func (p *Postgres) GetUserById(user *models.User) error
- func (p *Postgres) GetUsers(users *[]models.User) error
- func (p *Postgres) LoginUser(user *models.User) error
- func (p *Postgres) RegisterUser(user *models.User) error
- func (p *Postgres) UpdateUserById(id *uuid.UUID, updateItem map[string]interface{}) error
- type RedisDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashPassword ¶
func Initialize ¶
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func NewPostgres ¶
func NewPostgres() *Postgres
type RedisDB ¶
type RedisDB struct {
// contains filtered or unexported fields
}
func (*RedisDB) ReceiverToken ¶
func (*RedisDB) RevokeToken ¶
Click to show internal directories.
Click to hide internal directories.