Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanToCrash ¶
CanToCrash returns value if state can be change to the ToCrash.
func CanToMoving ¶
CanToMoving returns value if state can be change to the ToMoving.
func IsLastState ¶
IsLastState return true if no futher transitions could be done from provided state.
Types ¶
type ProhibittedEventError ¶
ProhibittedEventError is error that signals that Event can't be done from State.
func (ProhibittedEventError) Error ¶
func (e ProhibittedEventError) Error() string
type State ¶
type State string
stay --> moving moving --> crash moving --> stay moving --> moving
type UnknownStateError ¶
type UnknownStateError struct {
State string
}
UnknownEventError is errror that provided state not exists.
func (UnknownStateError) Error ¶
func (e UnknownStateError) Error() string
Click to show internal directories.
Click to hide internal directories.