geoip

package
v1.1.18 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package geoip implement ipdb.

Index

Constants

View Source
const INVALIDIP = "Invalid IP address"

Variables

This section is empty.

Functions

func InitLog

func InitLog()

Types

type Geoip

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

func (*Geoip) Geo

func (g *Geoip) Geo(ip string) (*ipdb.IPdbRecord, error)

func (*Geoip) Init

func (g *Geoip) Init(dataDir string, config map[string]string)

func (*Geoip) SearchIsp

func (g *Geoip) SearchIsp(ip string) string

Jump to

Keyboard shortcuts

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