etcdresolver

package
v0.0.0-...-bbaaaaf Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Scheme = "etcd"
)

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, client *clientv3.Client, service, self string) error

Types

type Builder

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

func NewBuilder

func NewBuilder(client *clientv3.Client) *Builder

func (*Builder) 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 (*Builder) DebugStore

func (b *Builder) DebugStore()

func (*Builder) Scheme

func (b *Builder) Scheme() string

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

Jump to

Keyboard shortcuts

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