Documentation ¶
Index ¶
- func LoadConfig[T any](path string) (T, error)
- func MySQLMigrateDB(options MySQLMigrateOptions) (func() error, error)
- func NewMySQLDB(config mysql.Config) (*mysql.Mysql, error)
- func NewMySQLDBSingleton(config mysql.Config) (*mysql.Mysql, error)
- func SeedDB(options MySQLSeedOptions) (func() error, error)
- type BuildAndRunContainer
- type BuildAndRunContainerOptions
- type DBEnv
- type Exposed
- type MySQLMigrateOptions
- type MySQLSeedOptions
- type PortBinding
- type RunContainer
- type RunContainerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func MySQLMigrateDB ¶
func MySQLMigrateDB(options MySQLMigrateOptions) (func() error, error)
func SeedDB ¶
func SeedDB(options MySQLSeedOptions) (func() error, error)
Types ¶
type BuildAndRunContainer ¶
type BuildAndRunContainer struct {
// contains filtered or unexported fields
}
func NewBuildAndRunContainer ¶
func NewBuildAndRunContainer(options BuildAndRunContainerOptions) *BuildAndRunContainer
func (*BuildAndRunContainer) GetOptions ¶
func (c *BuildAndRunContainer) GetOptions() BuildAndRunContainerOptions
func (*BuildAndRunContainer) SetNetwork ¶
func (c *BuildAndRunContainer) SetNetwork(network *dockertest.Network) *BuildAndRunContainer
func (*BuildAndRunContainer) Start ¶
func (c *BuildAndRunContainer) Start(fn func() error) error
func (*BuildAndRunContainer) Stop ¶
func (c *BuildAndRunContainer) Stop(fn func() error) error
type MySQLMigrateOptions ¶
type MySQLSeedOptions ¶
type PortBinding ¶
type RunContainer ¶
type RunContainer struct {
// contains filtered or unexported fields
}
func NewRunContainer ¶
func NewRunContainer(options RunContainerOptions) *RunContainer
func (*RunContainer) SetNetwork ¶
func (c *RunContainer) SetNetwork(network *dockertest.Network) *RunContainer
func (*RunContainer) Start ¶
func (c *RunContainer) Start(fn func() error) error
func (*RunContainer) Stop ¶
func (c *RunContainer) Stop(fn func() error) error
Click to show internal directories.
Click to hide internal directories.