geoip

package
v0.0.0-...-a8af6b5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoIP

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

func New

func New(path, license string, isReady bool) *GeoIP

func (GeoIP) Close

func (g GeoIP) Close()

func (GeoIP) DownloadGeoIPDatabase

func (g GeoIP) DownloadGeoIPDatabase(fnUpdate func(msg string)) error

func (GeoIP) GetGeoStatsForTheIP

func (g GeoIP) GetGeoStatsForTheIP(ipAddress string) (string, string, string, error)

func (GeoIP) IsReady

func (g GeoIP) IsReady() bool

IsReady returns TRUE when a database exists, downloaded, opened and ready to use

Jump to

Keyboard shortcuts

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