Versions in this module Expand all Collapse all v1 v1.0.0 Sep 26, 2023 Changes in this version + type Options struct + BuildEpoch int64 + DatabaseType string + Description map[string]string + DisableIPv4Aliasing bool + DisableMetadataPointers bool + IPVersion int + IncludeReservedNetworks bool + Inserter inserter.FuncGenerator + Languages []string + RecordSize int + type Tree struct + func Load(path string, opts Options) (*Tree, error) + func New(opts Options) (*Tree, error) + func (t *Tree) Get(ip net.IP) (*net.IPNet, mmdbtype.DataType) + func (t *Tree) Insert(network *net.IPNet, value mmdbtype.DataType) error + func (t *Tree) InsertFunc(network *net.IPNet, inserterFunc inserter.Func) error + func (t *Tree) InsertRange(start net.IP, end net.IP, value mmdbtype.DataType) error + func (t *Tree) InsertRangeFunc(start net.IP, end net.IP, inserterFunc inserter.Func) error + func (t *Tree) WriteTo(w io.Writer) (int64, error)