swarm

package
v0.0.0-...-c2045be Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultWorkerFrequency = time.Second * 5

Variables

This section is empty.

Functions

func NewExecutor

func NewExecutor(s delegatedStorage, p workerProvider, m workerManager) *executor

func NewState

func NewState(keySet []config.Job, setName string) *state

NewState holds workload assignations in the workers pool

func NewWorkerPool

func NewWorkerPool(cmp assigner, not delegated) *pool

NewWorkerPool instantiates workers pool

Types

type Event

type Event interface {
	Time() time.Time
	String() string
}

type State

type State string
const (
	NeedsRefresh       State = "needs refresh"
	WaitingAssignation State = "waiting config"
	Syncing            State = "syncing"
)

Jump to

Keyboard shortcuts

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