commands

package
v0.0.0-...-a3b524e Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MigrateDataCmd = &cobra.Command{
	Use:   "migrate",
	Short: "Tendermint data migrator",
	RunE:  migrateData,
}
View Source
var ResetBlockCmd = &cobra.Command{
	Use:   "recover",
	Short: "Tendermint block recover",
	RunE:  resetBlockHeight,
}
View Source
var RootCmd = &cobra.Command{
	Use:   "tm_tools",
	Short: "Tendermint upgrade tools in Go",
	PersistentPreRunE: func(cmd *cobra.Command, args []string) (err error) {
		if cmd.Name() == VersionCmd.Name() {
			return nil
		}

		log.Log.SetDebugLevel(cli.DefaultLogLevel())

		startPerformanceTracePort()

		return nil
	},
}
View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Show version info",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println(version.Version)
	},
}
View Source
var ViewDatabaseCmd = &cobra.Command{
	Use:   "view",
	Short: "Tendermint database viewer",
	RunE:  viewDatabase,
}
View Source
var ViewWalCmd = &cobra.Command{
	Use:   "cswal",
	Short: "Tendermint cs.wal viewer",
	RunE:  showCsWal,
}

Functions

This section is empty.

Types

type CsWalParameter

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

type DbHandler

type DbHandler struct {
	LevelDb *leveldb.DB
	OldDbm  dbm.DB
	NewDbm  db.DB
}

func CreateViewDbHolder

func CreateViewDbHolder(newVersion bool, path string) *DbHandler

func (*DbHandler) Close

func (d *DbHandler) Close()

func (*DbHandler) GetAllRecordKeys

func (d *DbHandler) GetAllRecordKeys()

func (*DbHandler) GetBlock

func (d *DbHandler) GetBlock()

func (*DbHandler) GetDataByKey

func (d *DbHandler) GetDataByKey()

type DbType

type DbType string

type MigrateParam

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

type RecoverParam

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

type ViewParam

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

Jump to

Keyboard shortcuts

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