Documentation ¶
Index ¶
Constants ¶
View Source
const QueueSize = 128
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RemoteMap ¶
type RemoteMap struct {
// contains filtered or unexported fields
}
RemoteMap manages a mapping of live remote peers, keyed by address, to their respective send queues. Each peer has two queues: a send queue, and a receive queue. RemoteMap's functions are safe to call from multiple goroutines.
func NewRemoteMap ¶
NewRemoteMap creates a RemoteMap that expires peers after a timeout.
If the timeout is 0, peers never expire.
Click to show internal directories.
Click to hide internal directories.