Documentation ¶
Index ¶
- Variables
- func RegisterMappingServiceServer(s grpc.ServiceRegistrar, srv MappingServiceServer)
- func RegisterPricingServiceServer(s grpc.ServiceRegistrar, srv PricingServiceServer)
- func RegisterTripServiceServer(s grpc.ServiceRegistrar, srv TripServiceServer)
- type CalculateCostRequest
- func (*CalculateCostRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CalculateCostRequest) GetDistance() float32
- func (x *CalculateCostRequest) GetType() RideType
- func (*CalculateCostRequest) ProtoMessage()
- func (x *CalculateCostRequest) ProtoReflect() protoreflect.Message
- func (x *CalculateCostRequest) Reset()
- func (x *CalculateCostRequest) String() string
- type CalculateCostResponse
- func (*CalculateCostResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CalculateCostResponse) GetCost() float32
- func (*CalculateCostResponse) ProtoMessage()
- func (x *CalculateCostResponse) ProtoReflect() protoreflect.Message
- func (x *CalculateCostResponse) Reset()
- func (x *CalculateCostResponse) String() string
- type CalculateDistanceRequest
- func (*CalculateDistanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CalculateDistanceRequest) GetRoute() *Route
- func (*CalculateDistanceRequest) ProtoMessage()
- func (x *CalculateDistanceRequest) ProtoReflect() protoreflect.Message
- func (x *CalculateDistanceRequest) Reset()
- func (x *CalculateDistanceRequest) String() string
- type CalculateDistanceResponse
- func (*CalculateDistanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CalculateDistanceResponse) GetDistance() float32
- func (*CalculateDistanceResponse) ProtoMessage()
- func (x *CalculateDistanceResponse) ProtoReflect() protoreflect.Message
- func (x *CalculateDistanceResponse) Reset()
- func (x *CalculateDistanceResponse) String() string
- type CancelTripRequest
- type DoGeocodingRequest
- func (*DoGeocodingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DoGeocodingRequest) GetAddress() string
- func (*DoGeocodingRequest) ProtoMessage()
- func (x *DoGeocodingRequest) ProtoReflect() protoreflect.Message
- func (x *DoGeocodingRequest) Reset()
- func (x *DoGeocodingRequest) String() string
- type DoGeocodingResponse
- func (*DoGeocodingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DoGeocodingResponse) GetLocation() *Location
- func (*DoGeocodingResponse) ProtoMessage()
- func (x *DoGeocodingResponse) ProtoReflect() protoreflect.Message
- func (x *DoGeocodingResponse) Reset()
- func (x *DoGeocodingResponse) String() string
- type Empty
- type Location
- type MakeTimeEstimationRequest
- func (*MakeTimeEstimationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MakeTimeEstimationRequest) GetRoute() *Route
- func (*MakeTimeEstimationRequest) ProtoMessage()
- func (x *MakeTimeEstimationRequest) ProtoReflect() protoreflect.Message
- func (x *MakeTimeEstimationRequest) Reset()
- func (x *MakeTimeEstimationRequest) String() string
- type MakeTimeEstimationResponse
- func (*MakeTimeEstimationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MakeTimeEstimationResponse) GetEta() float32
- func (*MakeTimeEstimationResponse) ProtoMessage()
- func (x *MakeTimeEstimationResponse) ProtoReflect() protoreflect.Message
- func (x *MakeTimeEstimationResponse) Reset()
- func (x *MakeTimeEstimationResponse) String() string
- type MappingServiceClient
- type MappingServiceServer
- type PricingServiceClient
- type PricingServiceServer
- type RequestTripRequest
- func (*RequestTripRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RequestTripRequest) GetDestination() *Location
- func (x *RequestTripRequest) GetRideType() RideType
- func (x *RequestTripRequest) GetRiderId() string
- func (x *RequestTripRequest) GetStart() *Location
- func (*RequestTripRequest) ProtoMessage()
- func (x *RequestTripRequest) ProtoReflect() protoreflect.Message
- func (x *RequestTripRequest) Reset()
- func (x *RequestTripRequest) String() string
- type RequestTripResponse
- func (*RequestTripResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RequestTripResponse) GetTripId() string
- func (*RequestTripResponse) ProtoMessage()
- func (x *RequestTripResponse) ProtoReflect() protoreflect.Message
- func (x *RequestTripResponse) Reset()
- func (x *RequestTripResponse) String() string
- type RideType
- type Route
- type SeekForTripAsDriverRequest
- func (*SeekForTripAsDriverRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SeekForTripAsDriverRequest) GetDriverLocation() *Location
- func (*SeekForTripAsDriverRequest) ProtoMessage()
- func (x *SeekForTripAsDriverRequest) ProtoReflect() protoreflect.Message
- func (x *SeekForTripAsDriverRequest) Reset()
- func (x *SeekForTripAsDriverRequest) String() string
- type SeekForTripAsDriverResponse
- func (*SeekForTripAsDriverResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SeekForTripAsDriverResponse) GetDestination() *Location
- func (x *SeekForTripAsDriverResponse) GetRiderId() string
- func (x *SeekForTripAsDriverResponse) GetStart() *Location
- func (x *SeekForTripAsDriverResponse) GetTripId() string
- func (*SeekForTripAsDriverResponse) ProtoMessage()
- func (x *SeekForTripAsDriverResponse) ProtoReflect() protoreflect.Message
- func (x *SeekForTripAsDriverResponse) Reset()
- func (x *SeekForTripAsDriverResponse) String() string
- type TripServiceClient
- type TripServiceServer
- type TripService_SeekForTripAsDriverClient
- type TripService_SeekForTripAsDriverServer
- type UnimplementedMappingServiceServer
- func (UnimplementedMappingServiceServer) CalculateDistance(context.Context, *CalculateDistanceRequest) (*CalculateDistanceResponse, error)
- func (UnimplementedMappingServiceServer) DoGeocoding(context.Context, *DoGeocodingRequest) (*DoGeocodingResponse, error)
- func (UnimplementedMappingServiceServer) MakeTimeEstimation(context.Context, *MakeTimeEstimationRequest) (*MakeTimeEstimationResponse, error)
- type UnimplementedPricingServiceServer
- type UnimplementedTripServiceServer
- func (UnimplementedTripServiceServer) CancelTrip(context.Context, *CancelTripRequest) (*Empty, error)
- func (UnimplementedTripServiceServer) RequestTrip(context.Context, *RequestTripRequest) (*RequestTripResponse, error)
- func (UnimplementedTripServiceServer) SeekForTripAsDriver(TripService_SeekForTripAsDriverServer) error
- type UnsafeMappingServiceServer
- type UnsafePricingServiceServer
- type UnsafeTripServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( RideType_name = map[int32]string{ 0: "DEFAULT", 1: "COMFORT", 2: "PREMIUM", } RideType_value = map[string]int32{ "DEFAULT": 0, "COMFORT": 1, "PREMIUM": 2, } )
Enum value maps for RideType.
var File_common_proto protoreflect.FileDescriptor
var File_mapping_proto protoreflect.FileDescriptor
var File_pricing_proto protoreflect.FileDescriptor
var File_trip_proto protoreflect.FileDescriptor
var MappingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mapping.MappingService", HandlerType: (*MappingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CalculateDistance", Handler: _MappingService_CalculateDistance_Handler, }, { MethodName: "MakeTimeEstimation", Handler: _MappingService_MakeTimeEstimation_Handler, }, { MethodName: "DoGeocoding", Handler: _MappingService_DoGeocoding_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "mapping.proto", }
MappingService_ServiceDesc is the grpc.ServiceDesc for MappingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PricingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pricing.PricingService", HandlerType: (*PricingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CalculateCost", Handler: _PricingService_CalculateCost_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pricing.proto", }
PricingService_ServiceDesc is the grpc.ServiceDesc for PricingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TripService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "trip.TripService", HandlerType: (*TripServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RequestTrip", Handler: _TripService_RequestTrip_Handler, }, { MethodName: "CancelTrip", Handler: _TripService_CancelTrip_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "SeekForTripAsDriver", Handler: _TripService_SeekForTripAsDriver_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "trip.proto", }
TripService_ServiceDesc is the grpc.ServiceDesc for TripService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMappingServiceServer ¶
func RegisterMappingServiceServer(s grpc.ServiceRegistrar, srv MappingServiceServer)
func RegisterPricingServiceServer ¶
func RegisterPricingServiceServer(s grpc.ServiceRegistrar, srv PricingServiceServer)
func RegisterTripServiceServer ¶
func RegisterTripServiceServer(s grpc.ServiceRegistrar, srv TripServiceServer)
Types ¶
type CalculateCostRequest ¶
type CalculateCostRequest struct { Type RideType `protobuf:"varint,1,opt,name=type,proto3,enum=common.RideType" json:"type,omitempty"` Distance float32 `protobuf:"fixed32,2,opt,name=distance,proto3" json:"distance,omitempty"` // contains filtered or unexported fields }
func (*CalculateCostRequest) Descriptor
deprecated
func (*CalculateCostRequest) Descriptor() ([]byte, []int)
Deprecated: Use CalculateCostRequest.ProtoReflect.Descriptor instead.
func (*CalculateCostRequest) GetDistance ¶
func (x *CalculateCostRequest) GetDistance() float32
func (*CalculateCostRequest) GetType ¶
func (x *CalculateCostRequest) GetType() RideType
func (*CalculateCostRequest) ProtoMessage ¶
func (*CalculateCostRequest) ProtoMessage()
func (*CalculateCostRequest) ProtoReflect ¶
func (x *CalculateCostRequest) ProtoReflect() protoreflect.Message
func (*CalculateCostRequest) Reset ¶
func (x *CalculateCostRequest) Reset()
func (*CalculateCostRequest) String ¶
func (x *CalculateCostRequest) String() string
type CalculateCostResponse ¶
type CalculateCostResponse struct { Cost float32 `protobuf:"fixed32,1,opt,name=cost,proto3" json:"cost,omitempty"` // contains filtered or unexported fields }
func (*CalculateCostResponse) Descriptor
deprecated
func (*CalculateCostResponse) Descriptor() ([]byte, []int)
Deprecated: Use CalculateCostResponse.ProtoReflect.Descriptor instead.
func (*CalculateCostResponse) GetCost ¶
func (x *CalculateCostResponse) GetCost() float32
func (*CalculateCostResponse) ProtoMessage ¶
func (*CalculateCostResponse) ProtoMessage()
func (*CalculateCostResponse) ProtoReflect ¶
func (x *CalculateCostResponse) ProtoReflect() protoreflect.Message
func (*CalculateCostResponse) Reset ¶
func (x *CalculateCostResponse) Reset()
func (*CalculateCostResponse) String ¶
func (x *CalculateCostResponse) String() string
type CalculateDistanceRequest ¶
type CalculateDistanceRequest struct { Route *Route `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"` // contains filtered or unexported fields }
func (*CalculateDistanceRequest) Descriptor
deprecated
func (*CalculateDistanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CalculateDistanceRequest.ProtoReflect.Descriptor instead.
func (*CalculateDistanceRequest) GetRoute ¶
func (x *CalculateDistanceRequest) GetRoute() *Route
func (*CalculateDistanceRequest) ProtoMessage ¶
func (*CalculateDistanceRequest) ProtoMessage()
func (*CalculateDistanceRequest) ProtoReflect ¶
func (x *CalculateDistanceRequest) ProtoReflect() protoreflect.Message
func (*CalculateDistanceRequest) Reset ¶
func (x *CalculateDistanceRequest) Reset()
func (*CalculateDistanceRequest) String ¶
func (x *CalculateDistanceRequest) String() string
type CalculateDistanceResponse ¶
type CalculateDistanceResponse struct { Distance float32 `protobuf:"fixed32,1,opt,name=distance,proto3" json:"distance,omitempty"` // contains filtered or unexported fields }
func (*CalculateDistanceResponse) Descriptor
deprecated
func (*CalculateDistanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CalculateDistanceResponse.ProtoReflect.Descriptor instead.
func (*CalculateDistanceResponse) GetDistance ¶
func (x *CalculateDistanceResponse) GetDistance() float32
func (*CalculateDistanceResponse) ProtoMessage ¶
func (*CalculateDistanceResponse) ProtoMessage()
func (*CalculateDistanceResponse) ProtoReflect ¶
func (x *CalculateDistanceResponse) ProtoReflect() protoreflect.Message
func (*CalculateDistanceResponse) Reset ¶
func (x *CalculateDistanceResponse) Reset()
func (*CalculateDistanceResponse) String ¶
func (x *CalculateDistanceResponse) String() string
type CancelTripRequest ¶
type CancelTripRequest struct { TripId string `protobuf:"bytes,1,opt,name=trip_id,json=tripId,proto3" json:"trip_id,omitempty"` // contains filtered or unexported fields }
func (*CancelTripRequest) Descriptor
deprecated
func (*CancelTripRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelTripRequest.ProtoReflect.Descriptor instead.
func (*CancelTripRequest) GetTripId ¶
func (x *CancelTripRequest) GetTripId() string
func (*CancelTripRequest) ProtoMessage ¶
func (*CancelTripRequest) ProtoMessage()
func (*CancelTripRequest) ProtoReflect ¶
func (x *CancelTripRequest) ProtoReflect() protoreflect.Message
func (*CancelTripRequest) Reset ¶
func (x *CancelTripRequest) Reset()
func (*CancelTripRequest) String ¶
func (x *CancelTripRequest) String() string
type DoGeocodingRequest ¶
type DoGeocodingRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*DoGeocodingRequest) Descriptor
deprecated
func (*DoGeocodingRequest) Descriptor() ([]byte, []int)
Deprecated: Use DoGeocodingRequest.ProtoReflect.Descriptor instead.
func (*DoGeocodingRequest) GetAddress ¶
func (x *DoGeocodingRequest) GetAddress() string
func (*DoGeocodingRequest) ProtoMessage ¶
func (*DoGeocodingRequest) ProtoMessage()
func (*DoGeocodingRequest) ProtoReflect ¶
func (x *DoGeocodingRequest) ProtoReflect() protoreflect.Message
func (*DoGeocodingRequest) Reset ¶
func (x *DoGeocodingRequest) Reset()
func (*DoGeocodingRequest) String ¶
func (x *DoGeocodingRequest) String() string
type DoGeocodingResponse ¶
type DoGeocodingResponse struct { Location *Location `protobuf:"bytes,1,opt,name=Location,proto3" json:"Location,omitempty"` // contains filtered or unexported fields }
func (*DoGeocodingResponse) Descriptor
deprecated
func (*DoGeocodingResponse) Descriptor() ([]byte, []int)
Deprecated: Use DoGeocodingResponse.ProtoReflect.Descriptor instead.
func (*DoGeocodingResponse) GetLocation ¶
func (x *DoGeocodingResponse) GetLocation() *Location
func (*DoGeocodingResponse) ProtoMessage ¶
func (*DoGeocodingResponse) ProtoMessage()
func (*DoGeocodingResponse) ProtoReflect ¶
func (x *DoGeocodingResponse) ProtoReflect() protoreflect.Message
func (*DoGeocodingResponse) Reset ¶
func (x *DoGeocodingResponse) Reset()
func (*DoGeocodingResponse) String ¶
func (x *DoGeocodingResponse) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Location ¶
type Location struct { Latitude float32 `protobuf:"fixed32,1,opt,name=latitude,proto3" json:"latitude,omitempty"` Longitude float32 `protobuf:"fixed32,2,opt,name=longitude,proto3" json:"longitude,omitempty"` // contains filtered or unexported fields }
func (*Location) Descriptor
deprecated
func (*Location) GetLatitude ¶
func (*Location) GetLongitude ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type MakeTimeEstimationRequest ¶
type MakeTimeEstimationRequest struct { Route *Route `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"` // contains filtered or unexported fields }
func (*MakeTimeEstimationRequest) Descriptor
deprecated
func (*MakeTimeEstimationRequest) Descriptor() ([]byte, []int)
Deprecated: Use MakeTimeEstimationRequest.ProtoReflect.Descriptor instead.
func (*MakeTimeEstimationRequest) GetRoute ¶
func (x *MakeTimeEstimationRequest) GetRoute() *Route
func (*MakeTimeEstimationRequest) ProtoMessage ¶
func (*MakeTimeEstimationRequest) ProtoMessage()
func (*MakeTimeEstimationRequest) ProtoReflect ¶
func (x *MakeTimeEstimationRequest) ProtoReflect() protoreflect.Message
func (*MakeTimeEstimationRequest) Reset ¶
func (x *MakeTimeEstimationRequest) Reset()
func (*MakeTimeEstimationRequest) String ¶
func (x *MakeTimeEstimationRequest) String() string
type MakeTimeEstimationResponse ¶
type MakeTimeEstimationResponse struct { Eta float32 `protobuf:"fixed32,1,opt,name=eta,proto3" json:"eta,omitempty"` // contains filtered or unexported fields }
func (*MakeTimeEstimationResponse) Descriptor
deprecated
func (*MakeTimeEstimationResponse) Descriptor() ([]byte, []int)
Deprecated: Use MakeTimeEstimationResponse.ProtoReflect.Descriptor instead.
func (*MakeTimeEstimationResponse) GetEta ¶
func (x *MakeTimeEstimationResponse) GetEta() float32
func (*MakeTimeEstimationResponse) ProtoMessage ¶
func (*MakeTimeEstimationResponse) ProtoMessage()
func (*MakeTimeEstimationResponse) ProtoReflect ¶
func (x *MakeTimeEstimationResponse) ProtoReflect() protoreflect.Message
func (*MakeTimeEstimationResponse) Reset ¶
func (x *MakeTimeEstimationResponse) Reset()
func (*MakeTimeEstimationResponse) String ¶
func (x *MakeTimeEstimationResponse) String() string
type MappingServiceClient ¶
type MappingServiceClient interface { CalculateDistance(ctx context.Context, in *CalculateDistanceRequest, opts ...grpc.CallOption) (*CalculateDistanceResponse, error) MakeTimeEstimation(ctx context.Context, in *MakeTimeEstimationRequest, opts ...grpc.CallOption) (*MakeTimeEstimationResponse, error) DoGeocoding(ctx context.Context, in *DoGeocodingRequest, opts ...grpc.CallOption) (*DoGeocodingResponse, error) }
MappingServiceClient is the client API for MappingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMappingServiceClient ¶
func NewMappingServiceClient(cc grpc.ClientConnInterface) MappingServiceClient
type MappingServiceServer ¶
type MappingServiceServer interface { CalculateDistance(context.Context, *CalculateDistanceRequest) (*CalculateDistanceResponse, error) MakeTimeEstimation(context.Context, *MakeTimeEstimationRequest) (*MakeTimeEstimationResponse, error) DoGeocoding(context.Context, *DoGeocodingRequest) (*DoGeocodingResponse, error) // contains filtered or unexported methods }
MappingServiceServer is the server API for MappingService service. All implementations must embed UnimplementedMappingServiceServer for forward compatibility
type PricingServiceClient ¶
type PricingServiceClient interface {
CalculateCost(ctx context.Context, in *CalculateCostRequest, opts ...grpc.CallOption) (*CalculateCostResponse, error)
}
PricingServiceClient is the client API for PricingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPricingServiceClient ¶
func NewPricingServiceClient(cc grpc.ClientConnInterface) PricingServiceClient
type PricingServiceServer ¶
type PricingServiceServer interface { CalculateCost(context.Context, *CalculateCostRequest) (*CalculateCostResponse, error) // contains filtered or unexported methods }
PricingServiceServer is the server API for PricingService service. All implementations must embed UnimplementedPricingServiceServer for forward compatibility
type RequestTripRequest ¶
type RequestTripRequest struct { RiderId string `protobuf:"bytes,1,opt,name=rider_id,json=riderId,proto3" json:"rider_id,omitempty"` Start *Location `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"` Destination *Location `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"` RideType RideType `protobuf:"varint,4,opt,name=ride_type,json=rideType,proto3,enum=common.RideType" json:"ride_type,omitempty"` // contains filtered or unexported fields }
func (*RequestTripRequest) Descriptor
deprecated
func (*RequestTripRequest) Descriptor() ([]byte, []int)
Deprecated: Use RequestTripRequest.ProtoReflect.Descriptor instead.
func (*RequestTripRequest) GetDestination ¶
func (x *RequestTripRequest) GetDestination() *Location
func (*RequestTripRequest) GetRideType ¶
func (x *RequestTripRequest) GetRideType() RideType
func (*RequestTripRequest) GetRiderId ¶
func (x *RequestTripRequest) GetRiderId() string
func (*RequestTripRequest) GetStart ¶
func (x *RequestTripRequest) GetStart() *Location
func (*RequestTripRequest) ProtoMessage ¶
func (*RequestTripRequest) ProtoMessage()
func (*RequestTripRequest) ProtoReflect ¶
func (x *RequestTripRequest) ProtoReflect() protoreflect.Message
func (*RequestTripRequest) Reset ¶
func (x *RequestTripRequest) Reset()
func (*RequestTripRequest) String ¶
func (x *RequestTripRequest) String() string
type RequestTripResponse ¶
type RequestTripResponse struct { TripId string `protobuf:"bytes,1,opt,name=trip_id,json=tripId,proto3" json:"trip_id,omitempty"` // contains filtered or unexported fields }
func (*RequestTripResponse) Descriptor
deprecated
func (*RequestTripResponse) Descriptor() ([]byte, []int)
Deprecated: Use RequestTripResponse.ProtoReflect.Descriptor instead.
func (*RequestTripResponse) GetTripId ¶
func (x *RequestTripResponse) GetTripId() string
func (*RequestTripResponse) ProtoMessage ¶
func (*RequestTripResponse) ProtoMessage()
func (*RequestTripResponse) ProtoReflect ¶
func (x *RequestTripResponse) ProtoReflect() protoreflect.Message
func (*RequestTripResponse) Reset ¶
func (x *RequestTripResponse) Reset()
func (*RequestTripResponse) String ¶
func (x *RequestTripResponse) String() string
type RideType ¶
type RideType int32
func (RideType) Descriptor ¶
func (RideType) Descriptor() protoreflect.EnumDescriptor
func (RideType) EnumDescriptor
deprecated
func (RideType) Number ¶
func (x RideType) Number() protoreflect.EnumNumber
func (RideType) Type ¶
func (RideType) Type() protoreflect.EnumType
type Route ¶
type Route struct { Start *Location `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` Destination *Location `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` // contains filtered or unexported fields }
func (*Route) Descriptor
deprecated
func (*Route) GetDestination ¶
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) ProtoReflect ¶
func (x *Route) ProtoReflect() protoreflect.Message
type SeekForTripAsDriverRequest ¶
type SeekForTripAsDriverRequest struct { DriverLocation *Location `protobuf:"bytes,1,opt,name=driver_location,json=driverLocation,proto3" json:"driver_location,omitempty"` // contains filtered or unexported fields }
func (*SeekForTripAsDriverRequest) Descriptor
deprecated
func (*SeekForTripAsDriverRequest) Descriptor() ([]byte, []int)
Deprecated: Use SeekForTripAsDriverRequest.ProtoReflect.Descriptor instead.
func (*SeekForTripAsDriverRequest) GetDriverLocation ¶
func (x *SeekForTripAsDriverRequest) GetDriverLocation() *Location
func (*SeekForTripAsDriverRequest) ProtoMessage ¶
func (*SeekForTripAsDriverRequest) ProtoMessage()
func (*SeekForTripAsDriverRequest) ProtoReflect ¶
func (x *SeekForTripAsDriverRequest) ProtoReflect() protoreflect.Message
func (*SeekForTripAsDriverRequest) Reset ¶
func (x *SeekForTripAsDriverRequest) Reset()
func (*SeekForTripAsDriverRequest) String ¶
func (x *SeekForTripAsDriverRequest) String() string
type SeekForTripAsDriverResponse ¶
type SeekForTripAsDriverResponse struct { TripId string `protobuf:"bytes,1,opt,name=trip_id,json=tripId,proto3" json:"trip_id,omitempty"` RiderId string `protobuf:"bytes,2,opt,name=rider_id,json=riderId,proto3" json:"rider_id,omitempty"` Start *Location `protobuf:"bytes,3,opt,name=start,proto3" json:"start,omitempty"` Destination *Location `protobuf:"bytes,4,opt,name=destination,proto3" json:"destination,omitempty"` // contains filtered or unexported fields }
func (*SeekForTripAsDriverResponse) Descriptor
deprecated
func (*SeekForTripAsDriverResponse) Descriptor() ([]byte, []int)
Deprecated: Use SeekForTripAsDriverResponse.ProtoReflect.Descriptor instead.
func (*SeekForTripAsDriverResponse) GetDestination ¶
func (x *SeekForTripAsDriverResponse) GetDestination() *Location
func (*SeekForTripAsDriverResponse) GetRiderId ¶
func (x *SeekForTripAsDriverResponse) GetRiderId() string
func (*SeekForTripAsDriverResponse) GetStart ¶
func (x *SeekForTripAsDriverResponse) GetStart() *Location
func (*SeekForTripAsDriverResponse) GetTripId ¶
func (x *SeekForTripAsDriverResponse) GetTripId() string
func (*SeekForTripAsDriverResponse) ProtoMessage ¶
func (*SeekForTripAsDriverResponse) ProtoMessage()
func (*SeekForTripAsDriverResponse) ProtoReflect ¶
func (x *SeekForTripAsDriverResponse) ProtoReflect() protoreflect.Message
func (*SeekForTripAsDriverResponse) Reset ¶
func (x *SeekForTripAsDriverResponse) Reset()
func (*SeekForTripAsDriverResponse) String ¶
func (x *SeekForTripAsDriverResponse) String() string
type TripServiceClient ¶
type TripServiceClient interface { RequestTrip(ctx context.Context, in *RequestTripRequest, opts ...grpc.CallOption) (*RequestTripResponse, error) CancelTrip(ctx context.Context, in *CancelTripRequest, opts ...grpc.CallOption) (*Empty, error) SeekForTripAsDriver(ctx context.Context, opts ...grpc.CallOption) (TripService_SeekForTripAsDriverClient, error) }
TripServiceClient is the client API for TripService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTripServiceClient ¶
func NewTripServiceClient(cc grpc.ClientConnInterface) TripServiceClient
type TripServiceServer ¶
type TripServiceServer interface { RequestTrip(context.Context, *RequestTripRequest) (*RequestTripResponse, error) CancelTrip(context.Context, *CancelTripRequest) (*Empty, error) SeekForTripAsDriver(TripService_SeekForTripAsDriverServer) error // contains filtered or unexported methods }
TripServiceServer is the server API for TripService service. All implementations must embed UnimplementedTripServiceServer for forward compatibility
type TripService_SeekForTripAsDriverClient ¶
type TripService_SeekForTripAsDriverClient interface { Send(*SeekForTripAsDriverRequest) error Recv() (*SeekForTripAsDriverResponse, error) grpc.ClientStream }
type TripService_SeekForTripAsDriverServer ¶
type TripService_SeekForTripAsDriverServer interface { Send(*SeekForTripAsDriverResponse) error Recv() (*SeekForTripAsDriverRequest, error) grpc.ServerStream }
type UnimplementedMappingServiceServer ¶
type UnimplementedMappingServiceServer struct { }
UnimplementedMappingServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMappingServiceServer) CalculateDistance ¶
func (UnimplementedMappingServiceServer) CalculateDistance(context.Context, *CalculateDistanceRequest) (*CalculateDistanceResponse, error)
func (UnimplementedMappingServiceServer) DoGeocoding ¶
func (UnimplementedMappingServiceServer) DoGeocoding(context.Context, *DoGeocodingRequest) (*DoGeocodingResponse, error)
func (UnimplementedMappingServiceServer) MakeTimeEstimation ¶
func (UnimplementedMappingServiceServer) MakeTimeEstimation(context.Context, *MakeTimeEstimationRequest) (*MakeTimeEstimationResponse, error)
type UnimplementedPricingServiceServer ¶
type UnimplementedPricingServiceServer struct { }
UnimplementedPricingServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPricingServiceServer) CalculateCost ¶
func (UnimplementedPricingServiceServer) CalculateCost(context.Context, *CalculateCostRequest) (*CalculateCostResponse, error)
type UnimplementedTripServiceServer ¶
type UnimplementedTripServiceServer struct { }
UnimplementedTripServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTripServiceServer) CancelTrip ¶
func (UnimplementedTripServiceServer) CancelTrip(context.Context, *CancelTripRequest) (*Empty, error)
func (UnimplementedTripServiceServer) RequestTrip ¶
func (UnimplementedTripServiceServer) RequestTrip(context.Context, *RequestTripRequest) (*RequestTripResponse, error)
func (UnimplementedTripServiceServer) SeekForTripAsDriver ¶
func (UnimplementedTripServiceServer) SeekForTripAsDriver(TripService_SeekForTripAsDriverServer) error
type UnsafeMappingServiceServer ¶
type UnsafeMappingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMappingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MappingServiceServer will result in compilation errors.
type UnsafePricingServiceServer ¶
type UnsafePricingServiceServer interface {
// contains filtered or unexported methods
}
UnsafePricingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PricingServiceServer will result in compilation errors.
type UnsafeTripServiceServer ¶
type UnsafeTripServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTripServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TripServiceServer will result in compilation errors.