etcd

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 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 解析到 gRPC 的地址,用 cc.UpdateState 更新 gRPC 地址, 执行 grpc.dial 的时候调用 参见源码: grpc-go clientconn.go DialContext ( rWrapper, err := newCCResolverWrapper(cc, resolverBuilder) )

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