maxminddb-golang – github.com/oschwald/maxminddb-golang Index | Files

package maxminddb

import "github.com/oschwald/maxminddb-golang"

Index

Types

type Metadata

type Metadata struct {
	BinaryFormatMajorVersion uint              `maxminddb:"binary_format_major_version"`
	BinaryFormatMinorVersion uint              `maxminddb:"binary_format_minor_version"`
	BuildEpoch               uint              `maxminddb:"build_epoch"`
	DatabaseType             string            `maxminddb:"database_type"`
	Description              map[string]string `maxminddb:"description"`
	IPVersion                uint              `maxminddb:"ip_version"`
	Languages                []string          `maxminddb:"languages"`
	NodeCount                uint              `maxminddb:"node_count"`
	RecordSize               uint              `maxminddb:"record_size"`
}

type Reader

type Reader struct {
	Metadata Metadata
	// contains filtered or unexported fields
}

func FromBytes

func FromBytes(buffer []byte) (*Reader, error)

func Open

func Open(file string) (*Reader, error)

func (*Reader) Close

func (r *Reader) Close()

func (*Reader) Lookup

func (r *Reader) Lookup(ipAddress net.IP, result interface{}) error

Source Files

decoder.go reader.go

Version
v0.1.0
Published
May 6, 2014
Platform
windows/amd64
Imports
9 packages
Last checked
now

Tools for package owners.