Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullWorker ¶
NullWorker implements a minimal worker controled with contexts.
func New ¶ added in v1.4.0
func New() *NullWorker
func NewNullWorker ¶ added in v1.4.0
func NewNullWorker() *NullWorker
NewNullWorker is Deprecated: use New instead.
func (*NullWorker) Ctx ¶
func (w *NullWorker) Ctx() context.Context
func (*NullWorker) Logger ¶ added in v1.1.0
func (w *NullWorker) Logger() *zap.Logger
func (*NullWorker) Run ¶
func (w *NullWorker) Run() error
func (*NullWorker) Terminate ¶
func (w *NullWorker) Terminate() error
type SNullWorker ¶
type SNullWorker struct {
*NullWorker
}
SNullWorker implements a silent nullworker where all interfaces are implemented so no errors are shown during startup.
func NewSNullWorker ¶ added in v1.4.0
func NewSNullWorker() *SNullWorker
func (*SNullWorker) Alive ¶ added in v1.4.0
func (w *SNullWorker) Alive() error
func (*SNullWorker) Gatherer ¶
func (w *SNullWorker) Gatherer() prometheus.Gatherer
func (*SNullWorker) Healthy ¶
func (w *SNullWorker) Healthy() error
Click to show internal directories.
Click to hide internal directories.