Documentation ¶
Overview ¶
Package peers provides peer discovery and services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { NodeName string Transport transport.Interface Logger *log.Logger // MemberNotify is called from its own goroutine when membership changes // occur. Only one call of MemberNotify will be active at a time, so a // previous call must return for subsequent calls to be made. // // MemberNotify will typically call Members to get the current list of // members. MemberNotify func() // Discoverer.Discover is called periodically to obtain out-of-band member // discovery. This is useful for connecting new instances to a group of // peers. Discoverer discovery.Interface }
Config provides configuration parameters for Peers.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
maglevhash
Package maglevhash implements the hash function from Maglev, Google's fast load balancer.
|
Package maglevhash implements the hash function from Maglev, Google's fast load balancer. |
Click to show internal directories.
Click to hide internal directories.