geo

package
v0.0.0-...-c9a9a17 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 11 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
}

Server implements the geo service

func New

func New(tr opentracing.Tracer) *Geo

New returns a new server

func (*Geo) Nearby

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

Nearby returns all hotels within a given distance.

func (*Geo) Run

func (s *Geo) Run(port int) error

Run starts the server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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