etcd

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

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

func NewRegistry

func NewRegistry(client *clientv3.Client) *Registry

func NewRegistryWithScheme

func NewRegistryWithScheme(scheme string, client *clientv3.Client) *Registry

func (*Registry) Build

func (*Registry) BuildPath

func (this *Registry) BuildPath(domain, service, node string) string

func (*Registry) Close

func (this *Registry) Close()

func (*Registry) Register

func (this *Registry) Register(ctx context.Context, domain, service, node, addr string, ttl int64) (key string, err error)

func (*Registry) ResolveNow

func (this *Registry) ResolveNow(option resolver.ResolveNowOptions)

func (*Registry) Scheme

func (this *Registry) Scheme() string

func (*Registry) Unregister

func (this *Registry) Unregister(ctx context.Context, domain, service, node string) (err error)

Jump to

Keyboard shortcuts

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