dbcmd

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlocksExportCmd

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

func (*BlocksExportCmd) Help

func (c *BlocksExportCmd) Help() string

func (*BlocksExportCmd) Run

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

type BlocksGetCmd

type BlocksGetCmd struct {
	*base.Base
	bdb.DB
	BlockRoot beacon.Root `ask:"<root>" help:"Root of the block to get"`
}

func (*BlocksGetCmd) Help

func (c *BlocksGetCmd) Help() string

func (*BlocksGetCmd) Run

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

type BlocksImportCmd

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

func (*BlocksImportCmd) Help

func (c *BlocksImportCmd) Help() string

func (*BlocksImportCmd) Run

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

type BlocksListCmd

type BlocksListCmd struct {
	*base.Base
	bdb.DB
}

func (*BlocksListCmd) Help

func (c *BlocksListCmd) Help() string

func (*BlocksListCmd) Run

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

type BlocksRemoveCmd

type BlocksRemoveCmd struct {
	*base.Base
	bdb.DB
	BlockRoot beacon.Root `ask:"<root>" help:"Root of the block to delete"`
}

func (*BlocksRemoveCmd) Help

func (c *BlocksRemoveCmd) Help() string

func (*BlocksRemoveCmd) Run

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

type BlocksStatsCmd

type BlocksStatsCmd struct {
	*base.Base
	bdb.DB
}

func (*BlocksStatsCmd) Help

func (c *BlocksStatsCmd) Help() string

func (*BlocksStatsCmd) Run

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

type DBCmd

type DBCmd struct {
	*base.Base
	bdb.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

Jump to

Keyboard shortcuts

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