controller

package
v0.0.0-...-67e434f Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 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 RouteGuideServer

type RouteGuideServer struct {
	routeguidev1.UnimplementedRouteGuideServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(repositories *repository.Repositories) (*RouteGuideServer, error)

func (*RouteGuideServer) GetFeature

GetFeature returns the feature at the given point.

func (*RouteGuideServer) ListFeatures

ListFeatures lists all features contained within the given bounding Rectangle.

func (*RouteGuideServer) RecordRoute

RecordRoute records a route composited of a sequence of points.

It gets a stream of points, and responds with statistics about the "trip": number of points, number of known features visited, total distance traveled, and total time spent.

func (*RouteGuideServer) RouteChat

RouteChat receives a stream of message/location pairs, and responds with a stream of all previous messages at each of those locations.

Jump to

Keyboard shortcuts

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