driven

package
v0.0.0-...-d389d3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PersistenceRepositories = fx.Options(
	fx.Provide(persistence.NewRepository),
	fx.Provide(userEntityRepository),
	fx.Provide(fx.Annotate(users.NewUserRepository, fx.ParamTags(`name:"userEntityRepository"`))),
)
View Source
var QueryTemplateEngine = fx.Provide(func(config *config.AppConfig) (sqlTemplate.QueryTemplateEngine, error) {
	sqlT := sqlTemplate.NewQueryTemplateEngine()

	if err := sqlT.Register("users", config.Assets.TemplateSQL, ".tsql"); err != nil {
		return nil, err
	}

	return sqlT, nil
})

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL