etcd

package
v0.0.0-...-c429a28 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Addr     string
	Metadata interface{}
}

type Client

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

func New

func New(addrs []string) (*Client, error)

func (*Client) Client

func (c *Client) Client() *clientv3.Client

func (*Client) Close

func (c *Client) Close() error

func (*Client) NewServiceManager

func (c *Client) NewServiceManager(service string) (*ServiceManager, error)

type ServiceManager

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

func (*ServiceManager) Add

func (sm *ServiceManager) Add(address Address) error

func (*ServiceManager) NewWatcher

func (sm *ServiceManager) NewWatcher(handler func([]Address)) (*ServiceWatcher, error)

type ServiceWatcher

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

func (*ServiceWatcher) Close

func (sw *ServiceWatcher) Close()

Jump to

Keyboard shortcuts

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