discovery

package
v0.0.0-...-a36dcc1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG  = false
	Scheme = "etcdv3"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdClient

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

type GrpcResolver

type GrpcResolver struct {
	*EtcdClient
	// contains filtered or unexported fields
}

func NewGrpcResolver

func NewGrpcResolver(endpoints []string, dialTimeout time.Duration) (m *GrpcResolver)

func (*GrpcResolver) Build

Build creates a new resolver for the given target.

gRPC dial calls Build synchronously, and fails if the returned error is not nil.

func (*GrpcResolver) DebugStore

func (b *GrpcResolver) DebugStore()

func (*GrpcResolver) InitGrpcResolver

func (m *GrpcResolver) InitGrpcResolver() (err error)

func (*GrpcResolver) Scheme

func (b *GrpcResolver) Scheme() string

Scheme returns the scheme supported by this resolver. Scheme is defined at https://github.com/grpc/grpc/blob/master/doc/naming.md.

type Register

type Register struct {
	*EtcdClient
	// contains filtered or unexported fields
}

func NewRegister

func NewRegister(endpoints []string, dialTimeout time.Duration, serviceName, selfIpPort string) (m *Register)

func (*Register) Close

func (m *Register) Close()

func (*Register) Do

func (m *Register) Do() (err error)

Jump to

Keyboard shortcuts

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