ip2loc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Geo

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

Geo represents ip2location

func New

func New() *Geo

New constructs Geo

func (*Geo) Get

func (g *Geo) Get(ip string) map[string]string

Get returns ip address geo information

func (*Geo) Init

func (g *Geo) Init(logger *zap.Logger, cfg map[string]string)

Init initializes ip2location database

Jump to

Keyboard shortcuts

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