Documentation
¶
Index ¶
- Constants
- Variables
- func ChangeSetCmd() *cobra.Command
- func DatabaseCmd() *cobra.Command
- func MigrateCmd() *cobra.Command
- func MigrateDBCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func PatchCmd() *cobra.Command
- func PatchDBCmd() *cobra.Command
- type BackendType
- type DatabaseName
- type DbType
- type VersionDBConfig
Constants ¶
View Source
const EnvPrefix = "CRONOS"
Variables ¶
View Source
var ChainID string
View Source
var DefaultVersionDBTemplate = `
[versiondb]
# Enable defines if the versiondb should be enabled.
enable = {{ .VersionDB.Enable }}
`
Functions ¶
func ChangeSetCmd ¶ added in v1.0.4
func DatabaseCmd ¶ added in v1.7.0
DatabaseCmd returns the database command with subcommands
func MigrateCmd ¶ added in v1.7.0
MigrateCmd returns the migrate subcommand (for database command group)
func MigrateDBCmd ¶ added in v1.7.0
MigrateDBCmd returns the migrate command
func NewRootCmd ¶
NewRootCmd creates a new root command for simd. It is called once in the main function.
func PatchDBCmd ¶ added in v1.7.0
PatchDBCmd returns the patch command
Types ¶
type BackendType ¶ added in v1.7.0
type BackendType string
const ( GoLevelDB BackendType = "goleveldb" LevelDB BackendType = "leveldb" // Alias for goleveldb RocksDB BackendType = "rocksdb" )
Backend type constants
type DatabaseName ¶ added in v1.7.0
type DatabaseName string
const ( Application DatabaseName = "application" Blockstore DatabaseName = "blockstore" State DatabaseName = "state" TxIndex DatabaseName = "tx_index" Evidence DatabaseName = "evidence" )
Database name constants
type VersionDBConfig ¶ added in v1.7.0
type VersionDBConfig struct {
// Enable defines if the versiondb should be enabled.
Enable bool `mapstructure:"enable"`
}
func DefaultVersionDBConfig ¶ added in v1.7.0
func DefaultVersionDBConfig() VersionDBConfig
Click to show internal directories.
Click to hide internal directories.