geoip

package
v0.0.0-...-c40c633 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAO

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

func Init

func Init(asnPath string, cityPath string) (DAO, error)

func (DAO) Close

func (dao DAO) Close() error

func (DAO) Lookup

func (dao DAO) Lookup(remoteAddr string, client *ds.Client) (err error)

func (DAO) LookupASN

func (dao DAO) LookupASN(ip net.IP, client *ds.Client) error

func (DAO) LookupCity

func (dao DAO) LookupCity(ip net.IP, client *ds.Client) error

Jump to

Keyboard shortcuts

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