Documentation ¶
Index ¶
- func ConfigureDB(cfg *config.AppConfig)
- func CreateMigratedDatabase() *sql.DB
- func DropDatabase(db *sql.DB) error
- func GetRawTestingDatabase() *sql.DB
- func GetTestingApp(options ...TestingAppOption) (*app.App, error)
- func GetTestingDatabase() model.Repository
- func GetTestingDatabaseFromRawDB(db *sql.DB) model.Repository
- func StartTestEnvironment()
- func StopTestEnvironment()
- type DemoApp
- type DemoAppConfig
- type TestingAppOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureDB ¶
func CreateMigratedDatabase ¶
func DropDatabase ¶
func GetRawTestingDatabase ¶
func GetTestingApp ¶
func GetTestingApp(options ...TestingAppOption) (*app.App, error)
func GetTestingDatabase ¶
func GetTestingDatabase() model.Repository
func GetTestingDatabaseFromRawDB ¶
func GetTestingDatabaseFromRawDB(db *sql.DB) model.Repository
func StartTestEnvironment ¶
func StartTestEnvironment()
func StopTestEnvironment ¶
func StopTestEnvironment()
Types ¶
type DemoApp ¶
type DemoApp struct {
// contains filtered or unexported fields
}
func (*DemoApp) JaegerEndpoint ¶
type DemoAppConfig ¶
type DemoAppConfig struct {
Endpoint string
}
type TestingAppOption ¶
func WithHttpPort ¶
func WithHttpPort(port int) TestingAppOption
func WithServerPrefix ¶
func WithServerPrefix(prefix string) TestingAppOption
Click to show internal directories.
Click to hide internal directories.