fsm

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDomainFromConfig

func NewDomainFromConfig(fsmConfig *Config) *fsm.Domain

NewDomainFromConfig initializes a FSM Domain from the FSM Config

Types

type Config

type Config struct {
	Transitions []fsm.Transition `yaml:"transitions" mapstructure:"transitions"`
	Defaults    fsm.Defaults     `yaml:"defaults" mapstructure:"defaults"`
}

Config contains the states, commands, functions and default messages of the FSM

func LoadConfig

func LoadConfig(path string, reloadChan chan Config) (*Config, error)

LoadConfig loads the FSM configuration from yaml

Directories

Path Synopsis
sql
sql/mocksql
Package mocksql is a generated GoMock package.
Package mocksql is a generated GoMock package.

Jump to

Keyboard shortcuts

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