geofixture

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package geofixture creates synthetic MMDBs; it contains no third-party data.

Index

Constants

This section is empty.

Variables

View Source
var Prefixes = []string{"203.0.113.0/24", "2001:db8::/32", "172.28.0.0/16"}

Prefixes are the networks every synthetic database covers.

Functions

func Write

func Write(dir string) (string, string, error)

func WriteIPinfo

func WriteIPinfo(dir string) (string, error)

WriteIPinfo writes ipinfo_lite.mmdb in the IPinfo Lite schema. Against Write it agrees on 203.0.113.0/24 (NZ, AS64512), keeps the country but not the ASN on 172.28.0.0/16 (NZ, AS64513) and disagrees on 2001:db8::/32 (AU, AS64513), so tests can tell which database answered.

Types

This section is empty.

Jump to

Keyboard shortcuts

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