Documentation
¶
Overview ¶
*********************************************************** ** @Description: convert ** @Author: george hao ** @Date: 2019-06-28 09:34 ** @Last Modified by: george hao ** @Last Modified time: 2019-06-28 09:34 ************************************************************
*********************************************************** ** @Description: libs ** @Author: george hao ** @Date: 2018-08-13 11:17 ** @Last Modified by: george hao ** @Last Modified time: 2018-08-13 11:17 ************************************************************
*********************************************************** ** @Description: libs ** @Author: george hao ** @Date: 2018-08-09 13:29 ** @Last Modified by: Bee ** @Last Modified time: 2019-02-15 13:50 ************************************************************
*********************************************************** ** @Description: ip ** @Author: george hao ** @Date: 2019-06-27 09:20 ** @Last Modified by: george hao ** @Last Modified time: 2019-06-27 09:20 ************************************************************
*********************************************************** ** @Description: libs ** @Author: george hao ** @Date: 2018-08-13 11:16 ** @Last Modified by: george hao ** @Last Modified time: 2018-08-13 11:16 ************************************************************
*********************************************************** ** @Description: server ** @Author: george hao ** @Date: 2019-07-02 11:16 ** @Last Modified by: george hao ** @Last Modified time: 2019-07-02 11:16 ************************************************************
Index ¶
- Constants
- func DataType(i interface{}) string
- func Exist(path string) bool
- func FileSize(s int64) string
- func GbkAsUtf8(str string) string
- func GetCurrentDirectory() (string, error)
- func GetHostIp(IpType int) string
- func GetRandomString(lens int) string
- func HttpGet(url string, param map[string]string) (string, error)
- func HttpPost(url string, contentType string, body io.Reader) (string, error)
- func IsEmail(b []byte) bool
- func IsImageFile(data []byte) bool
- func IsPDFFile(data []byte) bool
- func IsTextFile(data []byte) bool
- func IsVideoFile(data []byte) bool
- func JobKey(taskId, serverId int) int
- func LocalIp() string
- func Md5(buf []byte) string
- func Password(len int, pwdO string) (pwd string, salt string)
- func PublicIp() string
- func RemoteAgent(servers *models.TaskServer) error
- func RemoteCommandByKey(servers *models.TaskServer) error
- func RemoteCommandByPassword(servers *models.TaskServer) error
- func RemoteCommandByTelnetPassword(servers *models.TaskServer) error
- func SizeFormat(size float64) string
- func SystemInfo(startTime int64) map[string]interface{}
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func GetCurrentDirectory ¶
func IsImageFile ¶
func IsTextFile ¶
func IsVideoFile ¶
func RemoteAgent ¶
func RemoteAgent(servers *models.TaskServer) error
func RemoteCommandByKey ¶
func RemoteCommandByKey(servers *models.TaskServer) error
func RemoteCommandByPassword ¶
func RemoteCommandByPassword(servers *models.TaskServer) error
func RemoteCommandByTelnetPassword ¶
func RemoteCommandByTelnetPassword(servers *models.TaskServer) error
func SizeFormat ¶
func SystemInfo ¶
Types ¶
This section is empty.