runner

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidInterval = utils.Error("interval must be positive")
	ErrNilRunnerFn     = utils.Error("runner function must not be nil")
	ErrNilLogger       = utils.Error("logger must not be nil")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PeriodicRunner

type PeriodicRunner struct {
	// contains filtered or unexported fields
}

func NewUpdater

func NewUpdater(updateInterval time.Duration, updateFn RunnerFn, logger *log.Logger) (*PeriodicRunner, error)

func (*PeriodicRunner) Start

func (u *PeriodicRunner) Start(ctx context.Context) error

func (*PeriodicRunner) Stop

func (u *PeriodicRunner) Stop(ctx context.Context) error

type RunnerFn

type RunnerFn func(ctx context.Context) error

Jump to

Keyboard shortcuts

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