etcdv3

package
v0.0.0-...-55327a3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Deregister = make(chan struct{})
View Source
var Prefix = "nice://"

Prefix should start and end with no slash

Functions

func NewRegistry

func NewRegistry(options *registry.Options) (r registry.Registry, err error)

Types

type Resolver

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

resolver is the implementaion of grpc.naming.Resolver

func NewResolver

func NewResolver(serviceName string) *Resolver

NewResolver return resolver with service name

func (*Resolver) Resolve

func (re *Resolver) Resolve(target string) (naming.Watcher, error)

Resolve to resolve the service from etcd, target is the dial address of etcd target example: "http://127.0.0.1:2379,http://127.0.0.1:12379,http://127.0.0.1:22379"

Jump to

Keyboard shortcuts

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