Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Component = &app.Component{ Constructor: app.Constructor(func(container container.Container) error { return container.Provides( NewOsSignal, func(osSignal *OsSignal) ReConfiguration { return osSignal }, ) }), ServeChan: app.ServeChan(func(container container.Container, isServeChan chan struct{}) error { return container.Invoke(func(osSignal *OsSignal, closer closer.Closer) error { isServeChan <- struct{}{} return osSignal.Process(closer.GetContext()) }) }), }
Functions ¶
This section is empty.
Types ¶
type OsSignal ¶
type OsSignal struct {
// contains filtered or unexported fields
}
func NewOsSignal ¶
func NewOsSignal(configurator configurator2.Configurator) *OsSignal
func (*OsSignal) Components ¶
func (osSignal *OsSignal) Components() []ReConfigurationComponent
func (*OsSignal) Registration ¶
func (osSignal *OsSignal) Registration(components ...ReConfigurationComponent)
type ReConfiguration ¶
type ReConfiguration interface {
Registration(components ...ReConfigurationComponent)
}
type ReConfigurationComponent ¶
type ReConfigurationComponent interface {
ReConfiguration(configurator configurator.Configurator) error
}
type ReConfigurationFunc ¶
type ReConfigurationFunc func(configurator configurator.Configurator) error
func (ReConfigurationFunc) ReConfiguration ¶
func (r ReConfigurationFunc) ReConfiguration(configurator configurator.Configurator) error
Click to show internal directories.
Click to hide internal directories.