dv5

package
v0.2.4-0...-f8342f3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 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 Discv5

type Discv5 interface {
	Self() *enode.Node
	Lookup(target enode.ID) []*enode.Node
	RandomNodes() enode.Iterator
	Close()
	Ping(n *enode.Node) error
	Resolve(n *enode.Node) *enode.Node
	RequestENR(n *enode.Node) (*enode.Node, error)
}

func NewDiscV5

func NewDiscV5(log logrus.FieldLogger, listenIP net.IP, listenPort uint16,
	settings Dv5Settings, bootNodes []*enode.Node) (Discv5, error)

type Discv5Impl

type Discv5Impl struct {
	*discover.UDPv5
	// contains filtered or unexported fields
}

type Dv5Settings

type Dv5Settings interface {
	LocalNode() *enode.LocalNode
	StaticIP() net.IP
	SetStaticIP(ip net.IP)
	FallbackIP() net.IP
	SetFallbackIP(ip net.IP)
	FallbackUDP() uint16
	SetFallbackUDP(port uint16)
	GetPriv() *crypto.Secp256k1PrivateKey
	SetIP(ip net.IP)
	SetTCP(port uint16)
	SetUDP(port uint16)
	SetEth2Data(dat *beacon.Eth2Data)
	SetAttnets(dat *beacon.AttnetBits)
}

type GethLogger

type GethLogger struct {
	logrus.FieldLogger
}

func (*GethLogger) Log

func (gl *GethLogger) Log(r *geth_log.Record) error

New returns a new Logger that has this logger's context plus the given context

type LazyLogEntry

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

func (*LazyLogEntry) MarshalJSON

func (lle *LazyLogEntry) MarshalJSON() ([]byte, error)

func (*LazyLogEntry) MarshalText

func (lle *LazyLogEntry) MarshalText() ([]byte, error)

Jump to

Keyboard shortcuts

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