Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FlagConfig = types.StringFlag{Name: "config", Short: "c", DefaultValue: "", Usage: "Config file", Required: false}
View Source
var ValaccountConfigOptions []types.Option[ValaccountConfig]
View Source
var ValaccountConfigs []ValaccountConfig
View Source
var ValaccountsDir = filepath.Join(configDir, "valaccounts")
Functions ¶
func DoesConfigExist ¶
func GetConfigDir ¶
func GetConfigDir() string
func GetDefaultConfigFilePath ¶
func GetDefaultConfigFilePath() string
func InitKysorConfig ¶
func InitKysorConfig()
func InitValaccountConfigs ¶
func InitValaccountConfigs()
func IsInitialzed ¶
func IsInitialzed() bool
Types ¶
type KysorConfig ¶
type KysorConfig struct { Name string Path string ChainID string `koanf:"chainId"` RPC string `koanf:"rpc"` REST string `koanf:"rest"` AutoDownloadBinaries bool `koanf:"autoDownloadBinaries"` Denom string }
var Config KysorConfig
func (KysorConfig) Save ¶
func (c KysorConfig) Save() error
type ValaccountConfig ¶
type ValaccountConfig struct { Name string Path string Pool uint64 `koanf:"pool"` Valaccount string `koanf:"valaccount"` StoragePriv string `koanf:"storagePriv"` RequestBackoff string `koanf:"requestBackoff"` Cache string `koanf:"cache"` Metrics bool `koanf:"metrics"` MetricsPort string `koanf:"metricsPort"` }
func (ValaccountConfig) PrettyName ¶
func (c ValaccountConfig) PrettyName() string
func (ValaccountConfig) Save ¶
func (c ValaccountConfig) Save() error
type ValaccountConfigOption ¶
type ValaccountConfigOption struct { types.Option[ValaccountConfig] // contains filtered or unexported fields }
func (ValaccountConfigOption) Name ¶
func (o ValaccountConfigOption) Name() string
func (ValaccountConfigOption) StringValue ¶
func (o ValaccountConfigOption) StringValue() string
func (ValaccountConfigOption) Value ¶
func (o ValaccountConfigOption) Value() ValaccountConfig
Click to show internal directories.
Click to hide internal directories.