constants

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AssetDir                    = "./data"
	DefaultAPIListenAddr        = "0.0.0.0"
	DefaultAPIListenPort        = 5000
	DefaultDBAutoUpdate         = true
	DefaultDBAutoUpdateInterval = 24 * time.Hour
)
View Source
const (
	MaxMindDownloadPathQuery   = "/app/geoip_download?edition_id=%s&license_key=%s&suffix=%s"
	DBArchiveDownloadSuffix    = "tar.gz"
	DBSHA256FileDownloadSuffix = "tar.gz.sha256"
	DBTypeCountry              = "GeoLite2-Country"
	DBTypeCity                 = "GeoLite2-City"
	DBTypeASN                  = "GeoLite2-ASN"
	DBSuffix                   = "mmdb"
)

Variables

View Source
var (
	MaxMindHost        = "https://download.maxmind.com"
	MaxMindDownloadURL = fmt.Sprintf("%s%s", MaxMindHost, MaxMindDownloadPathQuery)
)
View Source
var (
	ErrInvalidIP = errors.New("invalid IP")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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