Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ApplicationModule = fx.Options( DefaultModule, domain.Module, api.Module, driven.Module, fx.Provide(factories.NewUserFactory), )
ApplicationModule contains the dependency graph for the application components.
View Source
var DefaultHTTPModule = fx.Options( logger.Module, fx.Provide(fx.Annotate(routes.NewRoutes, fx.ParamTags(`group:"routers"`))), fx.Provide(fx.Annotate(middlewares.NewMiddlewares, fx.ParamTags(`group:"http_middlewares"`))), fx.Provide(fx.Annotate(handlers.NewErrorResponseManager, fx.ParamTags(`group:"error_type_handlers"`))), fx.Provide(routeHandler.NewRootRouteHandler), fx.Provide(common.NewRequestHandler), )
DefaultHTTPModule contains the dependency graph for the default http api components.
View Source
var DefaultModule = fx.Options( fx.Provide(func() env.Env { return env.NewEnvWithPath(utils.TestDirectoryRoot + "/.env") }), fx.Provide(func(env env.Env) *config.AppConfig { return config.NewAppConfig(&config.AssetsConfig{EmbedMigrations: MigrationFs(), TemplateSQL: TemplateSQLFs()}, env) }), )
DefaultModule contains the dependency graph for the default application components.
View Source
var TestPersistenceModule = fx.Options( DefaultModule, logger.Module, fx.Provide(persistence.NewDatabase), driven.PersistenceRepositories, driven.QueryTemplateEngine, fx.Provide(factories.NewUserFactory), fx.Provide(migration.NewGooseMigrator), )
TestPersistenceModule contains the dependency graph for the persistence components.
Functions ¶
func MigrationFs ¶
func TemplateSQLFs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.