maxmind

package
v0.6.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaxMind

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

MaxMind is an iplocation resolver using the MaxMind database.

func New

func New(db string) (*MaxMind, error)

New returns a new MaxMind iplocation resolver.

func (*MaxMind) Close

func (mm *MaxMind) Close() error

Close closes the iplocation resolver.

func (*MaxMind) Resolve

func (mm *MaxMind) Resolve(mas []multiaddr.Multiaddr) (iplocation.Location, error)

Resolve returns Location information from multiaddrs.

Jump to

Keyboard shortcuts

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