Documentation ¶
Index ¶
- Variables
- func BackoffWithTimeout(tctx context.Context, timeout *time.Duration) backoff.BackOffContext
- func CheckErrFatal(err error)
- func Context() context.Context
- func NewPostgresDB(ctx context.Context, manager *container.Manager, params NewPostgresDBParams) (dsn *url.URL, err error)
- func NewWorkspaceFileStore(ctx context.Context) (store *config.FileStore, err error)
- func SetupPostgresDatabaseConnection(ctx context.Context, params SetupPostgresDatabaseConnectionParams) (dsn *url.URL, err error)
- func SetupTestMainWithDB(m *testing.M, params SetupTestMainWithDBParams)
- func WaitForPostgres(ctx context.Context, db *sql.DB, timeout *time.Duration) container.StartOption
- type Connection
- type MigrationProvider
- type NewPostgresDBParams
- type SetupPostgresDatabaseConnectionParams
- type SetupTestMainWithDBParams
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalFileStoreSet = wire.NewSet( NewWorkspaceFileStore, wire.Bind(new(config.Store), new(*config.FileStore)), )
View Source
var PostgresUserinfo = url.UserPassword("postgres", "password")
View Source
var ReadWriteUserinfo = url.UserPassword("read_write", "password")
Functions ¶
func BackoffWithTimeout ¶
func CheckErrFatal ¶
func CheckErrFatal(err error)
func NewPostgresDB ¶
func NewWorkspaceFileStore ¶
func SetupTestMainWithDB ¶
func SetupTestMainWithDB( m *testing.M, params SetupTestMainWithDBParams, )
func WaitForPostgres ¶
Types ¶
type Connection ¶
func GetDB ¶
func GetDB() (Connection, error)
type MigrationProvider ¶
type NewPostgresDBParams ¶
type SetupPostgresDatabaseConnectionParams ¶
type SetupPostgresDatabaseConnectionParams struct { Manager *container.Manager LoadMigrations MigrationProvider ContainerName string DatabaseName string }
type SetupTestMainWithDBParams ¶
type SetupTestMainWithDBParams struct { LoadMigrations MigrationProvider ContainerName string DatabaseName string }
Click to show internal directories.
Click to hide internal directories.