Documentation ¶
Index ¶
- Constants
- func IsCloseBracket(ip [][]byte) bool
- func IsOpenBracket(ip [][]byte) bool
- func IsPacket(ip [][]byte) bool
- func IsValidIP(ip [][]byte) bool
- func MonitorSocket(socket *zmq.Socket, name string) (<-chan zmq.Event, error)
- func NewCloseBracket() [][]byte
- func NewOpenBracket() [][]byte
- func NewPacket(payload []byte) [][]byte
- func SetupShutdownByDisconnect(socket *zmq.Socket, name string, termChannel chan os.Signal) error
- type Env
- type Process
- type ProcessIIP
- type Runtime
Constants ¶
View Source
const ( IPTypePacket byte = 0x00 IPTypeOpenBracket byte = 0x01 IPTypeCloseBracket byte = 0x02 )
View Source
const MONITOR_EVENTS zmq.Event = zmq.EVENT_CONNECTED | zmq.EVENT_LISTENING | zmq.EVENT_ACCEPTED | zmq.EVENT_BIND_FAILED | zmq.EVENT_ACCEPT_FAILED | zmq.EVENT_CLOSED | zmq.EVENT_DISCONNECTED
Variables ¶
This section is empty.
Functions ¶
func IsCloseBracket ¶
func IsOpenBracket ¶
func MonitorSocket ¶
MonitorSocket creates a monitoring socket using given context and connects to a given socket to be monitored. Returns a channel to receive monitoring events. See event definitions here: http://api.zeromq.org/3-2:zmq-socket-monitor
func NewCloseBracket ¶
func NewCloseBracket() [][]byte
func NewOpenBracket ¶
func NewOpenBracket() [][]byte
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
type ProcessIIP ¶
IIP model (sent when processes started)
type Runtime ¶
Runtime structure corresponds to a single network
func NewRuntime ¶
Runtime constructor
func (*Runtime) PrintGraph ¶
func (self *Runtime) PrintGraph()
Print the current graph for debug purposes
Click to show internal directories.
Click to hide internal directories.