Documentation ¶
Index ¶
- Variables
- type App
- type SettingOption
- func AddConfigLoader(loaders ...configure.Loader) SettingOption
- func AddCustomizedInjectors(injectors ...injector.InjectProcessor) SettingOption
- func AddScanPolicies(policies ...scanner.ScanPolicy) SettingOption
- func DisableApplicationRunner() SettingOption
- func DisableComponentInitialization() SettingOption
- func LogLevel(lv syslog.Lv) SettingOption
- func Options(opts ...SettingOption) SettingOption
- func SetComponents(c ...interface{}) SettingOption
- func SetConfig(cfg string) SettingOption
- func SetConfigBinder(binder configure.Binder) SettingOption
- func SetConfigLoader(loaders ...configure.Loader) SettingOption
- func SetFactory(factory factory.Factory) SettingOption
- func SetLogger(l syslog.Logger) SettingOption
- func SetRegistry(r registry.Registry) SettingOption
- func SetScanner(sc scanner.Scanner) SettingOption
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { configure.Configure injector.Injector registry.Registry factory.Factory scanner.Scanner // contains filtered or unexported fields }
func NewApp ¶
func NewApp(ops ...SettingOption) *App
type SettingOption ¶
type SettingOption func(s *App)
func AddConfigLoader ¶ added in v1.4.0
func AddConfigLoader(loaders ...configure.Loader) SettingOption
func AddCustomizedInjectors ¶ added in v1.3.0
func AddCustomizedInjectors(injectors ...injector.InjectProcessor) SettingOption
func AddScanPolicies ¶ added in v1.4.0
func AddScanPolicies(policies ...scanner.ScanPolicy) SettingOption
func DisableApplicationRunner ¶ added in v1.2.0
func DisableApplicationRunner() SettingOption
func DisableComponentInitialization ¶ added in v1.3.0
func DisableComponentInitialization() SettingOption
func LogLevel ¶ added in v1.3.1
func LogLevel(lv syslog.Lv) SettingOption
func Options ¶ added in v1.3.3
func Options(opts ...SettingOption) SettingOption
func SetComponents ¶
func SetComponents(c ...interface{}) SettingOption
func SetConfig ¶
func SetConfig(cfg string) SettingOption
func SetConfigBinder ¶ added in v1.2.0
func SetConfigBinder(binder configure.Binder) SettingOption
func SetConfigLoader ¶ added in v1.2.0
func SetConfigLoader(loaders ...configure.Loader) SettingOption
func SetFactory ¶
func SetFactory(factory factory.Factory) SettingOption
func SetLogger ¶ added in v1.3.1
func SetLogger(l syslog.Logger) SettingOption
func SetRegistry ¶
func SetRegistry(r registry.Registry) SettingOption
func SetScanner ¶ added in v1.2.0
func SetScanner(sc scanner.Scanner) SettingOption
Click to show internal directories.
Click to hide internal directories.