Documentation
¶
Index ¶
- type RouteGuideServer
- func (s *RouteGuideServer) GetFeature(ctx context.Context, request *routeguidev1.GetFeatureRequest) (*routeguidev1.GetFeatureResponse, error)
- func (s *RouteGuideServer) ListFeatures(request *routeguidev1.ListFeaturesRequest, ...) error
- func (s *RouteGuideServer) RecordRoute(stream routeguidev1.RouteGuideService_RecordRouteServer) error
- func (s *RouteGuideServer) RouteChat(stream routeguidev1.RouteGuideService_RouteChatServer) error
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 ¶
func (s *RouteGuideServer) GetFeature(ctx context.Context, request *routeguidev1.GetFeatureRequest) (*routeguidev1.GetFeatureResponse, error)
GetFeature returns the feature at the given point.
func (*RouteGuideServer) ListFeatures ¶
func (s *RouteGuideServer) ListFeatures(request *routeguidev1.ListFeaturesRequest, stream routeguidev1.RouteGuideService_ListFeaturesServer) error
ListFeatures lists all features contained within the given bounding Rectangle.
func (*RouteGuideServer) RecordRoute ¶
func (s *RouteGuideServer) RecordRoute(stream routeguidev1.RouteGuideService_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 routeguidev1.RouteGuideService_RouteChatServer) error
RouteChat receives a stream of message/location pairs, and responds with a stream of all previous messages at each of those locations.
Click to show internal directories.
Click to hide internal directories.