net

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 11 Imported by: 7

Documentation

Index

Constants

View Source
const (
	ReqModePost = "POST"
	ReqModeGet  = "GET"
	ReqModePut  = "PUT"
)

Variables

This section is empty.

Functions

func GetClientIP

func GetClientIP(r *http.Request) string

* GetClientIP

func HttpGet added in v0.0.4

func HttpGet(api string, header map[string]string) ([]byte, error)

* HttpGet

func HttpPost added in v0.0.4

func HttpPost(
	api string,
	data interface{},
	header map[string]string,
	isUseClientCert bool,
	certFile,
	keyFile string) ([]byte, error)

* HttpPost

func IntToIpv4

func IntToIpv4(ipInt int64) string

* Int 2 Ipv4

func Ipv4ToInt

func Ipv4ToInt(clientIp string) int64

* Ipv4 2 Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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