resolver

package
v0.0.0-...-8a5cab9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Prefix = "etcdv3_naming"

Prefix should start and end with no slash

Variables

This section is empty.

Functions

This section is empty.

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