Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoDv5Err = errors.New("Must start discv5 first. Try 'dv5 run'")
Functions ¶
This section is empty.
Types ¶
type Dv5Cmd ¶
type Dv5Cmd struct { *base.Base *Dv5State CurrentPeerstore track.DynamicPeerstore dv5.Dv5Settings }
type Dv5LookupCmd ¶
type Dv5LookupCmd struct { *base.Base *Dv5State Target flags.NodeIDFlexibleFlag `ask:"<target>" help:"Target ENR/enode/node-id"` }
func (*Dv5LookupCmd) Help ¶
func (c *Dv5LookupCmd) Help() string
type Dv5PingCmd ¶
type Dv5PingCmd struct { *base.Base *Dv5State Target flags.EnrOrEnodeFlag `ask:"<target>" help:"Target ENR/enode"` }
func (*Dv5PingCmd) Help ¶
func (c *Dv5PingCmd) Help() string
type Dv5RandomCmd ¶
type Dv5RandomCmd struct { *base.Base *Dv5State HandleENR `ask:"."` // embed ENR handling command options Stepwise bool `ask:"--stepwise" help:"Step through each findnode action, instead of running automatically"` Interval time.Duration `ask:"--interval" help:"Wait duration between findnode iterations, when not stepwise."` }
func (*Dv5RandomCmd) Default ¶
func (c *Dv5RandomCmd) Default()
func (*Dv5RandomCmd) Help ¶
func (c *Dv5RandomCmd) Help() string
type Dv5RequestCmd ¶
type Dv5RequestCmd struct { *base.Base *Dv5State Target flags.EnrOrEnodeFlag `ask:"<target>" help:"Target ENR/enode"` }
func (*Dv5RequestCmd) Help ¶
func (c *Dv5RequestCmd) Help() string
type Dv5ResolveCmd ¶
type Dv5ResolveCmd struct { *base.Base *Dv5State Target flags.EnrOrEnodeFlag `ask:"<target>" help:"Target ENR/enode"` }
func (*Dv5ResolveCmd) Help ¶
func (c *Dv5ResolveCmd) Help() string
type Dv5RunCmd ¶
type Dv5SelfCmd ¶
func (*Dv5SelfCmd) Help ¶
func (c *Dv5SelfCmd) Help() string
type HandleENR ¶
type HandleENR struct { Store track.DynamicPeerstore Add bool `ask:"--add" help:"Add the discovered nodes to the peerstore (requires peerstore to use)"` FilterDigest beacon.ForkDigest `ask:"--filter-digest" help:"Only add peers with the given digest to the peerstore"` TTL time.Duration `ask:"--ttl" help:"When adding the node, apply this TTL"` Filtering bool `changed:"filter-digest"` }
Click to show internal directories.
Click to hide internal directories.