Documentation ¶
Index ¶
- Constants
- func IsCloseBracket(ip [][]byte) bool
- func IsOpenBracket(ip [][]byte) bool
- func IsPacket(ip [][]byte) bool
- func IsValidIP(ip [][]byte) bool
- func NewCloseBracket() [][]byte
- func NewOpenBracket() [][]byte
- func NewPacket(payload []byte) [][]byte
- type Env
- type Process
- type ProcessIIP
- type Runtime
Constants ¶
View Source
const ( // IPTypePacket represent 'data' type of IP IPTypePacket byte = 0x00 // IPTypeOpenBracket represents '[' type of IP IPTypeOpenBracket byte = 0x01 // IPTypeCloseBracket represents ']' type of IP IPTypeCloseBracket byte = 0x02 )
Variables ¶
This section is empty.
Functions ¶
func IsCloseBracket ¶
IsCloseBracket checks if a given IP is ']' IP
func IsOpenBracket ¶
IsOpenBracket checks if a given IP is '[' IP
Types ¶
type Process ¶
type Process struct { Executable string Args map[string]string Env Env Interactive bool Stdin io.Reader Stdout io.Writer Stderr io.Writer Root string // contains filtered or unexported fields }
Process model
func NewProcess ¶
NewProcess is a process constructor
type ProcessIIP ¶
ProcessIIP is a model of IIP (sent when processes started)
type Runtime ¶
Runtime structure corresponds to a single network
func NewRuntime ¶
NewRuntime is a Runtime constructor
func (*Runtime) LoadGraph ¶
LoadGraph loads graph definition in supported format from a given file path
func (*Runtime) PrintGraph ¶
func (r *Runtime) PrintGraph()
PrintGraph print the current graph for debug purposes
Click to show internal directories.
Click to hide internal directories.