Documentation
¶
Overview ¶
Package discovery contains facilities for discovering peers in order to join a mesh.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery interface {
// Start starts the discovery service.
Start(context.Context) error
// Stop stops the discovery service.
Stop() error
// Accept returns a connection to a peer.
// TODO: This needs to be hooked into any configured authentication mechanism.
Accept() (io.ReadWriteCloser, error)
}
Discovery is the interface for discovering peers in order to join a mesh. It is used both by peers announcing for others to join and by peers joining a mesh.
Click to show internal directories.
Click to hide internal directories.