mmdb

package module
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 5 Imported by: 0

README

mmdb

go.dev reference License

$ go install github.com/btwiuse/mmdb/cmd/mmdb@latest

Documentation

Index

Constants

View Source
const RepoURL = "https://github.com/P3TERX/GeoLite.mmdb"

Variables

View Source
var Files = []string{"GeoLite2-ASN.mmdb", "GeoLite2-City.mmdb", "GeoLite2-Country.mmdb"}

Functions

func DownloadTag

func DownloadTag(dataDir, tag string) error

func EnsureLatestDBFiles

func EnsureLatestDBFiles() ([]string, error)

func GetDataDir

func GetDataDir() string

func GetLatest

func GetLatest() (tag string, err error)

func IsTagDownloaded

func IsTagDownloaded(dataDir, tag string) bool

Types

This section is empty.

Directories

Path Synopsis
cmd
mmdb command

Jump to

Keyboard shortcuts

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