Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶
func NewConnection(cfg config.DatabaseConfig) (*sql.DB, error)
Types ¶
type Postgres ¶
func NewPostgresDatabase ¶
func NewPostgresDatabase(cfg config.DatabaseConfig) (*Postgres, error)
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository(db *Postgres) *UserRepository
func (*UserRepository) CreateUser ¶
Click to show internal directories.
Click to hide internal directories.