gossip

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GossipState

type GossipState interface {
	Snapshot() *GossipStateSnapshot
	UpdateValues(removeKeys []string, putKeys map[string]string) error
}

type GossipStateSnapshot

type GossipStateSnapshot struct {
	Values  map[string]string
	Version uint64
}

type SeedProvider

type SeedProvider interface {
	GetSeeds() ([]string, error)
}

type StaticSeedProvider

type StaticSeedProvider struct {
	Seeds []string
}

func NewStaticSeedProvider

func NewStaticSeedProvider(seeds []string) *StaticSeedProvider

func (*StaticSeedProvider) GetSeeds

func (s *StaticSeedProvider) GetSeeds() ([]string, error)

Directories

Path Synopsis
dns
provider
Package provider implements a dnsprovider backed by the gossip store.
Package provider implements a dnsprovider backed by the gossip store.
Package mesh is a generated protocol buffer package.
Package mesh is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL