geoip

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

DB is a GeoIP database provider

func New

func New(filename string) (*DB, error)

New GeoIP database provider

func (*DB) Close

func (db *DB) Close() error

Close GeoIP database

func (*DB) LookupCountry

func (db *DB) LookupCountry(ip net.IP) (string, error)

LookupCountry find IP country code

Jump to

Keyboard shortcuts

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