patricia

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackGeo

func PackGeo(cnty []byte) uint32

Utility to turn Geo -> packed int

Types

type MMMap

type MMMap struct {
	// contains filtered or unexported fields
}

func NewMapFromMM

func NewMapFromMM(file string, log logger.ContextL) (*MMMap, error)

func (*MMMap) Close

func (t *MMMap) Close()

func (*MMMap) SearchBestFromHostAsn

func (t *MMMap) SearchBestFromHostAsn(ip net.IP) (uint32, string, error)

func (*MMMap) SearchBestFromHostGeo

func (t *MMMap) SearchBestFromHostGeo(ip net.IP) (string, error)

Jump to

Keyboard shortcuts

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