discovery

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Overview

Package discovery exposes the discovery driver interface which is implemented by discovery protocols.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	// BroadcastPeers hive implement
	BroadcastPeers(ctx context.Context, addressee boson.Address, peers ...boson.Address) error

	// DoFindNode hive2 implement
	DoFindNode(ctx context.Context, target, peer boson.Address, pos []int32, limit int32) (res chan boson.Address, err error)

	// IsStart entry to run
	IsStart() bool

	// IsHive2 hive2 protocol
	IsHive2() bool

	NotifyDiscoverWork(peers ...boson.Address)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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