Documentation ¶
Index ¶
- type PostgresDBClient
- func (psql *PostgresDBClient) CreateUser(user *domain.User) (*domain.User, error)
- func (psql *PostgresDBClient) DeleteUser(id string) (string, error)
- func (psql *PostgresDBClient) ReadUser(id string) (*domain.User, error)
- func (psql *PostgresDBClient) ReadUsers() ([]domain.User, error)
- func (psql *PostgresDBClient) UpdateUser(user *domain.User) (*domain.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresDBClient ¶
type PostgresDBClient struct {
// contains filtered or unexported fields
}
func NewPostgresClient ¶
func NewPostgresClient(config config.Config) *PostgresDBClient
func (*PostgresDBClient) CreateUser ¶
func (*PostgresDBClient) DeleteUser ¶
func (psql *PostgresDBClient) DeleteUser(id string) (string, error)
func (*PostgresDBClient) ReadUser ¶
func (psql *PostgresDBClient) ReadUser(id string) (*domain.User, error)
func (*PostgresDBClient) ReadUsers ¶
func (psql *PostgresDBClient) ReadUsers() ([]domain.User, error)
func (*PostgresDBClient) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.