Documentation ¶
Index ¶
Constants ¶
View Source
const ( TaskTypeID = int32(4321) TaskTypeName = "test-task-type-name" )
Variables ¶
View Source
var ( TaskType = hsm.TaskType{ ID: TaskTypeID, Name: TaskTypeName, } )
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Definition struct {
// contains filtered or unexported fields
}
func NewDefinition ¶
func NewDefinition(typeID int32) Definition
func (Definition) Deserialize ¶
func (d Definition) Deserialize(b []byte) (any, error)
func (Definition) Serialize ¶
func (d Definition) Serialize(s any) ([]byte, error)
Serialize implements hsm.StateMachineDefinition.
func (Definition) Type ¶
func (d Definition) Type() hsm.MachineType
Type implements hsm.StateMachineDefinition.
type Task ¶
type Task struct { IsConcurrent bool // contains filtered or unexported fields }
func (*Task) Concurrent ¶
Click to show internal directories.
Click to hide internal directories.