geo

package
v0.1.76 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	CC          string     `json:"cc"`
	Country     string     `json:"country"`
	Region      string     `json:"region"`
	City        string     `json:"city"`
	Coordinates [2]float32 `json:"coordinates"`
}

type IpToGeoMap added in v0.1.51

type IpToGeoMap map[string]Info

func NewIpToGeoMap added in v0.1.51

func NewIpToGeoMap() IpToGeoMap

func (IpToGeoMap) GetByAddress added in v0.1.51

func (g IpToGeoMap) GetByAddress(address string) Info

func (IpToGeoMap) GetByHostname added in v0.1.51

func (g IpToGeoMap) GetByHostname(hostname string) Info

func (IpToGeoMap) GetByIp added in v0.1.51

func (g IpToGeoMap) GetByIp(ip string) Info

Jump to

Keyboard shortcuts

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