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.12.1-ce-rc1+incompatible
- Published
- Feb 13, 2018
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 1 minute ago –
Tools for package owners.