Documentation ¶
Index ¶
Constants ¶
View Source
const ( NotStarted = runtimeStatus(iota) Running Finished )
View Source
const ( StdIn = Stream(0) StdOut = Stream(1) StdErr = Stream(2) )
matching standard file descriptors
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockWaiterPatternActor ¶
type BlockWaiterPatternActor interface { PatternActor Wait() // Blocks until the actor has finished its work }
func NewBlockWaiterPatternActor ¶
func NewBlockWaiterPatternActor(blocks int, verbose bool) BlockWaiterPatternActor
type CommandResult ¶
type Network ¶
type Network struct { Nodes []*Node NetworkConfig *NetworkConfiguration }
type NetworkConfiguration ¶
type NetworkConfiguration struct { NetworkId string `json:"network_id"` GenesisPath string `json:"genesis_path"` NodeConfigurations []*NodeConfiguration `json:"node_configurations"` }
type Node ¶
type Node struct { PocketServer PocketServer Address string DataDir string // contains filtered or unexported fields }
type NodeConfiguration ¶
type PatternActor ¶
type PatternActor interface {
MaybeAct(string) // The action that the pattern actor may execute depending on the output being passed in
}
All PatternActors must implement this interface
type PatternActorPipeline ¶
type PatternActorPipeline struct {
// contains filtered or unexported fields
}
A series of PatternActors
type PocketClient ¶
type PocketClient interface {
RunCommand(...string) (*CommandResult, error)
}
func NewPocketClient ¶
func NewPocketClient(executablePath string, verbose bool) PocketClient
type PocketServer ¶
type PocketServer interface { Start(...string) error Kill() error RegisterPatternActor(patternActor PatternActor, stream Stream) error }
func NewPocketServer ¶
func NewPocketServer(executablePath string) PocketServer
type PrinterPatternActor ¶
type PrinterPatternActor interface { PatternActor }
func NewPrinterPatternActor ¶
func NewPrinterPatternActor() PrinterPatternActor
Click to show internal directories.
Click to hide internal directories.