workerstatus

package
v0.0.0-...-6b2d4e0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerStatus

type WorkerStatus struct {
	WorkerStatusRO
}

func NewWorkerStatus

func NewWorkerStatus(initial WorkerStatusValue) *WorkerStatus

func (*WorkerStatus) Reset

func (self *WorkerStatus) Reset()

func (*WorkerStatus) Set

func (self *WorkerStatus) Set(value WorkerStatusValue)

func (*WorkerStatus) Sum

func (self *WorkerStatus) Sum(in []*WorkerStatusRO)

func (*WorkerStatus) UpdateSelf

func (self *WorkerStatus) UpdateSelf(other *WorkerStatusRO)

type WorkerStatusRO

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

func (*WorkerStatusRO) Get

func (self *WorkerStatusRO) Get() WorkerStatusValue

func (*WorkerStatusRO) IsStopped

func (self *WorkerStatusRO) IsStopped() bool

func (*WorkerStatusRO) Stopped

func (self *WorkerStatusRO) Stopped() bool

func (*WorkerStatusRO) StringT

func (self *WorkerStatusRO) StringT() string

func (*WorkerStatusRO) StringTitle

func (self *WorkerStatusRO) StringTitle() string

func (*WorkerStatusRO) UpdateOther

func (self *WorkerStatusRO) UpdateOther(other *WorkerStatus)

type WorkerStatusValue

type WorkerStatusValue uint
const (
	Stopped WorkerStatusValue = iota
	Starting
	Working
	Stopping
)

func (WorkerStatusValue) String

func (self WorkerStatusValue) String() string

Jump to

Keyboard shortcuts

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