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

func (s *Discovery) Register(addr string) error

Register adds a new address to the discovery.

func (*Discovery) Watch

func (s *Discovery) Watch(stopCh <-chan struct{}) (<-chan discovery.Entries, <-chan error)

Watch sends periodic discovery updates to a channel.

Source Files

memory.go

Version
v17.12.0-ce-rc2+incompatible
Published
Dec 12, 2017
Platform
js/wasm
Imports
3 packages
Last checked
4 hours ago

Tools for package owners.