Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { WithComponentManager(Manager) Builder WithMetrics(metric.Metrics) Builder Build() Component }
Component builder, build component with injecting govern plugin
type ComponentFunc ¶
type ComponentFunc func(<-chan struct{}) error
func (ComponentFunc) ShouldBeLeader ¶
func (f ComponentFunc) ShouldBeLeader() bool
func (ComponentFunc) Start ¶
func (f ComponentFunc) Start(stop <-chan struct{}) error
Click to show internal directories.
Click to hide internal directories.