dbcmd

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBCmd

type DBCmd struct {
	*base.Base
	sdb.DB
}

func (*DBCmd) Cmd

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

func (*DBCmd) Help

func (c *DBCmd) Help() string

func (*DBCmd) Routes

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

type StatesExportCmd

type StatesExportCmd struct {
	*base.Base
	sdb.DB
	Output    string      `ask:"--output" help:"A file path to export the state to as ssz file. If empty, output to log."`
	StateRoot beacon.Root `ask:"<root>" help:"Root of the state to get"`
}

func (*StatesExportCmd) Help

func (c *StatesExportCmd) Help() string

func (*StatesExportCmd) Run

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

type StatesGetCmd

type StatesGetCmd struct {
	*base.Base
	sdb.DB
	StateRoot beacon.Root `ask:"<root>" help:"Root of the state to get"`
}

func (*StatesGetCmd) Help

func (c *StatesGetCmd) Help() string

func (*StatesGetCmd) Run

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

type StatesImportCmd

type StatesImportCmd struct {
	*base.Base
	sdb.DB
	Input string `ask:"--input" help:"A file path to read the state from as ssz file."`
	Data  []byte `ask:"--data" help:"Alternative to file input, import the state by reading hex-encoded bytes."`
}

func (*StatesImportCmd) Help

func (c *StatesImportCmd) Help() string

func (*StatesImportCmd) Run

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

type StatesListCmd

type StatesListCmd struct {
	*base.Base
	sdb.DB
}

func (*StatesListCmd) Help

func (c *StatesListCmd) Help() string

func (*StatesListCmd) Run

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

type StatesRemoveCmd

type StatesRemoveCmd struct {
	*base.Base
	sdb.DB
	StateRoot beacon.Root `ask:"<root>" help:"Root of the state to delete"`
}

func (*StatesRemoveCmd) Help

func (c *StatesRemoveCmd) Help() string

func (*StatesRemoveCmd) Run

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

type StatesStatsCmd

type StatesStatsCmd struct {
	*base.Base
	sdb.DB
}

func (*StatesStatsCmd) Help

func (c *StatesStatsCmd) Help() string

func (*StatesStatsCmd) Run

func (c *StatesStatsCmd) 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