IpHelper

package
v1.1.162 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XForwardedFor = "X-Forwarded-For"
	XRealIP       = "X-Real-IP"
)

Variables

This section is empty.

Functions

func GetRemoteIp

func GetRemoteIp(req *http.Request) string

* 获取客服端ip

func Ip2long

func Ip2long(ipstr string) uint32

* ip转 long

func Long2ip

func Long2ip(ipLong uint32) string

* long转ip

Types

This section is empty.

Jump to

Keyboard shortcuts

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