Documentation ¶
Overview ¶
Package mongo provides setup for spinning up a mongodb container.
Index ¶
- func DSN(dbName string) string
- func Request(opts ...testcontainers.GenericContainerOption) testcontainers.StartGenericContainerRequest
- func RunMigrations(migrationSource, dbName string) testcontainers.ContainerCallback
- func StartGenericContainer(ctx context.Context, opts ...testcontainers.GenericContainerOption) (testcontainers.Container, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Request ¶
func Request(opts ...testcontainers.GenericContainerOption) testcontainers.StartGenericContainerRequest
Request creates a new request for starting a mongo server.
func RunMigrations ¶
func RunMigrations(migrationSource, dbName string) testcontainers.ContainerCallback
RunMigrations is option to run migrations.
func StartGenericContainer ¶
func StartGenericContainer(ctx context.Context, opts ...testcontainers.GenericContainerOption) (testcontainers.Container, error)
StartGenericContainer starts a new mysql container.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.