mmdb

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadMMDB

func DownloadMMDB(path string) (err error)

func LoadFromBytes

func LoadFromBytes(buffer []byte)

func Verify

func Verify() bool

Types

type Reader

type Reader struct {
	*maxminddb.Reader
	// contains filtered or unexported fields
}

func Instance

func Instance() Reader

func (Reader) LookupCode

func (r Reader) LookupCode(ipAddress net.IP) []string

Jump to

Keyboard shortcuts

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