config

package
v0.0.0-...-88e28f6 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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 DoesConfigExist(configFilePath string) bool

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

Jump to

Keyboard shortcuts

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