server

package
v0.0.0-...-fe6f7b1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: MIT Imports: 16 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 {
	pb.UnimplementedRouteGuideServer
	// contains filtered or unexported fields
}

RouteGuideServer ...

func NewServer

func NewServer() *RouteGuideServer

NewServer ... func NewServer() *Server {

func (*RouteGuideServer) GetFeature

func (s *RouteGuideServer) GetFeature(ctx context.Context, point *pb.Point) (*pb.Feature, error)

GetFeature returns the feature at the given point.

func (*RouteGuideServer) ListFeatures

func (s *RouteGuideServer) ListFeatures(rect *pb.Rectangle, stream pb.RouteGuide_ListFeaturesServer) error

ListFeatures lists all features contained within the given bounding Rectangle.

func (*RouteGuideServer) RecordRoute

func (s *RouteGuideServer) RecordRoute(stream pb.RouteGuide_RecordRouteServer) error

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

func (s *RouteGuideServer) RouteChat(stream pb.RouteGuide_RouteChatServer) error

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

func (*RouteGuideServer) Run

func (s *RouteGuideServer) Run()

Run ...

type Server

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

Server ...

Jump to

Keyboard shortcuts

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