powergate: github.com/textileio/powergate/iplocation/maxmind Index | Files

package maxmind

import "github.com/textileio/powergate/iplocation/maxmind"


Package Files


type MaxMind Uses

type MaxMind struct {
    // contains filtered or unexported fields

MaxMind is an iplocation resolver using the MaxMind database.

func New Uses

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

New returns a new MaxMind iplocation resolver.

func (*MaxMind) Close Uses

func (mm *MaxMind) Close() error

Close closes the iplocation resolver.

func (*MaxMind) Resolve Uses

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

Resolve returns Location information from multiaddrs.

Package maxmind imports 8 packages (graph) and is imported by 3 packages. Updated 2020-07-09. Refresh now. Tools for package owners.