Documentation
¶
Overview ¶
Package tpt provides the definition of the interface Transport, which is an abstraction used for reading and writing to peers via transport.Transport.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport interface { // Send delivers a byte buffer along the Transport. Send(b slice.Bytes) (e error) // Receive waits for incoming messages and delivers the byte buffer to the caller // via a channel. Receive() <-chan slice.Bytes }
Transport is a generic interface for sending and receiving slices of bytes.
Click to show internal directories.
Click to hide internal directories.