geoIp

package
v0.0.0-...-613e3a0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGeoIpDB

func InitGeoIpDB() error

Types

type CountryEmoji

type CountryEmoji struct {
	Code  string `json:"code"`
	Emoji string `json:"emoji"`
}

type GeoIP

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

GeoIP2

var GeoIpDB GeoIP

func NewGeoIP

func NewGeoIP(geodb, flags string) (geoip GeoIP)

new geoip from db file

func (GeoIP) Find

func (g GeoIP) Find(ipORdomain string) (ip, country string, err error)

find ip info

Jump to

Keyboard shortcuts

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