Documentation ¶
Index ¶
- Constants
- Variables
- func AdviseRpc() (string, error)
- func GenerateID(length int) string
- func GetIpPort(ipPort string) (ip string, port int)
- func GetPrivateIPv4() ([]*net.IPNet, error)
- func IsExist(file string) bool
- func IsRelease() bool
- func MakeFile(path string) *os.File
- func RandomNumber(n int) int
- func ShaPass(pass string) string
- func Unzip(src, dest string, ignoreFirstFolder bool) error
Constants ¶
View Source
const ( Name = "riff" Reset = "\033[0m" Red = "\033[31;1m" Green = "\033[32;1m" Success = Green + "[ OK ]" + Reset Failed = Red + "[FAILED]" + Reset DefaultHttpPort = 8610 DefaultDnsPort = 8620 DefaultRpcPort = 8630 )
Variables ¶
View Source
var BinDir string
View Source
var GitBranch = "nil"
View Source
var GitSha = "nil"
View Source
var Type = "debug"
defined in ../scripts/build.sh
TYPE="release" VERSION="$(cat version)" GITSHA="$(git rev-parse HEAD)" GITBRANCH="$(git rev-parse --abbrev-ref HEAD)"
View Source
var Version = "v0.0.1.dev"
Functions ¶
func GenerateID ¶
func GetPrivateIPv4 ¶
func RandomNumber ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.