workers

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigCache

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

type IWorkers

type IWorkers interface {
	eosc.IWorkers
	Del(id string) error
	Set(id, profession, name, driverName string, body []byte, variable eosc.IVariable) error
	Update(id string, variable eosc.IVariable) error
	Reset(wdl []*eosc.WorkerConfig, variable eosc.IVariable) error
}

type WorkerDatas

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

func NewTypedWorkers

func NewTypedWorkers() *WorkerDatas

func (*WorkerDatas) All

func (wd *WorkerDatas) All() []eosc.IWorker

func (*WorkerDatas) Del

func (wd *WorkerDatas) Del(id string) (eosc.IWorker, bool)

func (*WorkerDatas) Get

func (wd *WorkerDatas) Get(id string) (eosc.IWorker, bool)

func (*WorkerDatas) Set

func (wd *WorkerDatas) Set(id string, w eosc.IWorker)

type Workers

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

func NewWorkerManager

func NewWorkerManager(profession professions.IProfessions) *Workers

func (*Workers) Del

func (wm *Workers) Del(id string) error

func (*Workers) Get

func (wm *Workers) Get(id string) (eosc.IWorker, bool)

func (*Workers) Reset

func (wm *Workers) Reset(wdl []*eosc.WorkerConfig, variable eosc.IVariable) error

func (*Workers) Set

func (wm *Workers) Set(id, profession, name, driverName string, body []byte, variable eosc.IVariable) error

func (*Workers) Update

func (wm *Workers) Update(id string, variable eosc.IVariable) error

Jump to

Keyboard shortcuts

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