enr

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnrCmd

type EnrCmd struct {
	*base.Base
}

func (*EnrCmd) Cmd

func (c *EnrCmd) Cmd(route string) (cmd interface{}, err error)

func (*EnrCmd) Help

func (c *EnrCmd) Help() string

func (*EnrCmd) Routes

func (c *EnrCmd) Routes() []string

type EnrGenKeyCmd

type EnrGenKeyCmd struct {
	*base.Base
}

func (*EnrGenKeyCmd) Help

func (c *EnrGenKeyCmd) Help() string

func (*EnrGenKeyCmd) Run

func (c *EnrGenKeyCmd) Run(ctx context.Context, args ...string) error

type EnrMakeCmd

type EnrMakeCmd struct {
	*base.Base
	IP   net.IP               `ask:"--ip" help:"IP address (v4 or v6). None if empty."`
	TCP  uint16               `ask:"--tcp" help:"TCP port. None if 0"`
	UDP  uint16               `ask:"--udp" help:"UDP port. None if 0"`
	Priv flags.P2pPrivKeyFlag `` /* 149-byte string literal not displayed */
}

func (*EnrMakeCmd) Help

func (c *EnrMakeCmd) Help() string

func (*EnrMakeCmd) Run

func (c *EnrMakeCmd) Run(ctx context.Context, args ...string) error

type EnrViewCmd

type EnrViewCmd struct {
	*base.Base
	KvMode bool          `ask:"--kv" help:"Print the full set of Key-Value pairs"`
	Enr    flags.EnrFlag `ask:"<enr>" help:"The ENR to view, url-base64 (RFC 4648). With optional 'enr:' or 'enr://' prefix."`
}

func (*EnrViewCmd) Help

func (c *EnrViewCmd) Help() string

func (*EnrViewCmd) Run

func (c *EnrViewCmd) Run(ctx context.Context, args ...string) error

Jump to

Keyboard shortcuts

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