state

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status int
const (
	InitStatus    Status = 1
	RunningStatus Status = 2
	CloseStatus   Status = 3
	ErrorStatus   Status = 4
)

type StatusMachine

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

func NewStatusMachine

func NewStatusMachine() *StatusMachine

func (*StatusMachine) IsStatus

func (e *StatusMachine) IsStatus(s Status) bool

func (*StatusMachine) SetStatus

func (e *StatusMachine) SetStatus(s Status)

Jump to

Keyboard shortcuts

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