etcd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdClient

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

func NewClient

func NewClient(cfg *clientv3.Config) (*EtcdClient, error)

func (*EtcdClient) Deregister

func (c *EtcdClient) Deregister()

func (*EtcdClient) GetService

func (c *EtcdClient) GetService(name string, clientIp string) (*models.ServiceNode, error)

func (*EtcdClient) Register

func (c *EtcdClient) Register(s *config.RegisterNode) error

func (*EtcdClient) Watch

func (c *EtcdClient) Watch(s *config.DiscoveryNode) error

Jump to

Keyboard shortcuts

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