Documentation
¶
Overview ¶
Package soul holds the common types used by the rest of the sub-packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDifferentPacketSize = errors.New("the declared size of the package does not match the size of the actual read")
ErrDifferentPacketSize is returned when the declared size of the package does not match the size of the actual read.
View Source
var ErrMismatchingCodes = errors.New("mismatching codes")
ErrMismatchingCodes is returned when the code read from the stream does not match the expected of the consumer.
Functions ¶
This section is empty.
Types ¶
type ConnectionType ¶
type ConnectionType string
ConnectionType represents the type of connection. Possible values are "P", "F" and "D".
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
Package distributed messages are sent to peers over a D connection (TCP), and are used for the distributed search network.
|
Package distributed messages are sent to peers over a D connection (TCP), and are used for the distributed search network. |
Package file messages are sent to peers over a F connection (TCP), and do not have messages codes associated with them.
|
Package file messages are sent to peers over a F connection (TCP), and do not have messages codes associated with them. |
Package internal holds low level functions that are meant to be used internally only.
|
Package internal holds low level functions that are meant to be used internally only. |
Package peer messages are sent to peers over a P connection (TCP).
|
Package peer messages are sent to peers over a P connection (TCP). |
Package server messages are used by clients to interface with the server over a connection (TCP).
|
Package server messages are used by clients to interface with the server over a connection (TCP). |
Click to show internal directories.
Click to hide internal directories.