resolver

package
v0.0.0-...-1870305 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EtcdAddr = "127.0.0.1:2379"
View Source
var Schema = "etcd"

Functions

func GetConn

func GetConn(schema, serviceName string) *grpc.ClientConn

func RegisterEtcd

func RegisterEtcd(schema, etcdAddr, host string, port int, serviceName string, ttl int) error

func Watch

func Watch(name string)

Types

type Resolver

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

func NewResolver

func NewResolver(schema, serviceName string) *Resolver

func (*Resolver) Build

func (*Resolver) Close

func (r *Resolver) Close()

func (*Resolver) ResolveNow

func (r *Resolver) ResolveNow(resolver.ResolveNowOptions)

func (*Resolver) Scheme

func (r *Resolver) Scheme() string

Jump to

Keyboard shortcuts

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