Documentation
¶
Index ¶
- type Module
- func (_m *Module) Configure(_a0 config.Config) error
- func (_m *Module) Dependencies() []string
- func (_m *Module) GetMigrationSources(projectRoot string) []migration_runner.Source
- func (_m *Module) Initialize(ctx context.Context, db *gorm.DB, router *gin.Engine) error
- func (_m *Module) MigrationsDir() string
- func (_m *Module) Name() string
- func (_m *Module) Namespace() module.ModuleNamespace
- func (_m *Module) NewConfig() config.Config
- func (_m *Module) ProvidesMigrations() bool
- func (_m *Module) Shutdown(ctx context.Context) error
- func (_m *Module) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
Module is an autogenerated mock type for the Module type
func NewModule ¶
NewModule creates a new instance of Module. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Module) Dependencies ¶
Dependencies provides a mock function with no fields
func (*Module) GetMigrationSources ¶
func (_m *Module) GetMigrationSources(projectRoot string) []migration_runner.Source
GetMigrationSources provides a mock function with given fields: projectRoot
func (*Module) Initialize ¶
Initialize provides a mock function with given fields: ctx, db, router
func (*Module) MigrationsDir ¶
MigrationsDir provides a mock function with no fields
func (*Module) Namespace ¶
func (_m *Module) Namespace() module.ModuleNamespace
Namespace provides a mock function with no fields
func (*Module) ProvidesMigrations ¶
ProvidesMigrations provides a mock function with no fields
Click to show internal directories.
Click to hide internal directories.