Documentation ¶
Index ¶
Constants ¶
View Source
const (
CustomerPipeStart = 3
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { ProducerSocket int ConsumerSocket int // contains filtered or unexported fields }
func NewChannel ¶
type UdsChannel ¶
type UdsChannel struct { Child *os.Process ChildStdOut *os.File ChildStdErr *os.File Closed bool Channels []*Channel // watch the child process status ChildExit chan error }
func NewController ¶
func NewController(filePath string, args []string, channelNum int) (*UdsChannel, error)
NOTICE :the stdioMapping param is a analogy of nodejs spawn stdio map , like stdio:["ignore", "inherit", "pipe"]
func (*UdsChannel) GetChannel ¶
func (w *UdsChannel) GetChannel(index int) (*Channel, error)
func (*UdsChannel) StopChild ¶
func (w *UdsChannel) StopChild() error
func (*UdsChannel) WatchChild ¶
func (w *UdsChannel) WatchChild() chan error
Click to show internal directories.
Click to hide internal directories.