geo

package
v0.0.0-...-376a73a Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Geo

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

Geo implements the geo service

func NewGeo

func NewGeo(a string, p int, db *DatabaseSession, tr opentracing.Tracer) *Geo

NewGeo returns a new server

func (*Geo) Nearby

func (s *Geo) Nearby(ctx context.Context, req *pb.Request) (*pb.Result, error)

Nearby returns all hotels within a given distance.

func (*Geo) Run

func (s *Geo) Run() error

Run starts the server

Jump to

Keyboard shortcuts

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