Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultConfigDir() string
- func GetConfigFilePath(configPath, defaultFileName string) string
- func GetFilePath() string
- func InitFilePath(fp string)
- func InitLogger()
- func LoadConfig(configPath, defaultFileName string) (*config.Config, error)
- func RootPath() string
- func StartCmd(c *cli.Context) error
- func StopCmd(_ *cli.Context) error
Constants ¶
View Source
const ( ServiceName_HASH = "/companion/hash" //上链 ServiceName_APPLY = "/companion/apply" //提现 )
Variables ¶
View Source
var ( ErrAESTextSize = errors.New("ciphertext is not a multiple of the block size") ErrAESPadding = errors.New("cipher padding size error") )
Functions ¶
func DefaultConfigDir ¶
func DefaultConfigDir() string
func GetConfigFilePath ¶
configPath 不为空时,不检查fileName
func GetFilePath ¶
func GetFilePath() string
func InitFilePath ¶
func InitFilePath(fp string)
func InitLogger ¶
func InitLogger()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.