examples

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WStateDisabled    sam.State = "Disabled"
	WStateEnabled     sam.State = "Enabled"
	WStateInitialized sam.State = "Initialized"
	WStateRun         sam.State = "Run"
	WStateStopped     sam.State = "Stopped"
	WStateFailed      sam.State = "Failed"
)

Variables

This section is empty.

Functions

func NewWorkerSM

func NewWorkerSM() sam.StateMachine

NewWorkerSM returns filled state machine of worker lifecycle

(*) -> [Disabled] -> [Enabled] -> [Initialized] -> [Run] <-> [Stopped]

↑ ↑____________|  |          |  |  ↑         |
|_________________|__________|  |  |------|  ↓
                  |-------------|-----> [Failed]

Types

This section is empty.

Jump to

Keyboard shortcuts

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