nullworker

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullWorker

type NullWorker struct {
	WG sync.WaitGroup
	// contains filtered or unexported fields
}

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) Init

func (w *NullWorker) Init(l *zap.Logger) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL