package memory
import "github.com/docker/cli/components/engine/pkg/discovery/memory"
Index ¶
Functions ¶
func Init ¶
func Init()
Init registers the memory backend on demand.
Types ¶
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery implements a discovery backend that keeps data in memory.
func (*Discovery) Initialize ¶
func (s *Discovery) Initialize(_ string, heartbeat time.Duration, _ time.Duration, _ map[string]string) error
Initialize sets the heartbeat for the memory backend.
func (*Discovery) Register ¶
Register adds a new address to the discovery.
func (*Discovery) Watch ¶
Watch sends periodic discovery updates to a channel.
Source Files ¶
- Version
- v17.11.0-ce-rc2+incompatible
- Published
- Nov 1, 2017
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 4 hours ago –
Tools for package owners.