Documentation ¶
Index ¶
- func InitializeMiddlewareAndRoutes(middleware middlewares.Middlewares, route routes.Routes) error
- func MigrationUp(migrator migration.Migrator) error
- func Runner(tb testing.TB, test TestRunner, option fx.Option, initializers ...interface{}) *fx.App
- func TruncateDatabase(db persistence.Database, config *config.AppConfig) error
- func WithApplicationAndApplyMigration(opts ...fx.Option) fx.Option
- func WithDatabaseName(t *testing.T, testFuncName string) fx.Option
- func WithPersistence() fx.Option
- func WithPersistenceAndApplyMigration(opts ...fx.Option) fx.Option
- type InvokeFunc
- type TestRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeMiddlewareAndRoutes ¶
func InitializeMiddlewareAndRoutes(middleware middlewares.Middlewares, route routes.Routes) error
InitializeMiddlewareAndRoutes is a InvokeFunc that should be passed to fx.Invoke.
func MigrationUp ¶
MigrationUp is a InvokeFunc that should be passed to fx.Invoke.
func TruncateDatabase ¶
func TruncateDatabase(db persistence.Database, config *config.AppConfig) error
TruncateDatabase is a InvokeFunc that should be passed to fx.Invoke.
func WithPersistence ¶
Types ¶
type InvokeFunc ¶
type InvokeFunc any
type TestRunner ¶
type TestRunner any
Click to show internal directories.
Click to hide internal directories.