app

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogTrace = func(s *App) { syslog.Level(syslog.LvTrace) }
	LogWarn  = func(s *App) { syslog.Level(syslog.LvWarn) }
	LogError = func(s *App) { syslog.Level(syslog.LvError) }
)

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

func (*App) Close added in v1.2.13

func (s *App) Close()

func (*App) Run

func (s *App) Run() error

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

Jump to

Keyboard shortcuts

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