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 ¶
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 ¶
func (b *StaticBuilder) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error)
Build implements resolver.Builder.Build.
func (*StaticBuilder) Scheme ¶
func (*StaticBuilder) Scheme() string
Scheme implements resolver.Builder.Scheme.
Click to show internal directories.
Click to hide internal directories.