discovery

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventType

type EventType int32
const (
	PUT    EventType = 0
	DELETE EventType = 1
)

type ServiceDiscovery

type ServiceDiscovery interface {
	// SetNodeAddr sets nodeAddr
	SetNodeAddr(nodeAddr string)
	// WatchService Listens for a new node to start
	WatchService(watchChan WatchChan)
	// UpdateInfo Updates the information for this node
	UpdateInfo([]byte) error
	// Register registers the NodeID and notify other nodes
	Register() error
	// WatchService Listens for a new node to start
	GetServerList() (map[string]string, error)
}

ServiceDiscovery

type WatchChan

type WatchChan chan EventType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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