workers

package
v0.0.0-...-bff9524 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitOpsWorker

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

func (*GitOpsWorker) Do

func (g *GitOpsWorker) Do(ctx context.Context) error

func (*GitOpsWorker) Name

func (g *GitOpsWorker) Name() string

type Scheduler

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

func New

func New(heartbeat time.Duration) *Scheduler

func (*Scheduler) AddWorker

func (s *Scheduler) AddWorker(w Worker) *Scheduler

func (*Scheduler) Start

func (s *Scheduler) Start(ctx context.Context)

type Worker

type Worker interface {
	Do(ctx context.Context) error
	Name() string
}

Jump to

Keyboard shortcuts

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