locator

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is the locator service implementation.

func New

func New(ipc ipapi.Client) *Service

New instantiates a new locator service.

func (*Service) GetLocation

func (s *Service) GetLocation(ctx context.Context, ip string) (*genlocator.WorldLocation, error)

GetLocation returns the location for the given IP address.

Directories

Path Synopsis
clients
cmd
gen

Jump to

Keyboard shortcuts

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