Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeChannel ¶
type NodeChannel interface { // read a node message Read() (*NodeMessage, error) // write a node message Write(*NodeMessage) error }
NodeChannel node ipc channel
func ExecNode ¶
func ExecNode(cmd *exec.Cmd) (NodeChannel, error)
ExecNode execute new nodejs child process with Node ipc channel
func PrepareNode ¶
func PrepareNode(cmd *exec.Cmd) (NodeChannel, error)
func RunAsNodeChild ¶
func RunAsNodeChild() (NodeChannel, error)
RunAsNodeChild setup current process as node child process
type NodeMessage ¶
type NodeMessage struct { Message []byte Handle *os.File // contains filtered or unexported fields }
NodeMessage node ipc message
func (*NodeMessage) Unmarshal ¶
func (m *NodeMessage) Unmarshal(v interface{}) error
Unmarshal unmarshal json encoded message
Click to show internal directories.
Click to hide internal directories.