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) ReadUserWithEmail(email 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(appConfig appConfig.Config, logger logger.LoggerType) (*PostgresDBClient, error)
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) ReadUserWithEmail ¶ added in v1.4.0
func (psql *PostgresDBClient) ReadUserWithEmail(email 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.