xip

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientIP

func ClientIP(r *http.Request) string

func ClientPublicIP

func ClientPublicIP(r *http.Request) string

func HasLocalIP

func HasLocalIP(ip net.IP) bool

func HasLocalIPAddr

func HasLocalIPAddr(ip string) bool

func HasLocalIPddr

func HasLocalIPddr(ip string) bool

func IP2Long

func IP2Long(ip net.IP) (uint, error)

func IPString2Long

func IPString2Long(ip string) (uint, error)

func Long2IP

func Long2IP(i uint) (net.IP, error)

func Long2IPString

func Long2IPString(i uint) (string, error)

func RemoteIP

func RemoteIP(r *http.Request) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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