Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
Component mini wrapper component
func New ¶
func New(name string, opts ...OptionFunc) *Component
func (*Component) OnAfterInit ¶
func (p *Component) OnAfterInit()
func (*Component) OnBeforeStop ¶
func (p *Component) OnBeforeStop()
type OptionFunc ¶
type OptionFunc func(options *options)
func WithAfterInit ¶
func WithAfterInit(fn func(cf.IApplication)) OptionFunc
func WithBeforeStop ¶
func WithBeforeStop(fn func(cf.IApplication)) OptionFunc
func WithInitFunc ¶
func WithInitFunc(fn func(cf.IApplication)) OptionFunc
func WithStop ¶
func WithStop(fn func(cf.IApplication)) OptionFunc
Click to show internal directories.
Click to hide internal directories.