IpHelper

package
v1.1.154 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 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) uint64

* ip转 long

func Long2ip

func Long2ip(ipLong uint64) 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