Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandleFunc ¶
HandleFunc to handle received messages from peer.
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}
RPC defines the common pattern that peer interacts with each other.
func (*RPC) Done ¶
func (r *RPC) Done() <-chan struct{}
Done returns a channel to indicates whether peer disconnected.
Click to show internal directories.
Click to hide internal directories.