etcdv3

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package etcdv3 provides an etcd version 3 registry

Index

Constants

This section is empty.

Variables

View Source
var (
	Name = "etcdv3"
)

Functions

func NewRegistry

func NewRegistry() registry.Registry

Types

type Cfg

type Cfg struct {
	Prefix   string   `json:"prefix"`
	Driver   string   `json:"driver"`
	Projects []string `json:"projects"`
}

type Registry

type Registry struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Registry) Deregister added in v0.1.2

func (e *Registry) Deregister(s *registry.Service, opts ...registry.DeregOpt) error

func (*Registry) GetService

func (e *Registry) GetService(name string, opts ...registry.GetOpt) ([]*registry.Service, error)

func (*Registry) ListService added in v0.1.2

func (e *Registry) ListService(opts ...registry.ListOpt) ([]*registry.Service, error)

func (*Registry) Register

func (e *Registry) Register(s *registry.Service, opts ...registry.RegOpt) error

func (*Registry) String

func (e *Registry) String() string

func (*Registry) Watch

func (e *Registry) Watch(service string, opts ...registry.WatchOpt) (registry.Watcher, error)

type Watcher

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

func (*Watcher) Next

func (w *Watcher) Next() (*registry.Result, error)

func (*Watcher) Stop

func (w *Watcher) Stop() error

Jump to

Keyboard shortcuts

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