Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildState ¶
BuildState is a function that generates a State with access to a specific Emitter and Traverser
type Emitter ¶
type Emitter interface {
Emit(interface{}) error
}
Emitter is a generic interface to output arbitrary data. Emit is generally called from State.EntryAction.
type StateMachine ¶
type StateMachine map[string]BuildState
StateMachine is a k:v map that maps the slug of States to BuildState functions
type Store ¶
type Store interface {
FetchTraverser(uuid string) (Traverser, error)
CreateTraverser(uuid string) (Traverser, error)
}
A Store is a generic interface responsible for managing The fetching and creation of traversers
type Traverser ¶
type Traverser interface {
UUID() string
SetUUID(string)
CurrentState() string
SetCurrentState(string)
Upsert(key string, value interface{}) error
Fetch(key string) (interface{}, error)
Delete(key string) error
}
A Traverser is an individual that is traversing the StateMachine. This interface that is responsible for managing the state of that individual
