state

package
v0.6.3-beta01 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

A simple wrapper to have State changes based on atomic variable

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateMachine

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

func (*StateMachine) ChangeState

func (stm *StateMachine) ChangeState(oldState, newState uint32) bool

func (*StateMachine) GetState

func (stm *StateMachine) GetState() uint32

func (*StateMachine) SetState

func (stm *StateMachine) SetState(newState uint32)

Jump to

Keyboard shortcuts

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