ip2location

package
v0.0.1-beta.8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package ip2location provides geoinformation about a peer address. The above line should be correct, doesn't work currently on golangci-lint, track: https://github.com/golangci/golangci-lint/issues/741 nolint:staticcheck

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