commands

package
v0.0.0-...-262d4b5 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

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

func GetConfigFilePath(configPath, defaultFileName string) string

configPath 不为空时,不检查fileName

func GetFilePath

func GetFilePath() string

func InitFilePath

func InitFilePath(fp string)

func InitLogger

func InitLogger()

func LoadConfig

func LoadConfig(configPath, defaultFileName string) (*config.Config, error)

func RootPath

func RootPath() string

func StartCmd

func StartCmd(c *cli.Context) error

func StopCmd

func StopCmd(_ *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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