Documentation ¶
Index ¶
- Variables
- func AutoConfiguration(params ...interface{}) (err error)
- func Component(params ...interface{}) error
- func HideBanner()
- func RegisterPostProcessor(p ...PostProcessor)
- type Application
- type ApplicationContext
- type BaseApplication
- func (a *BaseApplication) AfterInitialization(configs ...cmap.ConcurrentMap)
- func (a *BaseApplication) BeforeInitialization()
- func (a *BaseApplication) BuildConfigurations()
- func (a *BaseApplication) ConfigurableFactory() *autoconfigure.ConfigurableFactory
- func (a *BaseApplication) Init(args ...interface{}) error
- func (a *BaseApplication) RegisterController(controller interface{}) error
- func (a *BaseApplication) SystemConfig() *system.Configuration
- func (a *BaseApplication) Use(handlers ...context.Handler)
- type Configuration
- type PostConfiguration
- type PostProcessor
- type PreConfiguration
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InvalidObjectTypeError = errors.New("[app] invalid Configuration type, one of app.Configuration, app.PreConfiguration, or app.PostConfiguration need to be embedded") ConfigurationNameIsTakenError = errors.New("[app] configuration name is already taken") ComponentNameIsTakenError = errors.New("[app] component name is already taken") )
Functions ¶
func AutoConfiguration ¶
func AutoConfiguration(params ...interface{}) (err error)
AutoConfiguration
func HideBanner ¶ added in v0.5.4
func HideBanner()
func RegisterPostProcessor ¶
func RegisterPostProcessor(p ...PostProcessor)
Types ¶
type ApplicationContext ¶ added in v0.5.4
type BaseApplication ¶
type BaseApplication struct { WorkDir string // contains filtered or unexported fields }
func (*BaseApplication) AfterInitialization ¶
func (a *BaseApplication) AfterInitialization(configs ...cmap.ConcurrentMap)
func (*BaseApplication) BeforeInitialization ¶
func (a *BaseApplication) BeforeInitialization()
func (*BaseApplication) BuildConfigurations ¶
func (a *BaseApplication) BuildConfigurations()
func (*BaseApplication) ConfigurableFactory ¶
func (a *BaseApplication) ConfigurableFactory() *autoconfigure.ConfigurableFactory
func (*BaseApplication) Init ¶
func (a *BaseApplication) Init(args ...interface{}) error
BeforeInitialization ?
func (*BaseApplication) RegisterController ¶
func (a *BaseApplication) RegisterController(controller interface{}) error
func (*BaseApplication) SystemConfig ¶
func (a *BaseApplication) SystemConfig() *system.Configuration
Config returns application config
func (*BaseApplication) Use ¶
func (a *BaseApplication) Use(handlers ...context.Handler)
type Configuration ¶
type Configuration interface{}
type PostConfiguration ¶
type PostConfiguration interface{}
type PostProcessor ¶
type PostProcessor interface { BeforeInitialization(factory interface{}) AfterInitialization(factory interface{}) }
type PreConfiguration ¶
type PreConfiguration interface{}
Click to show internal directories.
Click to hide internal directories.