Documentation
¶
Index ¶
- Constants
- type ApplicationClosingEvent
- type ApplicationEvent
- type ApplicationEventListener
- type ApplicationEventPublisher
- type ApplicationRunner
- type ApplicationRunnerWithContext
- type ApplicationStartedEvent
- type CloserComponent
- type CloserComponentWithContext
- type ComponentCreatedEvent
- type ConditionContext
- type ConditionalComponent
- type ConfigurationProperties
- type InitializeComponent
- type InitializeComponentWithContext
- type InitializingComponent
- type InitializingComponentWithContext
- type LazyInit
- type LazyInitComponent
- type NamingComponent
- type Ordered
- type Priority
- type PriorityComponent
- type PriorityOrdered
- type ScopeComponent
- type WirePrimary
- type WirePrimaryComponent
- type WireQualifier
Constants ¶
View Source
const ( ScopeSingleton = "singleton" ScopePrototype = "prototype" )
View Source
const ( //System Components tag LoggerTag = "logger" //components tag InjectTag = "wire" FuncTag = "func" //configuration tag ValueTag = "value" PropTag = "prop" //`prop` tag is alias to `value:"${prop_value}"` PrefixTag = "prefix" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationClosingEvent ¶ added in v1.6.0
type ApplicationClosingEvent struct {
App interface{}
}
func (*ApplicationClosingEvent) Source ¶ added in v1.6.0
func (e *ApplicationClosingEvent) Source() interface{}
type ApplicationEvent ¶ added in v1.6.0
type ApplicationEvent interface {
Source() interface{}
}
type ApplicationEventListener ¶ added in v1.6.0
type ApplicationEventListener interface {
OnEvent(event ApplicationEvent) error
}
type ApplicationEventPublisher ¶ added in v1.6.0
type ApplicationEventPublisher interface {
PublishEvent(event ApplicationEvent) error
}
type ApplicationRunner ¶
type ApplicationRunner interface {
Run() error
}
type ApplicationRunnerWithContext ¶ added in v1.6.0
type ApplicationStartedEvent ¶ added in v1.6.0
type ApplicationStartedEvent struct {
App interface{}
}
func (*ApplicationStartedEvent) Source ¶ added in v1.6.0
func (e *ApplicationStartedEvent) Source() interface{}
type CloserComponent ¶
type CloserComponent interface {
Close() error
}
type CloserComponentWithContext ¶ added in v1.6.0
type ComponentCreatedEvent ¶ added in v1.6.0
type ComponentCreatedEvent struct {
ComponentName string
Component interface{}
}
func (*ComponentCreatedEvent) Source ¶ added in v1.6.0
func (e *ComponentCreatedEvent) Source() interface{}
type ConditionContext ¶ added in v1.6.0
type ConditionalComponent ¶ added in v1.6.0
type ConditionalComponent interface {
Condition(ctx ConditionContext) bool
}
type ConfigurationProperties ¶ added in v1.5.5
type ConfigurationProperties interface {
Prefix() string
}
type InitializeComponent ¶
type InitializeComponent interface {
Init() error
}
type InitializeComponentWithContext ¶ added in v1.6.0
type InitializingComponent ¶
type InitializingComponent interface {
AfterPropertiesSet() error
}
type InitializingComponentWithContext ¶ added in v1.6.0
type LazyInitComponent ¶
type LazyInitComponent struct{}
func (*LazyInitComponent) LazyInit ¶
func (i *LazyInitComponent) LazyInit()
type NamingComponent ¶
type NamingComponent interface {
Naming() string
}
type PriorityComponent ¶
type PriorityComponent struct{}
func (*PriorityComponent) Priority ¶
func (i *PriorityComponent) Priority()
type PriorityOrdered ¶
type ScopeComponent ¶ added in v1.6.0
type ScopeComponent interface {
Scope() string
}
type WirePrimary ¶
type WirePrimary interface {
Primary()
}
type WirePrimaryComponent ¶
type WirePrimaryComponent struct{}
func (*WirePrimaryComponent) Primary ¶
func (i *WirePrimaryComponent) Primary()
type WireQualifier ¶
type WireQualifier interface {
Qualifier() string
}
Click to show internal directories.
Click to hide internal directories.