Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( COMMAND_LEN = 8 MESSAGE_TERMINATOR = []byte("\n\r") )
Functions ¶
func MakeMessageByte ¶
func MakeMessageString ¶
func MakeMessageStruct ¶
Types ¶
type Message ¶
type Message struct { Type MessageType Data []byte }
The Message type wraps all messages sent between workers and servers
type MessageType ¶
type MessageType uint8
const ( MessageTypeHello MessageType = iota MessageTypeIdentify MessageTypeAssign MessageTypeAlive MessageTypeStatus MessageTypeAccept )
type ProtocolObject ¶
Click to show internal directories.
Click to hide internal directories.