iplocation

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 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 IPLocation

type IPLocation struct {
	IP           string `json:"ip"`
	IPVersion    string `json:"ip_version"`
	CountryName  string `json:"country_name"`
	CountryCode2 string `json:"country_code2"`
	ISP          string `json:"isp"`
	City         string `json:"city"`
}

func Get

func Get(ctx context.Context, ip string) (*IPLocation, error)

type Provider

type Provider interface {
	Get(ctx context.Context, ip string) (*IPLocation, error)
}
var Default Provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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