Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2020 Changes in this version + type CommandID struct + func NewEndCommandID() CommandID + func NewTransformCommandID(id api.CmdID) CommandID + func (c *CommandID) GetCommandType() CommandType + func (c *CommandID) GetID() api.CmdID + func (c *CommandID) Increment() + type CommandType uint32 + const EndCommand + const TransformCommand + func (cmdType CommandType) String() string + type StateMutator func(cmds []api.Cmd) error + type Transform interface + BeginTransform func(ctx context.Context, inputState *api.GlobalState) error + ClearTransformResources func(ctx context.Context) + EndTransform func(ctx context.Context, inputState *api.GlobalState) ([]api.Cmd, error) + RequiresAccurateState func() bool + RequiresInnerStateMutation func() bool + SetInnerStateMutationFunction func(stateMutator StateMutator) + TransformCommand func(ctx context.Context, id CommandID, inputCommands []api.Cmd, ...) ([]api.Cmd, error) + type TransformChain struct + func CreateTransformChain(ctx context.Context, generator commandGenerator.CommandGenerator, ...) *TransformChain + func (chain *TransformChain) GetCurrentCommandID() CommandID + func (chain *TransformChain) GetNextTransformedCommands(ctx context.Context) error + func (chain *TransformChain) GetNumOfRemainingCommands() uint64 + func (chain *TransformChain) IsEndOfCommands() bool + type Writer interface + MutateAndWrite func(ctx context.Context, id api.CmdID, cmd api.Cmd) error + State func() *api.GlobalState Incompatible versions in this module v2.0.0+incompatible Jul 8, 2021