geolite

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: MPL-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GeoLiteUrl string

Functions

func InitGeoLite

func InitGeoLite() error

Types

type Country

type Country struct {
	Code   string
	CnName string
	EnName string
	Emoji  string
}

func GetCountry

func GetCountry(host string) (c *Country, err error)

type Init

type Init struct {
}

func (*Init) Init

func (p *Init) Init() (needRun bool, err error)

func (*Init) Name

func (p *Init) Name() string

func (*Init) WaitFinish

func (p *Init) WaitFinish()

Jump to

Keyboard shortcuts

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