Documentation
¶
Index ¶
- Constants
- func CheckAndReadRuntimeConfig(runtimeDir string) (err error)
- func CheckAppName(appName string) bool
- func CheckCryptoType(ctype string) bool
- func CheckInitialized(path string) error
- func ConfigIsInitialized(cfgPath string) bool
- func GConf() *viper.Viper
- func GenConf() *viper.Viper
- func ReadRuntime() string
- type GlobalFlags
- type NoRuntimeError
Constants ¶
View Source
const ( DefaultRuntimeDir = "~/.genesis" DefaultApiAddr = "127.0.0.1:9011" DefaultCrypto = crypto.CryptoTypeZhongAn DefaultApp = "evm" )
Variables ¶
This section is empty.
Functions ¶
func CheckAppName ¶
func CheckCryptoType ¶
func CheckInitialized ¶
func ConfigIsInitialized ¶
func ReadRuntime ¶
func ReadRuntime() string
Types ¶
type GlobalFlags ¶
func GFlags ¶
func GFlags() *GlobalFlags
type NoRuntimeError ¶
type NoRuntimeError struct {
Path string
}
func (NoRuntimeError) Error ¶
func (err NoRuntimeError) Error() string
Click to show internal directories.
Click to hide internal directories.