local

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ip2LClient

type Ip2LClient struct {
	Logger log.Logger
	// contains filtered or unexported fields
}

func (*Ip2LClient) GetLocalInfo

func (i *Ip2LClient) GetLocalInfo(ip string) (*data.GeoInfo, error)

type IpGeoLocal

type IpGeoLocal interface {
	GetLocalInfo(ip string) (*data.GeoInfo, error)
}

func NewIp2L

func NewIp2L(logger log.Logger, dbFileAbsPath string, upgradeUrl string, upgradeSecs int64, upgradePanicHandler func(panic_err interface{})) (IpGeoLocal, error)

Jump to

Keyboard shortcuts

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