Documentation ¶
Index ¶
- type PostgresStore
- func (s *PostgresStore) CreateUser(user *models.User) error
- func (s *PostgresStore) DeleteUser(uuid uuid.UUID) error
- func (s *PostgresStore) GetUserById(uuid uuid.UUID) (*models.User, error)
- func (s *PostgresStore) GetUsers() ([]*models.User, error)
- func (s *PostgresStore) UpdateUser(user *models.User) error
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresStore ¶
func NewPostgresStore ¶
func NewPostgresStore(cfg *config.DBConfig) (*PostgresStore, error)
func (*PostgresStore) CreateUser ¶
func (s *PostgresStore) CreateUser(user *models.User) error
func (*PostgresStore) DeleteUser ¶
func (s *PostgresStore) DeleteUser(uuid uuid.UUID) error
func (*PostgresStore) GetUserById ¶
func (*PostgresStore) UpdateUser ¶
func (s *PostgresStore) UpdateUser(user *models.User) error
Click to show internal directories.
Click to hide internal directories.