1 Star 0 Fork 0

tomcard / gotron-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
values.go 922 Bytes
一键复制 编辑 原始数据 按行查看 历史
zzq 提交于 2021-04-02 17:07 . first commit
package cmd
import (
"github.com/fatih/color"
)
const (
tronctlDocsDir = "tronctl-docs"
defaultNodeAddr = "grpc.trongrid.io:50051"
defaultTimeout = 20
)
var (
g = color.New(color.FgGreen).SprintFunc()
)
// Directories
var (
// ConfigDir is the directory to store config file
ConfigDir string
// DefaultConfigFile is the default config file name
DefaultConfigFile string
)
// Error strings
var (
// ErrConfigNotMatch indicates error for no config matchs
ErrConfigNotMatch = "no config matchs"
// ErrEmptyEndpoint indicates error for empty endpoint
ErrEmptyEndpoint = "no endpoint has been set"
)
// Config defines the config schema
type Config struct {
Node string `yaml:"node"`
Ledger bool `yaml:"ledger"`
Verbose bool `yaml:"verbose"`
Timeout uint32 `yaml:"timeout"`
NoPretty bool `yaml:"noPretty"`
}
// ReadConfig represents the current config read from local
var config *Config
1
https://gitee.com/kand_admin/gotron-sdk.git
git@gitee.com:kand_admin/gotron-sdk.git
kand_admin
gotron-sdk
gotron-sdk
044d4103d5c5

搜索帮助