Documentation ¶
Index ¶
- Variables
- func CopyFile(dst, src string) error
- func DirFiles(path string, count uint32) ([]string, error)
- func DirSize(path string) (uint64, error)
- func Dirs(path string) ([]string, error)
- func FildIpv4(data []byte) (string, bool)
- func GetDirFreeSpace(dir string) (uint64, error)
- func GetISOWeek() string
- func GetSysMemAvailable() (uint64, error)
- func GetSysMemTotle() (uint64, error)
- func InterfaceIsNIL(i interface{}) bool
- func IsIntranetIpv4(ipv4 string) (bool, error)
- func OpenedPort(port int) bool
- func QueryPeers(url string) ([]byte, error)
- func RandSlice(slice interface{})
- func RandomInRange(min, max int) int
- func RecoverError(err interface{}) string
- func RemoveRepeatedAddr(arr []multiaddr.Multiaddr) (newArr []multiaddr.Multiaddr)
- func Ternary(a, b int64) int64
- type MountPathInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalTransport = &http.Transport{ DisableKeepAlives: true, }
Functions ¶
func GetDirFreeSpace ¶
func GetISOWeek ¶
func GetISOWeek() string
func GetSysMemAvailable ¶
func GetSysMemTotle ¶
func InterfaceIsNIL ¶ added in v0.7.0
func InterfaceIsNIL(i interface{}) bool
InterfaceIsNIL returns the comparison between i and nil
func IsIntranetIpv4 ¶ added in v0.6.3
func OpenedPort ¶
func QueryPeers ¶ added in v0.6.3
func RecoverError ¶
func RecoverError(err interface{}) string
func RemoveRepeatedAddr ¶ added in v0.6.3
func RemoveRepeatedAddr(arr []multiaddr.Multiaddr) (newArr []multiaddr.Multiaddr)
Types ¶
type MountPathInfo ¶
Click to show internal directories.
Click to hide internal directories.