consistency

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MPL-2.0 Imports: 18 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
	SetServiceTags(name string, tags []string) error
	DialAddress(service, id string, f func(*grpc.ClientConn) error) error
	Peers() peers.PeerStore
}

Jump to

Keyboard shortcuts

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