etcd

package
v0.0.0-...-0e5f22e Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EtcdDiscoveryService

type EtcdDiscoveryService struct {
	ListUpdatedChans map[string]chan []taskhandler.ServingService
	ServiceName      string
	ServiceId        string
	EtcdClient       *clientv3.Client

	HealthCheckFun func() (bool, error)
	// contains filtered or unexported fields
}

func NewDiscoveryService

func NewDiscoveryService(healthCheck func() (bool, error)) (*EtcdDiscoveryService, error)

func (*EtcdDiscoveryService) AddNodeListUpdated

func (service *EtcdDiscoveryService) AddNodeListUpdated(key string, sub chan []taskhandler.ServingService)

func (*EtcdDiscoveryService) RegisterService

func (service *EtcdDiscoveryService) RegisterService() error

func (*EtcdDiscoveryService) RemoveNodeListUpdated

func (service *EtcdDiscoveryService) RemoveNodeListUpdated(key string)

func (*EtcdDiscoveryService) UnregisterService

func (service *EtcdDiscoveryService) UnregisterService() error

Jump to

Keyboard shortcuts

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