layer

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGossipLayer

func NewGossipLayer(name string, logger *zap.Logger, userConfig config.Config, meta []byte) *layer

func NewRaftLayer

func NewRaftLayer(logger *zap.Logger, userConfig config.Config, discovery DiscoveryProvider) (types.RaftServiceLayer, error)

Types

type DiscoveryProvider

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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