Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var QuitCommand = []byte{255, 255, 255, 255}
Functions ¶
This section is empty.
Types ¶
type Conn ¶
func (*Conn) Read ¶
Read scans the input for a new message. First 4 bytes are the payload size in uint32 littleendian, second 8 bytes are a highwayhash64 hash of the payload and in the return the decoded length from the header of the incoming bytes which matches the hash, expected message length, or errors are returned. the input byte slice must be truncated to the given n or it isn't guaranteed to be correct data
type Controller ¶
func NewController ¶
func NewController(args []string) (c *Controller, err error)
A controller runs a child process and attaches to its stdin/out append(os.Args[:len(os.Args)-1], "worker")
Click to show internal directories.
Click to hide internal directories.