app

package
v1.2.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	configure.Binder
	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 AppendConfigLoader added in v1.2.7

func AppendConfigLoader(loaders ...configure.Loader) SettingOption

func DisableApplicationRunner added in v1.2.0

func DisableApplicationRunner() 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 SetRegistry

func SetRegistry(r registry.Registry) SettingOption

func SetScanTags added in v1.2.7

func SetScanTags(tags ...string) 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