docker: Index | Files

package memory

import ""


Package Files


func Init Uses

func Init()

Init registers the memory backend on demand.

type Discovery Uses

type Discovery struct {
    // contains filtered or unexported fields

Discovery implements a discovery backend that keeps data in memory.

func (*Discovery) Initialize Uses

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 Uses

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

Register adds a new address to the discovery.

func (*Discovery) Watch Uses

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

Watch sends periodic discovery updates to a channel.

Package memory imports 3 packages (graph). Updated 2020-03-02. Refresh now. Tools for package owners.