app

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 9 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.ConfigLoader
	configure.ConfigBinder
	registry.Registry
	factory.Factory
	// contains filtered or unexported fields
}

func NewApp

func NewApp(ops ...SettingOption) *App

func (*App) Run

func (s *App) Run() error

type SettingOption

type SettingOption func(s *App)

func SetCallRunnersFunc

func SetCallRunnersFunc(fn func(runners []defination.ApplicationRunner) error) SettingOption

func SetComponents

func SetComponents(c ...interface{}) SettingOption

func SetConfig

func SetConfig(cfg string) SettingOption

func SetConfigure

func SetConfigure(loader configure.ConfigLoader, binder configure.ConfigBinder) SettingOption

func SetDefaultConfigure

func SetDefaultConfigure() SettingOption

func SetFactory

func SetFactory(factory factory.Factory) SettingOption

func SetRegistry

func SetRegistry(r registry.Registry) SettingOption

Jump to

Keyboard shortcuts

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