ipinfo

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient added in v0.1.2

func NewClient(dbPath string) (geoip.IGeoClient, error)

Types

type IpInfClient

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

func (*IpInfClient) Close added in v0.1.2

func (c *IpInfClient) Close() error

func (*IpInfClient) Init added in v0.1.2

func (c *IpInfClient) Init() error

func (*IpInfClient) Query

func (c *IpInfClient) Query(ipStr string) (*geoip.GeoInfo, error)

func (*IpInfClient) QueryLite added in v0.1.6

func (c *IpInfClient) QueryLite(ip string) (types.IGeoInfo, error)

Jump to

Keyboard shortcuts

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