ip2location

package
v0.0.0-...-be0f657 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IP2Location

type IP2Location struct {
}

IP2Location is a LocationResolver implementation to get geoinformation of multiaddrs of a host

func New

func New(paths []string) *IP2Location

New returns a new IP2Location

func (*IP2Location) Close

func (il *IP2Location) Close()

Close closes IPLocation resolver

func (*IP2Location) Resolve

func (il *IP2Location) Resolve(mas []multiaddr.Multiaddr) (iplocation.Location, error)

Resolve returns geoinformation about a set of multiaddresses of a single host

Jump to

Keyboard shortcuts

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