geo

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Database *geoip2.Reader

Database global defined geo database

Functions

func CloseGeo

func CloseGeo()

func Setup

func Setup()

Setup init geo config

Types

type Configure

type Configure struct {
	GeoDatabasePath string `env:"GEO_DATABASE_PATH" envDefault:"./GeoIP2-City.mmdb"`
}

Configure config for geo

var Config Configure

Config global defined geo config

Jump to

Keyboard shortcuts

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