geocolo

package module
v0.0.0-...-1a7d9b8 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2017 License: BSD-3-Clause Imports: 8 Imported by: 2

README

geocolo

RPC server to query geographic proximity information.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoProximityService

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

func NewGeoProximityService

func NewGeoProximityService(
	config *GeoProximityServiceConfig) (*GeoProximityService, error)

func (*GeoProximityService) GetProximity

func (self *GeoProximityService) GetProximity(
	ctx context.Context,
	req *GeoProximityRequest) (res *GeoProximityResponse, err error)

func (*GeoProximityService) GetProximityByIP

func (self *GeoProximityService) GetProximityByIP(
	ctx context.Context,
	req *GeoProximityByIPRequest) (res *GeoProximityByIPResponse, err error)

Request which list of destination IPs are closest to a given source IP. Takes a radius around which results are returned but we always return at least one.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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