ipregion

package
v0.0.0-...-69995ca Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ip2region

type Ip2region struct {
	// contains filtered or unexported fields
}

func (*Ip2region) Search

func (r *Ip2region) Search(ip string) (*IpInfo, error)

type IpInfo

type IpInfo struct {
	Country string
	Region  string
	City    string
	ISP     string
}

type IpRegion

type IpRegion interface {
	Search(ip string) (*IpInfo, error)
}

func NewIp2region

func NewIp2region(path string) (IpRegion, error)

Jump to

Keyboard shortcuts

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