Versions in this module Expand all Collapse all v3 v3.1.2 Feb 5, 2024 Changes in this version + func NewService() (*routeGuideServer, error) + func PrintFeatures(stream RouteGuide_ListFeaturesClient) + func RegisterRouteGuideServer(s *grpc.Server, srv RouteGuideServer) + func RunRecordRoute(stream RouteGuide_RecordRouteClient) + func RunRouteChat(stream RouteGuide_RouteChatClient) + type Feature struct + Location *Point + Name string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Feature) Descriptor() ([]byte, []int) + func (*Feature) ProtoMessage() + func (m *Feature) GetLocation() *Point + func (m *Feature) GetName() string + func (m *Feature) Reset() + func (m *Feature) String() string + func (m *Feature) XXX_DiscardUnknown() + func (m *Feature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Feature) XXX_Merge(src proto.Message) + func (m *Feature) XXX_Size() int + func (m *Feature) XXX_Unmarshal(b []byte) error + type Point struct + Latitude int32 + Longitude int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Point) Descriptor() ([]byte, []int) + func (*Point) ProtoMessage() + func (m *Point) GetLatitude() int32 + func (m *Point) GetLongitude() int32 + func (m *Point) Reset() + func (m *Point) String() string + func (m *Point) XXX_DiscardUnknown() + func (m *Point) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Point) XXX_Merge(src proto.Message) + func (m *Point) XXX_Size() int + func (m *Point) XXX_Unmarshal(b []byte) error + type Rectangle struct + Hi *Point + Lo *Point + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Rectangle) Descriptor() ([]byte, []int) + func (*Rectangle) ProtoMessage() + func (m *Rectangle) GetHi() *Point + func (m *Rectangle) GetLo() *Point + func (m *Rectangle) Reset() + func (m *Rectangle) String() string + func (m *Rectangle) XXX_DiscardUnknown() + func (m *Rectangle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Rectangle) XXX_Merge(src proto.Message) + func (m *Rectangle) XXX_Size() int + func (m *Rectangle) XXX_Unmarshal(b []byte) error + type RouteGuideClient interface + GetFeature func(ctx context.Context, in *Point, opts ...grpc.CallOption) (*Feature, error) + ListFeatures func(ctx context.Context, in *Rectangle, opts ...grpc.CallOption) (RouteGuide_ListFeaturesClient, error) + RecordRoute func(ctx context.Context, opts ...grpc.CallOption) (RouteGuide_RecordRouteClient, error) + RouteChat func(ctx context.Context, opts ...grpc.CallOption) (RouteGuide_RouteChatClient, error) + func NewRouteGuideClient(cc grpc.ClientConnInterface) RouteGuideClient + type RouteGuideClientImpl struct + GetFeature func(ctx context.Context, in *Point, out *Feature) error + ListFeatures func(ctx context.Context, in *Rectangle) (RouteGuide_ListFeaturesClient, error) + RecordRoute func(ctx context.Context) (RouteGuide_RecordRouteClient, error) + RouteChat func(ctx context.Context) (RouteGuide_RouteChatClient, error) + func (c *RouteGuideClientImpl) GetDubboStub(cc *grpc.ClientConn) RouteGuideClient + func (c *RouteGuideClientImpl) Reference() string + type RouteGuideProviderBase struct + func (c *RouteGuideProviderBase) Reference() string + func (s *RouteGuideProviderBase) GetProxyImpl() protocol.Invoker + func (s *RouteGuideProviderBase) ServiceDesc() *grpc.ServiceDesc + func (s *RouteGuideProviderBase) SetProxyImpl(impl protocol.Invoker) + type RouteGuideServer interface + GetFeature func(context.Context, *Point) (*Feature, error) + ListFeatures func(*Rectangle, RouteGuide_ListFeaturesServer) error + RecordRoute func(RouteGuide_RecordRouteServer) error + RouteChat func(RouteGuide_RouteChatServer) error + type RouteGuide_ListFeaturesClient interface + Recv func() (*Feature, error) + type RouteGuide_ListFeaturesServer interface + Send func(*Feature) error + type RouteGuide_RecordRouteClient interface + CloseAndRecv func() (*RouteSummary, error) + Send func(*Point) error + type RouteGuide_RecordRouteServer interface + Recv func() (*Point, error) + SendAndClose func(*RouteSummary) error + type RouteGuide_RouteChatClient interface + Recv func() (*RouteNote, error) + Send func(*RouteNote) error + type RouteGuide_RouteChatServer interface + Recv func() (*RouteNote, error) + Send func(*RouteNote) error + type RouteNote struct + Location *Point + Message string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RouteNote) Descriptor() ([]byte, []int) + func (*RouteNote) ProtoMessage() + func (m *RouteNote) GetLocation() *Point + func (m *RouteNote) GetMessage() string + func (m *RouteNote) Reset() + func (m *RouteNote) String() string + func (m *RouteNote) XXX_DiscardUnknown() + func (m *RouteNote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RouteNote) XXX_Merge(src proto.Message) + func (m *RouteNote) XXX_Size() int + func (m *RouteNote) XXX_Unmarshal(b []byte) error + type RouteSummary struct + Distance int32 + ElapsedTime int32 + FeatureCount int32 + PointCount int32 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RouteSummary) Descriptor() ([]byte, []int) + func (*RouteSummary) ProtoMessage() + func (m *RouteSummary) GetDistance() int32 + func (m *RouteSummary) GetElapsedTime() int32 + func (m *RouteSummary) GetFeatureCount() int32 + func (m *RouteSummary) GetPointCount() int32 + func (m *RouteSummary) Reset() + func (m *RouteSummary) String() string + func (m *RouteSummary) XXX_DiscardUnknown() + func (m *RouteSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RouteSummary) XXX_Merge(src proto.Message) + func (m *RouteSummary) XXX_Size() int + func (m *RouteSummary) XXX_Unmarshal(b []byte) error + type Server struct + func NewServer(address string) (*Server, error) + func (s *Server) Start() + func (s *Server) Stop() + type UnimplementedRouteGuideServer struct + func (*UnimplementedRouteGuideServer) GetFeature(ctx context.Context, req *Point) (*Feature, error) + func (*UnimplementedRouteGuideServer) ListFeatures(req *Rectangle, srv RouteGuide_ListFeaturesServer) error + func (*UnimplementedRouteGuideServer) RecordRoute(srv RouteGuide_RecordRouteServer) error + func (*UnimplementedRouteGuideServer) RouteChat(srv RouteGuide_RouteChatServer) error