Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostgresContainer ¶
NewPostgresContainer return a postgres url to tests execute queries.
func NewRedisContainer ¶
NewRedisContainer return a Redis url to tests.
func RunMigrateDatabase ¶
RunMigrateDatabase execute all migrations against a database. Example: postgresURL := "postgres://%s:%s@localhost:%s/ledger-exp?sslmode=disable"
_, callerPath, _, _ := runtime.Caller(0) migrationsURL := fmt.Sprintf("file://%s/../../migrations/", filepath.Dir(callerPath)).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.