iputil

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Overview

Package iputil

@author: xwc1125

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientIP

func GetClientIP(request *http.Request) string

GetClientIP 获取客户端的IP

func GetIntranetIp

func GetIntranetIp(prefix string) []string

GetIntranetIp 获取内网IP

func GetIpLocation

func GetIpLocation(ip string) *ip2region.IpInfo

GetIpLocation 获取IP归属地

func GetLocalhost

func GetLocalhost() string

GetLocalhost 获取局域网ip地址

func GetRemoteIP

func GetRemoteIP(request *http.Request) string

Types

This section is empty.

Directories

Path Synopsis
Package ipv4 provides useful API for IPv4 address handling.
Package ipv4 provides useful API for IPv4 address handling.
Package ipv6 provides useful API for IPv6 address handling.
Package ipv6 provides useful API for IPv6 address handling.

Jump to

Keyboard shortcuts

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