statemachine

package
v0.0.0-...-20b731c Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2018 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FIRST_STATE = GEN_ADDRESSES
View Source
var LAST_STATE = EMIT_METRICS

Functions

func InitStateFile

func InitStateFile(filePath string) error

func ResetStateFile

func ResetStateFile(filePath string) error

func RunStateMachine

func RunStateMachine(conf *config.Configuration) error

func SetStateFile

func SetStateFile(filePath string, curState State) error

Types

type State

type State int8
const (
	GEN_ADDRESSES State = iota
	PING_SCAN_ADDR
	NETWORK_GROUP
	SEEK_ALIASED_NETWORKS
	PROCESS_ALIASED_NETWORKS
	REM_BAD_ADDR
	UPDATE_MODEL
	UPDATE_ADDR_FILE
	PUSH_S3
	CLEAN_UP
	EMIT_METRICS
)

noinspection GoSnakeCaseUsage

Jump to

Keyboard shortcuts

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