Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgresRepo ¶
func NewPostgresRepo(conn *sql.DB, a *config.AppConfig) repository.DatabaseRepo
NewPostgresRepo instantiates new postgresDBRepo object based on specified DB connection and application config
func NewTestingRepo ¶
func NewTestingRepo(a *config.AppConfig) repository.DatabaseRepo
NewTestingRepo initializes new testDBRepo object based on application config only. We do not need a DB itself for the purpose of unit testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.