discovery

package
v0.0.167 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscV4

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

func NewDiscV4

func NewDiscV4(ctx context.Context, restart time.Duration, log logrus.FieldLogger) *DiscV4

func (*DiscV4) OnNodeRecord

func (d *DiscV4) OnNodeRecord(ctx context.Context, handler func(ctx context.Context, reason *enode.Node) error)

func (*DiscV4) Start

func (d *DiscV4) Start(ctx context.Context) error

func (*DiscV4) Stop

func (d *DiscV4) Stop(ctx context.Context) error

func (*DiscV4) UpdateBootNodes

func (d *DiscV4) UpdateBootNodes(bootNodes []string) error

type DiscV5

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

func NewDiscV5

func NewDiscV5(ctx context.Context, restart time.Duration, log logrus.FieldLogger) *DiscV5

func (*DiscV5) OnNodeRecord

func (d *DiscV5) OnNodeRecord(ctx context.Context, handler func(ctx context.Context, reason *enode.Node) error)

func (*DiscV5) Start

func (d *DiscV5) Start(ctx context.Context) error

func (*DiscV5) Stop

func (d *DiscV5) Stop(ctx context.Context) error

func (*DiscV5) UpdateBootNodes

func (d *DiscV5) UpdateBootNodes(bootNodes []string) error

type ListenerV4

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

func (*ListenerV4) Close

func (l *ListenerV4) Close() error

type ListenerV5

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

func (*ListenerV5) Close

func (l *ListenerV5) Close() error

Jump to

Keyboard shortcuts

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