resolver

package
v0.0.0-...-0e8e39a Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Scheme contains the resolver scheme.
	Scheme = "raft"

	// PeerListSep separates peer definitions in the peer list.
	PeerListSep = ","

	// PeerOptsSep separates a peer's options.
	PeerOptsSep = ":"

	// DefaultGRPCPort is the default gRPC port.
	DefaultGRPCPort = 3500
)

Variables

View Source
var ErrEmptyPeerList = errors.New("empty peer list")

ErrEmptyPeerList is the error returned if an empty peer list passed to the Cluster configuration.

View Source
var ErrPeerParams = errors.New("invalid peer parameters")

ErrPeerParams is the error returned if the peer parameters are invalid.

Functions

func New

func New(peers string) (resolver.Builder, error)

New creates new resolver.Builder instance

Types

type StaticBuilder

type StaticBuilder struct {
	// contains filtered or unexported fields
}

StaticBuilder implements ResolverBuilder(https://godoc.org/google.golang.org/grpc/resolver#Builder).

func (*StaticBuilder) Build

Build implements resolver.Builder.Build.

func (*StaticBuilder) Scheme

func (*StaticBuilder) Scheme() string

Scheme implements resolver.Builder.Scheme.

Jump to

Keyboard shortcuts

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