Documentation ¶
Index ¶
- type CommandIterator
- func (c *CommandIterator) Advance()
- func (c *CommandIterator) Choose(branchIndex int)
- func (c *CommandIterator) Command() *data.Command
- func (c *CommandIterator) DecodeMsgpack(dec *msgpack.Decoder) error
- func (c *CommandIterator) EncodeMsgpack(enc *msgpack.Encoder) error
- func (c *CommandIterator) Goto(label string) bool
- func (c *CommandIterator) IsTerminated() bool
- func (c *CommandIterator) Rewind()
- func (c *CommandIterator) Terminate()
- func (c *CommandIterator) TerminateGracefully()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandIterator ¶
type CommandIterator struct {
// contains filtered or unexported fields
}
func New ¶
func New(commands []*data.Command) *CommandIterator
func (*CommandIterator) Advance ¶
func (c *CommandIterator) Advance()
func (*CommandIterator) Choose ¶
func (c *CommandIterator) Choose(branchIndex int)
func (*CommandIterator) Command ¶
func (c *CommandIterator) Command() *data.Command
func (*CommandIterator) DecodeMsgpack ¶
func (c *CommandIterator) DecodeMsgpack(dec *msgpack.Decoder) error
func (*CommandIterator) EncodeMsgpack ¶
func (c *CommandIterator) EncodeMsgpack(enc *msgpack.Encoder) error
func (*CommandIterator) Goto ¶
func (c *CommandIterator) Goto(label string) bool
func (*CommandIterator) IsTerminated ¶
func (c *CommandIterator) IsTerminated() bool
func (*CommandIterator) Rewind ¶
func (c *CommandIterator) Rewind()
func (*CommandIterator) Terminate ¶
func (c *CommandIterator) Terminate()
func (*CommandIterator) TerminateGracefully ¶
func (c *CommandIterator) TerminateGracefully()
Click to show internal directories.
Click to hide internal directories.