discovering

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discover

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

func New

func New(opts ...Option) *Discover

New creates a new Discover instance with the provided options

func (*Discover) Discover

func (d *Discover) Discover(n *node.Node)

type Option added in v1.2.0

type Option func(*Discover)

Option defines the method to configure Discover

func WithDelay added in v1.2.0

func WithDelay(delay time.Duration) Option

WithDelay sets the delay between discovery attempts

func WithMaxPeers added in v1.2.0

func WithMaxPeers(maxPeers int) Option

WithMaxPeers sets the maximum number of peers

func WithPort added in v1.2.0

func WithPort(port int) Option

WithPort sets the port for peer discovery

Jump to

Keyboard shortcuts

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