etcd

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Name = "discovery"
)

Variables

This section is empty.

Functions

func NewResolverBuilderEtcd

func NewResolverBuilderEtcd(discoverer register.IDiscovery) resolver.Builder

Types

type ResolverBuilderEtcd

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

func (*ResolverBuilderEtcd) Build

Build 做一些解析,解析ETCD的地址,从ETCD解析到RPC的地址,用cc.UpdateState更新RPC地址, 执行 grpc.dial 的时候调用

func (*ResolverBuilderEtcd) Scheme

func (*ResolverBuilderEtcd) Scheme() string

Scheme 返回服务发现名

Jump to

Keyboard shortcuts

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