consistency

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBootstrappedNodeFound = errors.New("bootstrapped node found")
)

Functions

func New

func New(logger *zap.Logger, userConfig config.Config, discovery DiscoveryProvider) (*raftlayer, error)

func SyncToken

func SyncToken(members []*pb.NodeService) string

Types

type DiscoveryProvider

type DiscoveryProvider interface {
	UnregisterService(id string) error
	RegisterService(id string, address string) error
	AddServiceTag(service, key, value string) error
	RemoveServiceTag(name string, tag string) error
	DialService(id string) (*grpc.ClientConn, error)
	Peers() peers.PeerStore
}

Jump to

Keyboard shortcuts

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