geolite2

package
v0.0.0-...-b6cbe2a Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB2 *geoip2.Reader
)

Functions

func FromDb2

func FromDb2(c *gin.Context)

FromDb2 get ip information from Geolite2 database

Types

type IPdDb2

type IPdDb2 struct{}

IPdDb2 struct implement server.Server for geolite2 method

func (*IPdDb2) FindIP

func (i *IPdDb2) FindIP(ip string, ch chan config.IPWithGeo, wg *sync.WaitGroup) *config.IPWithGeo

FindIP find information about a single IP

func (*IPdDb2) Register

func (i *IPdDb2) Register(routine bool)

Register register server

Jump to

Keyboard shortcuts

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