Documentation ¶
Overview ¶
* url functions
Index ¶
- func CanConnect(ip, port string) bool
- func ChangeMask(mask string) string
- func CheckToken(token string) (bool, string)
- func CreateTokenWithTime(sToken string) string
- func FnPost(url, param string) ([]byte, error)
- func GetInternetIps() []string
- func GetIpMaskFromCIDR(ip string) (string, string, error)
- func GetIpPortFromUrl(sUrl string) (string, string, error)
- func GetLocalIp() string
- func GetLocalIps() []string
- func GetNumber(ip, mask string) (string, error)
- func GetRemoteIp(req *http.Request) string
- func IsPrivateIp(ip string) bool
- func MethodHttp(method, url, param string, header ...map[string]string) ([]byte, error)
- func Ping(ip string) bool
- func QuerySign(mQuery map[string]string) string
- func RandInt64(min, max int64) int64
- func RandPort(min, max int64) int64
- func ScanPort(startPort, endPort int64, count int) []int64
- func SendHttp(method, url string, param map[string]string, header ...map[string]string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanConnect ¶
func ChangeMask ¶
* net mask转换, 255.255.255.0 -> 24 * 2019/03/07
func GetIpMaskFromCIDR ¶
* CIDR取IP mask * 2019/03/07
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.