Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterValuationsServiceServer(s grpc.ServiceRegistrar, srv ValuationsServiceServer)
- type DeviceOffer
- type DeviceOfferRequest
- func (*DeviceOfferRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceOfferRequest) GetUserDeviceId() string
- func (*DeviceOfferRequest) ProtoMessage()
- func (x *DeviceOfferRequest) ProtoReflect() protoreflect.Message
- func (x *DeviceOfferRequest) Reset()
- func (x *DeviceOfferRequest) String() string
- type DeviceValuation
- func (*DeviceValuation) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceValuation) GetValuationSets() []*ValuationSet
- func (*DeviceValuation) ProtoMessage()
- func (x *DeviceValuation) ProtoReflect() protoreflect.Message
- func (x *DeviceValuation) Reset()
- func (x *DeviceValuation) String() string
- type DeviceValuationRequest
- func (*DeviceValuationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceValuationRequest) GetUserDeviceId() string
- func (*DeviceValuationRequest) ProtoMessage()
- func (x *DeviceValuationRequest) ProtoReflect() protoreflect.Message
- func (x *DeviceValuationRequest) Reset()
- func (x *DeviceValuationRequest) String() string
- type Offer
- func (*Offer) Descriptor() ([]byte, []int)deprecated
- func (x *Offer) GetDeclineReason() string
- func (x *Offer) GetError() string
- func (x *Offer) GetGrade() string
- func (x *Offer) GetPrice() int32
- func (x *Offer) GetUrl() string
- func (x *Offer) GetVendor() string
- func (*Offer) ProtoMessage()
- func (x *Offer) ProtoReflect() protoreflect.Message
- func (x *Offer) Reset()
- func (x *Offer) String() string
- type OfferSet
- func (*OfferSet) Descriptor() ([]byte, []int)deprecated
- func (x *OfferSet) GetMileage() int32
- func (x *OfferSet) GetOffers() []*Offer
- func (x *OfferSet) GetSource() string
- func (x *OfferSet) GetUpdated() string
- func (x *OfferSet) GetZipCode() string
- func (*OfferSet) ProtoMessage()
- func (x *OfferSet) ProtoReflect() protoreflect.Message
- func (x *OfferSet) Reset()
- func (x *OfferSet) String() string
- type UnimplementedValuationsServiceServer
- func (UnimplementedValuationsServiceServer) GetAllUserDeviceValuation(context.Context, *emptypb.Empty) (*ValuationResponse, error)
- func (UnimplementedValuationsServiceServer) GetAllValuations(context.Context, *emptypb.Empty) (*ValuationResponse, error)
- func (UnimplementedValuationsServiceServer) GetUserDeviceOffer(context.Context, *DeviceOfferRequest) (*DeviceOffer, error)
- func (UnimplementedValuationsServiceServer) GetUserDeviceValuation(context.Context, *DeviceValuationRequest) (*DeviceValuation, error)
- type UnsafeValuationsServiceServer
- type ValuationResponse
- func (*ValuationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValuationResponse) GetGrowthPercentage() float32
- func (x *ValuationResponse) GetTotal() float32
- func (*ValuationResponse) ProtoMessage()
- func (x *ValuationResponse) ProtoReflect() protoreflect.Message
- func (x *ValuationResponse) Reset()
- func (x *ValuationResponse) String() string
- type ValuationSet
- func (*ValuationSet) Descriptor() ([]byte, []int)deprecated
- func (x *ValuationSet) GetCurrency() string
- func (x *ValuationSet) GetMileage() int32
- func (x *ValuationSet) GetOdometer() int32
- func (x *ValuationSet) GetOdometerUnit() string
- func (x *ValuationSet) GetRetail() int32
- func (x *ValuationSet) GetRetailAverage() int32
- func (x *ValuationSet) GetRetailClean() int32
- func (x *ValuationSet) GetRetailRough() int32
- func (x *ValuationSet) GetRetailSource() string
- func (x *ValuationSet) GetTradeIn() int32
- func (x *ValuationSet) GetTradeInAverage() int32
- func (x *ValuationSet) GetTradeInClean() int32
- func (x *ValuationSet) GetTradeInRough() int32
- func (x *ValuationSet) GetTradeInSource() string
- func (x *ValuationSet) GetUpdated() string
- func (x *ValuationSet) GetUserDisplayPrice() int32
- func (x *ValuationSet) GetVendor() string
- func (x *ValuationSet) GetZipCode() string
- func (*ValuationSet) ProtoMessage()
- func (x *ValuationSet) ProtoReflect() protoreflect.Message
- func (x *ValuationSet) Reset()
- func (x *ValuationSet) String() string
- type ValuationsServiceClient
- type ValuationsServiceServer
Constants ¶
const ( ValuationsService_GetAllValuations_FullMethodName = "/valuations.ValuationsService/GetAllValuations" ValuationsService_GetUserDeviceValuation_FullMethodName = "/valuations.ValuationsService/GetUserDeviceValuation" ValuationsService_GetUserDeviceOffer_FullMethodName = "/valuations.ValuationsService/GetUserDeviceOffer" ValuationsService_GetAllUserDeviceValuation_FullMethodName = "/valuations.ValuationsService/GetAllUserDeviceValuation" )
Variables ¶
var File_pkg_grpc_valuations_proto protoreflect.FileDescriptor
var ValuationsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "valuations.ValuationsService", HandlerType: (*ValuationsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAllValuations", Handler: _ValuationsService_GetAllValuations_Handler, }, { MethodName: "GetUserDeviceValuation", Handler: _ValuationsService_GetUserDeviceValuation_Handler, }, { MethodName: "GetUserDeviceOffer", Handler: _ValuationsService_GetUserDeviceOffer_Handler, }, { MethodName: "GetAllUserDeviceValuation", Handler: _ValuationsService_GetAllUserDeviceValuation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/grpc/valuations.proto", }
ValuationsService_ServiceDesc is the grpc.ServiceDesc for ValuationsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterValuationsServiceServer ¶
func RegisterValuationsServiceServer(s grpc.ServiceRegistrar, srv ValuationsServiceServer)
Types ¶
type DeviceOffer ¶ added in v0.2.0
type DeviceOffer struct { OfferSets []*OfferSet `protobuf:"bytes,1,rep,name=offerSets,proto3" json:"offerSets,omitempty"` // contains filtered or unexported fields }
func (*DeviceOffer) Descriptor
deprecated
added in
v0.2.0
func (*DeviceOffer) Descriptor() ([]byte, []int)
Deprecated: Use DeviceOffer.ProtoReflect.Descriptor instead.
func (*DeviceOffer) GetOfferSets ¶ added in v0.2.0
func (x *DeviceOffer) GetOfferSets() []*OfferSet
func (*DeviceOffer) ProtoMessage ¶ added in v0.2.0
func (*DeviceOffer) ProtoMessage()
func (*DeviceOffer) ProtoReflect ¶ added in v0.2.0
func (x *DeviceOffer) ProtoReflect() protoreflect.Message
func (*DeviceOffer) Reset ¶ added in v0.2.0
func (x *DeviceOffer) Reset()
func (*DeviceOffer) String ¶ added in v0.2.0
func (x *DeviceOffer) String() string
type DeviceOfferRequest ¶ added in v0.2.0
type DeviceOfferRequest struct { UserDeviceId string `protobuf:"bytes,1,opt,name=userDeviceId,proto3" json:"userDeviceId,omitempty"` // contains filtered or unexported fields }
func (*DeviceOfferRequest) Descriptor
deprecated
added in
v0.2.0
func (*DeviceOfferRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeviceOfferRequest.ProtoReflect.Descriptor instead.
func (*DeviceOfferRequest) GetUserDeviceId ¶ added in v0.2.0
func (x *DeviceOfferRequest) GetUserDeviceId() string
func (*DeviceOfferRequest) ProtoMessage ¶ added in v0.2.0
func (*DeviceOfferRequest) ProtoMessage()
func (*DeviceOfferRequest) ProtoReflect ¶ added in v0.2.0
func (x *DeviceOfferRequest) ProtoReflect() protoreflect.Message
func (*DeviceOfferRequest) Reset ¶ added in v0.2.0
func (x *DeviceOfferRequest) Reset()
func (*DeviceOfferRequest) String ¶ added in v0.2.0
func (x *DeviceOfferRequest) String() string
type DeviceValuation ¶ added in v0.2.0
type DeviceValuation struct { ValuationSets []*ValuationSet `protobuf:"bytes,1,rep,name=valuationSets,proto3" json:"valuationSets,omitempty"` // contains filtered or unexported fields }
func (*DeviceValuation) Descriptor
deprecated
added in
v0.2.0
func (*DeviceValuation) Descriptor() ([]byte, []int)
Deprecated: Use DeviceValuation.ProtoReflect.Descriptor instead.
func (*DeviceValuation) GetValuationSets ¶ added in v0.2.0
func (x *DeviceValuation) GetValuationSets() []*ValuationSet
func (*DeviceValuation) ProtoMessage ¶ added in v0.2.0
func (*DeviceValuation) ProtoMessage()
func (*DeviceValuation) ProtoReflect ¶ added in v0.2.0
func (x *DeviceValuation) ProtoReflect() protoreflect.Message
func (*DeviceValuation) Reset ¶ added in v0.2.0
func (x *DeviceValuation) Reset()
func (*DeviceValuation) String ¶ added in v0.2.0
func (x *DeviceValuation) String() string
type DeviceValuationRequest ¶ added in v0.2.0
type DeviceValuationRequest struct { UserDeviceId string `protobuf:"bytes,1,opt,name=userDeviceId,proto3" json:"userDeviceId,omitempty"` // contains filtered or unexported fields }
func (*DeviceValuationRequest) Descriptor
deprecated
added in
v0.2.0
func (*DeviceValuationRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeviceValuationRequest.ProtoReflect.Descriptor instead.
func (*DeviceValuationRequest) GetUserDeviceId ¶ added in v0.2.0
func (x *DeviceValuationRequest) GetUserDeviceId() string
func (*DeviceValuationRequest) ProtoMessage ¶ added in v0.2.0
func (*DeviceValuationRequest) ProtoMessage()
func (*DeviceValuationRequest) ProtoReflect ¶ added in v0.2.0
func (x *DeviceValuationRequest) ProtoReflect() protoreflect.Message
func (*DeviceValuationRequest) Reset ¶ added in v0.2.0
func (x *DeviceValuationRequest) Reset()
func (*DeviceValuationRequest) String ¶ added in v0.2.0
func (x *DeviceValuationRequest) String() string
type Offer ¶ added in v0.2.0
type Offer struct { Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` Price int32 `protobuf:"varint,2,opt,name=price,proto3" json:"price,omitempty"` Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` Error string `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"` Grade string `protobuf:"bytes,5,opt,name=grade,proto3" json:"grade,omitempty"` DeclineReason string `protobuf:"bytes,6,opt,name=declineReason,proto3" json:"declineReason,omitempty"` // contains filtered or unexported fields }
func (*Offer) Descriptor
deprecated
added in
v0.2.0
func (*Offer) GetDeclineReason ¶ added in v0.2.0
func (*Offer) ProtoMessage ¶ added in v0.2.0
func (*Offer) ProtoMessage()
func (*Offer) ProtoReflect ¶ added in v0.2.0
func (x *Offer) ProtoReflect() protoreflect.Message
type OfferSet ¶ added in v0.2.0
type OfferSet struct { Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` Updated string `protobuf:"bytes,2,opt,name=updated,proto3" json:"updated,omitempty"` Mileage int32 `protobuf:"varint,3,opt,name=mileage,proto3" json:"mileage,omitempty"` ZipCode string `protobuf:"bytes,4,opt,name=zipCode,proto3" json:"zipCode,omitempty"` Offers []*Offer `protobuf:"bytes,5,rep,name=offers,proto3" json:"offers,omitempty"` // contains filtered or unexported fields }
func (*OfferSet) Descriptor
deprecated
added in
v0.2.0
func (*OfferSet) GetMileage ¶ added in v0.2.0
func (*OfferSet) GetUpdated ¶ added in v0.2.0
func (*OfferSet) GetZipCode ¶ added in v0.2.0
func (*OfferSet) ProtoMessage ¶ added in v0.2.0
func (*OfferSet) ProtoMessage()
func (*OfferSet) ProtoReflect ¶ added in v0.2.0
func (x *OfferSet) ProtoReflect() protoreflect.Message
type UnimplementedValuationsServiceServer ¶
type UnimplementedValuationsServiceServer struct { }
UnimplementedValuationsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedValuationsServiceServer) GetAllUserDeviceValuation ¶ added in v0.3.0
func (UnimplementedValuationsServiceServer) GetAllUserDeviceValuation(context.Context, *emptypb.Empty) (*ValuationResponse, error)
func (UnimplementedValuationsServiceServer) GetAllValuations ¶
func (UnimplementedValuationsServiceServer) GetAllValuations(context.Context, *emptypb.Empty) (*ValuationResponse, error)
func (UnimplementedValuationsServiceServer) GetUserDeviceOffer ¶ added in v0.2.0
func (UnimplementedValuationsServiceServer) GetUserDeviceOffer(context.Context, *DeviceOfferRequest) (*DeviceOffer, error)
func (UnimplementedValuationsServiceServer) GetUserDeviceValuation ¶ added in v0.2.0
func (UnimplementedValuationsServiceServer) GetUserDeviceValuation(context.Context, *DeviceValuationRequest) (*DeviceValuation, error)
type UnsafeValuationsServiceServer ¶
type UnsafeValuationsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeValuationsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ValuationsServiceServer will result in compilation errors.
type ValuationResponse ¶
type ValuationResponse struct { Total float32 `protobuf:"fixed32,1,opt,name=total,proto3" json:"total,omitempty"` GrowthPercentage float32 `protobuf:"fixed32,2,opt,name=growthPercentage,proto3" json:"growthPercentage,omitempty"` // contains filtered or unexported fields }
func (*ValuationResponse) Descriptor
deprecated
func (*ValuationResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValuationResponse.ProtoReflect.Descriptor instead.
func (*ValuationResponse) GetGrowthPercentage ¶
func (x *ValuationResponse) GetGrowthPercentage() float32
func (*ValuationResponse) GetTotal ¶
func (x *ValuationResponse) GetTotal() float32
func (*ValuationResponse) ProtoMessage ¶
func (*ValuationResponse) ProtoMessage()
func (*ValuationResponse) ProtoReflect ¶
func (x *ValuationResponse) ProtoReflect() protoreflect.Message
func (*ValuationResponse) Reset ¶
func (x *ValuationResponse) Reset()
func (*ValuationResponse) String ¶
func (x *ValuationResponse) String() string
type ValuationSet ¶ added in v0.2.0
type ValuationSet struct { Vendor string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"` Updated string `protobuf:"bytes,2,opt,name=updated,proto3" json:"updated,omitempty"` Mileage int32 `protobuf:"varint,3,opt,name=mileage,proto3" json:"mileage,omitempty"` ZipCode string `protobuf:"bytes,4,opt,name=zipCode,proto3" json:"zipCode,omitempty"` TradeInSource string `protobuf:"bytes,5,opt,name=tradeInSource,proto3" json:"tradeInSource,omitempty"` TradeIn int32 `protobuf:"varint,6,opt,name=tradeIn,proto3" json:"tradeIn,omitempty"` TradeInClean int32 `protobuf:"varint,7,opt,name=tradeInClean,proto3" json:"tradeInClean,omitempty"` TradeInAverage int32 `protobuf:"varint,8,opt,name=tradeInAverage,proto3" json:"tradeInAverage,omitempty"` TradeInRough int32 `protobuf:"varint,9,opt,name=tradeInRough,proto3" json:"tradeInRough,omitempty"` RetailSource string `protobuf:"bytes,10,opt,name=RetailSource,proto3" json:"RetailSource,omitempty"` Retail int32 `protobuf:"varint,11,opt,name=retail,proto3" json:"retail,omitempty"` RetailClean int32 `protobuf:"varint,12,opt,name=retailClean,proto3" json:"retailClean,omitempty"` RetailAverage int32 `protobuf:"varint,13,opt,name=retailAverage,proto3" json:"retailAverage,omitempty"` RetailRough int32 `protobuf:"varint,14,opt,name=retailRough,proto3" json:"retailRough,omitempty"` OdometerUnit string `protobuf:"bytes,15,opt,name=odometerUnit,proto3" json:"odometerUnit,omitempty"` Odometer int32 `protobuf:"varint,16,opt,name=odometer,proto3" json:"odometer,omitempty"` UserDisplayPrice int32 `protobuf:"varint,17,opt,name=userDisplayPrice,proto3" json:"userDisplayPrice,omitempty"` Currency string `protobuf:"bytes,18,opt,name=currency,proto3" json:"currency,omitempty"` // contains filtered or unexported fields }
func (*ValuationSet) Descriptor
deprecated
added in
v0.2.0
func (*ValuationSet) Descriptor() ([]byte, []int)
Deprecated: Use ValuationSet.ProtoReflect.Descriptor instead.
func (*ValuationSet) GetCurrency ¶ added in v0.2.0
func (x *ValuationSet) GetCurrency() string
func (*ValuationSet) GetMileage ¶ added in v0.2.0
func (x *ValuationSet) GetMileage() int32
func (*ValuationSet) GetOdometer ¶ added in v0.2.0
func (x *ValuationSet) GetOdometer() int32
func (*ValuationSet) GetOdometerUnit ¶ added in v0.2.0
func (x *ValuationSet) GetOdometerUnit() string
func (*ValuationSet) GetRetail ¶ added in v0.2.0
func (x *ValuationSet) GetRetail() int32
func (*ValuationSet) GetRetailAverage ¶ added in v0.2.0
func (x *ValuationSet) GetRetailAverage() int32
func (*ValuationSet) GetRetailClean ¶ added in v0.2.0
func (x *ValuationSet) GetRetailClean() int32
func (*ValuationSet) GetRetailRough ¶ added in v0.2.0
func (x *ValuationSet) GetRetailRough() int32
func (*ValuationSet) GetRetailSource ¶ added in v0.2.0
func (x *ValuationSet) GetRetailSource() string
func (*ValuationSet) GetTradeIn ¶ added in v0.2.0
func (x *ValuationSet) GetTradeIn() int32
func (*ValuationSet) GetTradeInAverage ¶ added in v0.2.0
func (x *ValuationSet) GetTradeInAverage() int32
func (*ValuationSet) GetTradeInClean ¶ added in v0.2.0
func (x *ValuationSet) GetTradeInClean() int32
func (*ValuationSet) GetTradeInRough ¶ added in v0.2.0
func (x *ValuationSet) GetTradeInRough() int32
func (*ValuationSet) GetTradeInSource ¶ added in v0.2.0
func (x *ValuationSet) GetTradeInSource() string
func (*ValuationSet) GetUpdated ¶ added in v0.2.0
func (x *ValuationSet) GetUpdated() string
func (*ValuationSet) GetUserDisplayPrice ¶ added in v0.2.0
func (x *ValuationSet) GetUserDisplayPrice() int32
func (*ValuationSet) GetVendor ¶ added in v0.2.0
func (x *ValuationSet) GetVendor() string
func (*ValuationSet) GetZipCode ¶ added in v0.2.0
func (x *ValuationSet) GetZipCode() string
func (*ValuationSet) ProtoMessage ¶ added in v0.2.0
func (*ValuationSet) ProtoMessage()
func (*ValuationSet) ProtoReflect ¶ added in v0.2.0
func (x *ValuationSet) ProtoReflect() protoreflect.Message
func (*ValuationSet) Reset ¶ added in v0.2.0
func (x *ValuationSet) Reset()
func (*ValuationSet) String ¶ added in v0.2.0
func (x *ValuationSet) String() string
type ValuationsServiceClient ¶
type ValuationsServiceClient interface { GetAllValuations(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ValuationResponse, error) GetUserDeviceValuation(ctx context.Context, in *DeviceValuationRequest, opts ...grpc.CallOption) (*DeviceValuation, error) GetUserDeviceOffer(ctx context.Context, in *DeviceOfferRequest, opts ...grpc.CallOption) (*DeviceOffer, error) GetAllUserDeviceValuation(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ValuationResponse, error) }
ValuationsServiceClient is the client API for ValuationsService 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 NewValuationsServiceClient ¶
func NewValuationsServiceClient(cc grpc.ClientConnInterface) ValuationsServiceClient
type ValuationsServiceServer ¶
type ValuationsServiceServer interface { GetAllValuations(context.Context, *emptypb.Empty) (*ValuationResponse, error) GetUserDeviceValuation(context.Context, *DeviceValuationRequest) (*DeviceValuation, error) GetUserDeviceOffer(context.Context, *DeviceOfferRequest) (*DeviceOffer, error) GetAllUserDeviceValuation(context.Context, *emptypb.Empty) (*ValuationResponse, error) // contains filtered or unexported methods }
ValuationsServiceServer is the server API for ValuationsService service. All implementations must embed UnimplementedValuationsServiceServer for forward compatibility