server

package
v0.0.0-...-2656e40 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBtTable

func NewBtTable(
	ctx context.Context, projectID, instanceID, tableID string) (
	*bigtable.Table, error)

NewBtTable creates a new bigtable.Table instance.

func SetupBigtable

func SetupBigtable(
	ctx context.Context, data map[string]string) (*bigtable.Table, error)

SetupBigtable creates a testing bigtable instance used for testing.

Types

type GeoJson

type GeoJson struct {
	Type         string          `json:"type"`
	Coordinates  json.RawMessage `json:"coordinates"`
	Polygon      Polygon         `json:"-"`
	MultiPolygon MultiPolygon    `json:"-"`
}

type MultiPolygon

type MultiPolygon struct {
	Polygons [][][][]float64
}

type Polygon

type Polygon struct {
	Loops [][][]float64
}

type Server

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

Server holds resources for a recon server.

func NewServer

func NewServer(btTable *bigtable.Table) *Server

NewServer creates a new server instance.

func (*Server) CompareEntities

func (s *Server) CompareEntities(ctx context.Context, in *pb.CompareEntitiesRequest) (
	*pb.CompareEntitiesResponse, error)

CompareEntities implements API for ReconServer.CompareEntities.

func (*Server) ResolveCoordinates

ResolveCoordinates implements API for ReconServer.ResolveCoordinates.

func (*Server) ResolveEntities

func (s *Server) ResolveEntities(ctx context.Context, in *pb.ResolveEntitiesRequest) (
	*pb.ResolveEntitiesResponse, error)

ResolveEntities implements API for ReconServer.ResolveEntities.

func (*Server) ResolveIds

func (s *Server) ResolveIds(ctx context.Context, in *pb.ResolveIdsRequest) (
	*pb.ResolveIdsResponse, error)

Jump to

Keyboard shortcuts

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