discovery

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 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 {
	// SetNodeId sets nodeId
	SetNodeId(nodeId 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
}

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