Documentation ¶
Index ¶
- func RegisterAdServiceServer(s *grpc.Server, srv AdServiceServer)
- func RegisterCartServiceServer(s *grpc.Server, srv CartServiceServer)
- func RegisterCheckoutServiceServer(s *grpc.Server, srv CheckoutServiceServer)
- func RegisterCurrencyServiceServer(s *grpc.Server, srv CurrencyServiceServer)
- func RegisterEmailServiceServer(s *grpc.Server, srv EmailServiceServer)
- func RegisterPaymentServiceServer(s *grpc.Server, srv PaymentServiceServer)
- func RegisterProductCatalogServiceServer(s *grpc.Server, srv ProductCatalogServiceServer)
- func RegisterRecommendationServiceServer(s *grpc.Server, srv RecommendationServiceServer)
- func RegisterReviewServiceServer(s *grpc.Server, srv ReviewServiceServer)
- func RegisterShippingServiceServer(s *grpc.Server, srv ShippingServiceServer)
- type Ad
- func (*Ad) Descriptor() ([]byte, []int)
- func (m *Ad) GetRedirectUrl() string
- func (m *Ad) GetText() string
- func (*Ad) ProtoMessage()
- func (m *Ad) Reset()
- func (m *Ad) String() string
- func (m *Ad) XXX_DiscardUnknown()
- func (m *Ad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ad) XXX_Merge(src proto.Message)
- func (m *Ad) XXX_Size() int
- func (m *Ad) XXX_Unmarshal(b []byte) error
- type AdRequest
- func (*AdRequest) Descriptor() ([]byte, []int)
- func (m *AdRequest) GetContextKeys() []string
- func (*AdRequest) ProtoMessage()
- func (m *AdRequest) Reset()
- func (m *AdRequest) String() string
- func (m *AdRequest) XXX_DiscardUnknown()
- func (m *AdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AdRequest) XXX_Merge(src proto.Message)
- func (m *AdRequest) XXX_Size() int
- func (m *AdRequest) XXX_Unmarshal(b []byte) error
- type AdResponse
- func (*AdResponse) Descriptor() ([]byte, []int)
- func (m *AdResponse) GetAds() []*Ad
- func (*AdResponse) ProtoMessage()
- func (m *AdResponse) Reset()
- func (m *AdResponse) String() string
- func (m *AdResponse) XXX_DiscardUnknown()
- func (m *AdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AdResponse) XXX_Merge(src proto.Message)
- func (m *AdResponse) XXX_Size() int
- func (m *AdResponse) XXX_Unmarshal(b []byte) error
- type AdServiceClient
- type AdServiceServer
- type AddItemRequest
- func (*AddItemRequest) Descriptor() ([]byte, []int)
- func (m *AddItemRequest) GetItem() *CartItem
- func (m *AddItemRequest) GetUserId() string
- func (*AddItemRequest) ProtoMessage()
- func (m *AddItemRequest) Reset()
- func (m *AddItemRequest) String() string
- func (m *AddItemRequest) XXX_DiscardUnknown()
- func (m *AddItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddItemRequest) XXX_Merge(src proto.Message)
- func (m *AddItemRequest) XXX_Size() int
- func (m *AddItemRequest) XXX_Unmarshal(b []byte) error
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetCity() string
- func (m *Address) GetCountry() string
- func (m *Address) GetState() string
- func (m *Address) GetStreetAddress() string
- func (m *Address) GetZipCode() int32
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) String() string
- func (m *Address) XXX_DiscardUnknown()
- func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Address) XXX_Merge(src proto.Message)
- func (m *Address) XXX_Size() int
- func (m *Address) XXX_Unmarshal(b []byte) error
- type Cart
- func (*Cart) Descriptor() ([]byte, []int)
- func (m *Cart) GetItems() []*CartItem
- func (m *Cart) GetUserId() string
- func (*Cart) ProtoMessage()
- func (m *Cart) Reset()
- func (m *Cart) String() string
- func (m *Cart) XXX_DiscardUnknown()
- func (m *Cart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cart) XXX_Merge(src proto.Message)
- func (m *Cart) XXX_Size() int
- func (m *Cart) XXX_Unmarshal(b []byte) error
- type CartItem
- func (*CartItem) Descriptor() ([]byte, []int)
- func (m *CartItem) GetProductId() string
- func (m *CartItem) GetQuantity() int32
- func (*CartItem) ProtoMessage()
- func (m *CartItem) Reset()
- func (m *CartItem) String() string
- func (m *CartItem) XXX_DiscardUnknown()
- func (m *CartItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CartItem) XXX_Merge(src proto.Message)
- func (m *CartItem) XXX_Size() int
- func (m *CartItem) XXX_Unmarshal(b []byte) error
- type CartServiceClient
- type CartServiceServer
- type ChargeRequest
- func (*ChargeRequest) Descriptor() ([]byte, []int)
- func (m *ChargeRequest) GetAmount() *Money
- func (m *ChargeRequest) GetCreditCard() *CreditCardInfo
- func (*ChargeRequest) ProtoMessage()
- func (m *ChargeRequest) Reset()
- func (m *ChargeRequest) String() string
- func (m *ChargeRequest) XXX_DiscardUnknown()
- func (m *ChargeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChargeRequest) XXX_Merge(src proto.Message)
- func (m *ChargeRequest) XXX_Size() int
- func (m *ChargeRequest) XXX_Unmarshal(b []byte) error
- type ChargeResponse
- func (*ChargeResponse) Descriptor() ([]byte, []int)
- func (m *ChargeResponse) GetTransactionId() string
- func (*ChargeResponse) ProtoMessage()
- func (m *ChargeResponse) Reset()
- func (m *ChargeResponse) String() string
- func (m *ChargeResponse) XXX_DiscardUnknown()
- func (m *ChargeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChargeResponse) XXX_Merge(src proto.Message)
- func (m *ChargeResponse) XXX_Size() int
- func (m *ChargeResponse) XXX_Unmarshal(b []byte) error
- type CheckoutServiceClient
- type CheckoutServiceServer
- type CreditCardInfo
- func (*CreditCardInfo) Descriptor() ([]byte, []int)
- func (m *CreditCardInfo) GetCreditCardCvv() int32
- func (m *CreditCardInfo) GetCreditCardExpirationMonth() int32
- func (m *CreditCardInfo) GetCreditCardExpirationYear() int32
- func (m *CreditCardInfo) GetCreditCardNumber() string
- func (*CreditCardInfo) ProtoMessage()
- func (m *CreditCardInfo) Reset()
- func (m *CreditCardInfo) String() string
- func (m *CreditCardInfo) XXX_DiscardUnknown()
- func (m *CreditCardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreditCardInfo) XXX_Merge(src proto.Message)
- func (m *CreditCardInfo) XXX_Size() int
- func (m *CreditCardInfo) XXX_Unmarshal(b []byte) error
- type CurrencyConversionRequest
- func (*CurrencyConversionRequest) Descriptor() ([]byte, []int)
- func (m *CurrencyConversionRequest) GetFrom() *Money
- func (m *CurrencyConversionRequest) GetToCode() string
- func (*CurrencyConversionRequest) ProtoMessage()
- func (m *CurrencyConversionRequest) Reset()
- func (m *CurrencyConversionRequest) String() string
- func (m *CurrencyConversionRequest) XXX_DiscardUnknown()
- func (m *CurrencyConversionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrencyConversionRequest) XXX_Merge(src proto.Message)
- func (m *CurrencyConversionRequest) XXX_Size() int
- func (m *CurrencyConversionRequest) XXX_Unmarshal(b []byte) error
- type CurrencyServiceClient
- type CurrencyServiceServer
- type EmailServiceClient
- type EmailServiceServer
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type EmptyCartRequest
- func (*EmptyCartRequest) Descriptor() ([]byte, []int)
- func (m *EmptyCartRequest) GetUserId() string
- func (*EmptyCartRequest) ProtoMessage()
- func (m *EmptyCartRequest) Reset()
- func (m *EmptyCartRequest) String() string
- func (m *EmptyCartRequest) XXX_DiscardUnknown()
- func (m *EmptyCartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EmptyCartRequest) XXX_Merge(src proto.Message)
- func (m *EmptyCartRequest) XXX_Size() int
- func (m *EmptyCartRequest) XXX_Unmarshal(b []byte) error
- type GetCartRequest
- func (*GetCartRequest) Descriptor() ([]byte, []int)
- func (m *GetCartRequest) GetUserId() string
- func (*GetCartRequest) ProtoMessage()
- func (m *GetCartRequest) Reset()
- func (m *GetCartRequest) String() string
- func (m *GetCartRequest) XXX_DiscardUnknown()
- func (m *GetCartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCartRequest) XXX_Merge(src proto.Message)
- func (m *GetCartRequest) XXX_Size() int
- func (m *GetCartRequest) XXX_Unmarshal(b []byte) error
- type GetProductRequest
- func (*GetProductRequest) Descriptor() ([]byte, []int)
- func (m *GetProductRequest) GetId() string
- func (*GetProductRequest) ProtoMessage()
- func (m *GetProductRequest) Reset()
- func (m *GetProductRequest) String() string
- func (m *GetProductRequest) XXX_DiscardUnknown()
- func (m *GetProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetProductRequest) XXX_Merge(src proto.Message)
- func (m *GetProductRequest) XXX_Size() int
- func (m *GetProductRequest) XXX_Unmarshal(b []byte) error
- type GetQuoteRequest
- func (*GetQuoteRequest) Descriptor() ([]byte, []int)
- func (m *GetQuoteRequest) GetAddress() *Address
- func (m *GetQuoteRequest) GetItems() []*CartItem
- func (*GetQuoteRequest) ProtoMessage()
- func (m *GetQuoteRequest) Reset()
- func (m *GetQuoteRequest) String() string
- func (m *GetQuoteRequest) XXX_DiscardUnknown()
- func (m *GetQuoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetQuoteRequest) XXX_Merge(src proto.Message)
- func (m *GetQuoteRequest) XXX_Size() int
- func (m *GetQuoteRequest) XXX_Unmarshal(b []byte) error
- type GetQuoteResponse
- func (*GetQuoteResponse) Descriptor() ([]byte, []int)
- func (m *GetQuoteResponse) GetCostUsd() *Money
- func (*GetQuoteResponse) ProtoMessage()
- func (m *GetQuoteResponse) Reset()
- func (m *GetQuoteResponse) String() string
- func (m *GetQuoteResponse) XXX_DiscardUnknown()
- func (m *GetQuoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetQuoteResponse) XXX_Merge(src proto.Message)
- func (m *GetQuoteResponse) XXX_Size() int
- func (m *GetQuoteResponse) XXX_Unmarshal(b []byte) error
- type GetSupportedCurrenciesResponse
- func (*GetSupportedCurrenciesResponse) Descriptor() ([]byte, []int)
- func (m *GetSupportedCurrenciesResponse) GetCurrencyCodes() []string
- func (*GetSupportedCurrenciesResponse) ProtoMessage()
- func (m *GetSupportedCurrenciesResponse) Reset()
- func (m *GetSupportedCurrenciesResponse) String() string
- func (m *GetSupportedCurrenciesResponse) XXX_DiscardUnknown()
- func (m *GetSupportedCurrenciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSupportedCurrenciesResponse) XXX_Merge(src proto.Message)
- func (m *GetSupportedCurrenciesResponse) XXX_Size() int
- func (m *GetSupportedCurrenciesResponse) XXX_Unmarshal(b []byte) error
- type ListProductsResponse
- func (*ListProductsResponse) Descriptor() ([]byte, []int)
- func (m *ListProductsResponse) GetProducts() []*Product
- func (*ListProductsResponse) ProtoMessage()
- func (m *ListProductsResponse) Reset()
- func (m *ListProductsResponse) String() string
- func (m *ListProductsResponse) XXX_DiscardUnknown()
- func (m *ListProductsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListProductsResponse) XXX_Merge(src proto.Message)
- func (m *ListProductsResponse) XXX_Size() int
- func (m *ListProductsResponse) XXX_Unmarshal(b []byte) error
- type ListRecommendationsRequest
- func (*ListRecommendationsRequest) Descriptor() ([]byte, []int)
- func (m *ListRecommendationsRequest) GetProductIds() []string
- func (m *ListRecommendationsRequest) GetUserId() string
- func (*ListRecommendationsRequest) ProtoMessage()
- func (m *ListRecommendationsRequest) Reset()
- func (m *ListRecommendationsRequest) String() string
- func (m *ListRecommendationsRequest) XXX_DiscardUnknown()
- func (m *ListRecommendationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRecommendationsRequest) XXX_Merge(src proto.Message)
- func (m *ListRecommendationsRequest) XXX_Size() int
- func (m *ListRecommendationsRequest) XXX_Unmarshal(b []byte) error
- type ListRecommendationsResponse
- func (*ListRecommendationsResponse) Descriptor() ([]byte, []int)
- func (m *ListRecommendationsResponse) GetProductIds() []string
- func (*ListRecommendationsResponse) ProtoMessage()
- func (m *ListRecommendationsResponse) Reset()
- func (m *ListRecommendationsResponse) String() string
- func (m *ListRecommendationsResponse) XXX_DiscardUnknown()
- func (m *ListRecommendationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRecommendationsResponse) XXX_Merge(src proto.Message)
- func (m *ListRecommendationsResponse) XXX_Size() int
- func (m *ListRecommendationsResponse) XXX_Unmarshal(b []byte) error
- type Money
- func (*Money) Descriptor() ([]byte, []int)
- func (m *Money) GetCurrencyCode() string
- func (m *Money) GetNanos() int32
- func (m *Money) GetUnits() int64
- func (*Money) ProtoMessage()
- func (m *Money) Reset()
- func (m *Money) String() string
- func (m *Money) XXX_DiscardUnknown()
- func (m *Money) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Money) XXX_Merge(src proto.Message)
- func (m *Money) XXX_Size() int
- func (m *Money) XXX_Unmarshal(b []byte) error
- type OrderItem
- func (*OrderItem) Descriptor() ([]byte, []int)
- func (m *OrderItem) GetCost() *Money
- func (m *OrderItem) GetItem() *CartItem
- func (*OrderItem) ProtoMessage()
- func (m *OrderItem) Reset()
- func (m *OrderItem) String() string
- func (m *OrderItem) XXX_DiscardUnknown()
- func (m *OrderItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderItem) XXX_Merge(src proto.Message)
- func (m *OrderItem) XXX_Size() int
- func (m *OrderItem) XXX_Unmarshal(b []byte) error
- type OrderResult
- func (*OrderResult) Descriptor() ([]byte, []int)
- func (m *OrderResult) GetItems() []*OrderItem
- func (m *OrderResult) GetOrderId() string
- func (m *OrderResult) GetShippingAddress() *Address
- func (m *OrderResult) GetShippingCost() *Money
- func (m *OrderResult) GetShippingTrackingId() string
- func (*OrderResult) ProtoMessage()
- func (m *OrderResult) Reset()
- func (m *OrderResult) String() string
- func (m *OrderResult) XXX_DiscardUnknown()
- func (m *OrderResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderResult) XXX_Merge(src proto.Message)
- func (m *OrderResult) XXX_Size() int
- func (m *OrderResult) XXX_Unmarshal(b []byte) error
- type PaymentServiceClient
- type PaymentServiceServer
- type PlaceOrderRequest
- func (*PlaceOrderRequest) Descriptor() ([]byte, []int)
- func (m *PlaceOrderRequest) GetAddress() *Address
- func (m *PlaceOrderRequest) GetCreditCard() *CreditCardInfo
- func (m *PlaceOrderRequest) GetEmail() string
- func (m *PlaceOrderRequest) GetUserCurrency() string
- func (m *PlaceOrderRequest) GetUserId() string
- func (*PlaceOrderRequest) ProtoMessage()
- func (m *PlaceOrderRequest) Reset()
- func (m *PlaceOrderRequest) String() string
- func (m *PlaceOrderRequest) XXX_DiscardUnknown()
- func (m *PlaceOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlaceOrderRequest) XXX_Merge(src proto.Message)
- func (m *PlaceOrderRequest) XXX_Size() int
- func (m *PlaceOrderRequest) XXX_Unmarshal(b []byte) error
- type PlaceOrderResponse
- func (*PlaceOrderResponse) Descriptor() ([]byte, []int)
- func (m *PlaceOrderResponse) GetOrder() *OrderResult
- func (*PlaceOrderResponse) ProtoMessage()
- func (m *PlaceOrderResponse) Reset()
- func (m *PlaceOrderResponse) String() string
- func (m *PlaceOrderResponse) XXX_DiscardUnknown()
- func (m *PlaceOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlaceOrderResponse) XXX_Merge(src proto.Message)
- func (m *PlaceOrderResponse) XXX_Size() int
- func (m *PlaceOrderResponse) XXX_Unmarshal(b []byte) error
- type Product
- func (*Product) Descriptor() ([]byte, []int)
- func (m *Product) GetCategories() []string
- func (m *Product) GetDescription() string
- func (m *Product) GetId() string
- func (m *Product) GetName() string
- func (m *Product) GetPicture() string
- func (m *Product) GetPriceUsd() *Money
- func (*Product) ProtoMessage()
- func (m *Product) Reset()
- func (m *Product) String() string
- func (m *Product) XXX_DiscardUnknown()
- func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Product) XXX_Merge(src proto.Message)
- func (m *Product) XXX_Size() int
- func (m *Product) XXX_Unmarshal(b []byte) error
- type ProductCatalogServiceClient
- type ProductCatalogServiceServer
- type RecommendationServiceClient
- type RecommendationServiceServer
- type Review
- func (*Review) Descriptor() ([]byte, []int)
- func (m *Review) GetRedirectUrl() string
- func (m *Review) GetText() string
- func (*Review) ProtoMessage()
- func (m *Review) Reset()
- func (m *Review) String() string
- func (m *Review) XXX_DiscardUnknown()
- func (m *Review) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Review) XXX_Merge(src proto.Message)
- func (m *Review) XXX_Size() int
- func (m *Review) XXX_Unmarshal(b []byte) error
- type ReviewRequest
- func (*ReviewRequest) Descriptor() ([]byte, []int)
- func (m *ReviewRequest) GetContextKeys() []string
- func (*ReviewRequest) ProtoMessage()
- func (m *ReviewRequest) Reset()
- func (m *ReviewRequest) String() string
- func (m *ReviewRequest) XXX_DiscardUnknown()
- func (m *ReviewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReviewRequest) XXX_Merge(src proto.Message)
- func (m *ReviewRequest) XXX_Size() int
- func (m *ReviewRequest) XXX_Unmarshal(b []byte) error
- type ReviewResponse
- func (*ReviewResponse) Descriptor() ([]byte, []int)
- func (m *ReviewResponse) GetReviews() []*Review
- func (*ReviewResponse) ProtoMessage()
- func (m *ReviewResponse) Reset()
- func (m *ReviewResponse) String() string
- func (m *ReviewResponse) XXX_DiscardUnknown()
- func (m *ReviewResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReviewResponse) XXX_Merge(src proto.Message)
- func (m *ReviewResponse) XXX_Size() int
- func (m *ReviewResponse) XXX_Unmarshal(b []byte) error
- type ReviewServiceClient
- type ReviewServiceServer
- type SearchProductsRequest
- func (*SearchProductsRequest) Descriptor() ([]byte, []int)
- func (m *SearchProductsRequest) GetQuery() string
- func (*SearchProductsRequest) ProtoMessage()
- func (m *SearchProductsRequest) Reset()
- func (m *SearchProductsRequest) String() string
- func (m *SearchProductsRequest) XXX_DiscardUnknown()
- func (m *SearchProductsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchProductsRequest) XXX_Merge(src proto.Message)
- func (m *SearchProductsRequest) XXX_Size() int
- func (m *SearchProductsRequest) XXX_Unmarshal(b []byte) error
- type SearchProductsResponse
- func (*SearchProductsResponse) Descriptor() ([]byte, []int)
- func (m *SearchProductsResponse) GetResults() []*Product
- func (*SearchProductsResponse) ProtoMessage()
- func (m *SearchProductsResponse) Reset()
- func (m *SearchProductsResponse) String() string
- func (m *SearchProductsResponse) XXX_DiscardUnknown()
- func (m *SearchProductsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchProductsResponse) XXX_Merge(src proto.Message)
- func (m *SearchProductsResponse) XXX_Size() int
- func (m *SearchProductsResponse) XXX_Unmarshal(b []byte) error
- type SendOrderConfirmationRequest
- func (*SendOrderConfirmationRequest) Descriptor() ([]byte, []int)
- func (m *SendOrderConfirmationRequest) GetEmail() string
- func (m *SendOrderConfirmationRequest) GetOrder() *OrderResult
- func (*SendOrderConfirmationRequest) ProtoMessage()
- func (m *SendOrderConfirmationRequest) Reset()
- func (m *SendOrderConfirmationRequest) String() string
- func (m *SendOrderConfirmationRequest) XXX_DiscardUnknown()
- func (m *SendOrderConfirmationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SendOrderConfirmationRequest) XXX_Merge(src proto.Message)
- func (m *SendOrderConfirmationRequest) XXX_Size() int
- func (m *SendOrderConfirmationRequest) XXX_Unmarshal(b []byte) error
- type ShipOrderRequest
- func (*ShipOrderRequest) Descriptor() ([]byte, []int)
- func (m *ShipOrderRequest) GetAddress() *Address
- func (m *ShipOrderRequest) GetItems() []*CartItem
- func (*ShipOrderRequest) ProtoMessage()
- func (m *ShipOrderRequest) Reset()
- func (m *ShipOrderRequest) String() string
- func (m *ShipOrderRequest) XXX_DiscardUnknown()
- func (m *ShipOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShipOrderRequest) XXX_Merge(src proto.Message)
- func (m *ShipOrderRequest) XXX_Size() int
- func (m *ShipOrderRequest) XXX_Unmarshal(b []byte) error
- type ShipOrderResponse
- func (*ShipOrderResponse) Descriptor() ([]byte, []int)
- func (m *ShipOrderResponse) GetTrackingId() string
- func (*ShipOrderResponse) ProtoMessage()
- func (m *ShipOrderResponse) Reset()
- func (m *ShipOrderResponse) String() string
- func (m *ShipOrderResponse) XXX_DiscardUnknown()
- func (m *ShipOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ShipOrderResponse) XXX_Merge(src proto.Message)
- func (m *ShipOrderResponse) XXX_Size() int
- func (m *ShipOrderResponse) XXX_Unmarshal(b []byte) error
- type ShippingServiceClient
- type ShippingServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAdServiceServer ¶
func RegisterAdServiceServer(s *grpc.Server, srv AdServiceServer)
func RegisterCartServiceServer ¶
func RegisterCartServiceServer(s *grpc.Server, srv CartServiceServer)
func RegisterCheckoutServiceServer ¶
func RegisterCheckoutServiceServer(s *grpc.Server, srv CheckoutServiceServer)
func RegisterCurrencyServiceServer ¶
func RegisterCurrencyServiceServer(s *grpc.Server, srv CurrencyServiceServer)
func RegisterEmailServiceServer ¶
func RegisterEmailServiceServer(s *grpc.Server, srv EmailServiceServer)
func RegisterPaymentServiceServer ¶
func RegisterPaymentServiceServer(s *grpc.Server, srv PaymentServiceServer)
func RegisterProductCatalogServiceServer ¶
func RegisterProductCatalogServiceServer(s *grpc.Server, srv ProductCatalogServiceServer)
func RegisterRecommendationServiceServer ¶
func RegisterRecommendationServiceServer(s *grpc.Server, srv RecommendationServiceServer)
func RegisterReviewServiceServer ¶
func RegisterReviewServiceServer(s *grpc.Server, srv ReviewServiceServer)
func RegisterShippingServiceServer ¶
func RegisterShippingServiceServer(s *grpc.Server, srv ShippingServiceServer)
Types ¶
type Ad ¶
type Ad struct { // url to redirect to when an ad is clicked. RedirectUrl string `protobuf:"bytes,1,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"` // short advertisement text to display. Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Ad) Descriptor ¶
func (*Ad) GetRedirectUrl ¶
func (*Ad) ProtoMessage ¶
func (*Ad) ProtoMessage()
func (*Ad) XXX_DiscardUnknown ¶
func (m *Ad) XXX_DiscardUnknown()
func (*Ad) XXX_Unmarshal ¶
type AdRequest ¶
type AdRequest struct { // List of important key words from the current page describing the context. ContextKeys []string `protobuf:"bytes,1,rep,name=context_keys,json=contextKeys,proto3" json:"context_keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AdRequest) Descriptor ¶
func (*AdRequest) GetContextKeys ¶
func (*AdRequest) ProtoMessage ¶
func (*AdRequest) ProtoMessage()
func (*AdRequest) XXX_DiscardUnknown ¶
func (m *AdRequest) XXX_DiscardUnknown()
func (*AdRequest) XXX_Marshal ¶
func (*AdRequest) XXX_Unmarshal ¶
type AdResponse ¶
type AdResponse struct { Ads []*Ad `protobuf:"bytes,1,rep,name=ads,proto3" json:"ads,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AdResponse) Descriptor ¶
func (*AdResponse) Descriptor() ([]byte, []int)
func (*AdResponse) GetAds ¶
func (m *AdResponse) GetAds() []*Ad
func (*AdResponse) ProtoMessage ¶
func (*AdResponse) ProtoMessage()
func (*AdResponse) Reset ¶
func (m *AdResponse) Reset()
func (*AdResponse) String ¶
func (m *AdResponse) String() string
func (*AdResponse) XXX_DiscardUnknown ¶
func (m *AdResponse) XXX_DiscardUnknown()
func (*AdResponse) XXX_Marshal ¶
func (m *AdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AdResponse) XXX_Merge ¶
func (m *AdResponse) XXX_Merge(src proto.Message)
func (*AdResponse) XXX_Size ¶
func (m *AdResponse) XXX_Size() int
func (*AdResponse) XXX_Unmarshal ¶
func (m *AdResponse) XXX_Unmarshal(b []byte) error
type AdServiceClient ¶
type AdServiceClient interface {
GetAds(ctx context.Context, in *AdRequest, opts ...grpc.CallOption) (*AdResponse, error)
}
AdServiceClient is the client API for AdService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAdServiceClient ¶
func NewAdServiceClient(cc *grpc.ClientConn) AdServiceClient
type AdServiceServer ¶
type AdServiceServer interface {
GetAds(context.Context, *AdRequest) (*AdResponse, error)
}
AdServiceServer is the server API for AdService service.
type AddItemRequest ¶
type AddItemRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Item *CartItem `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddItemRequest) Descriptor ¶
func (*AddItemRequest) Descriptor() ([]byte, []int)
func (*AddItemRequest) GetItem ¶
func (m *AddItemRequest) GetItem() *CartItem
func (*AddItemRequest) GetUserId ¶
func (m *AddItemRequest) GetUserId() string
func (*AddItemRequest) ProtoMessage ¶
func (*AddItemRequest) ProtoMessage()
func (*AddItemRequest) Reset ¶
func (m *AddItemRequest) Reset()
func (*AddItemRequest) String ¶
func (m *AddItemRequest) String() string
func (*AddItemRequest) XXX_DiscardUnknown ¶
func (m *AddItemRequest) XXX_DiscardUnknown()
func (*AddItemRequest) XXX_Marshal ¶
func (m *AddItemRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddItemRequest) XXX_Merge ¶
func (m *AddItemRequest) XXX_Merge(src proto.Message)
func (*AddItemRequest) XXX_Size ¶
func (m *AddItemRequest) XXX_Size() int
func (*AddItemRequest) XXX_Unmarshal ¶
func (m *AddItemRequest) XXX_Unmarshal(b []byte) error
type Address ¶
type Address struct { StreetAddress string `protobuf:"bytes,1,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"` State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` ZipCode int32 `protobuf:"varint,5,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Address) Descriptor ¶
func (*Address) GetCountry ¶
func (*Address) GetStreetAddress ¶
func (*Address) GetZipCode ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) XXX_DiscardUnknown ¶
func (m *Address) XXX_DiscardUnknown()
func (*Address) XXX_Marshal ¶
func (*Address) XXX_Unmarshal ¶
type Cart ¶
type Cart struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Items []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Cart) Descriptor ¶
func (*Cart) ProtoMessage ¶
func (*Cart) ProtoMessage()
func (*Cart) XXX_DiscardUnknown ¶
func (m *Cart) XXX_DiscardUnknown()
func (*Cart) XXX_Unmarshal ¶
type CartItem ¶
type CartItem struct { ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` Quantity int32 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CartItem) Descriptor ¶
func (*CartItem) GetProductId ¶
func (*CartItem) GetQuantity ¶
func (*CartItem) ProtoMessage ¶
func (*CartItem) ProtoMessage()
func (*CartItem) XXX_DiscardUnknown ¶
func (m *CartItem) XXX_DiscardUnknown()
func (*CartItem) XXX_Marshal ¶
func (*CartItem) XXX_Unmarshal ¶
type CartServiceClient ¶
type CartServiceClient interface { AddItem(ctx context.Context, in *AddItemRequest, opts ...grpc.CallOption) (*Empty, error) GetCart(ctx context.Context, in *GetCartRequest, opts ...grpc.CallOption) (*Cart, error) EmptyCart(ctx context.Context, in *EmptyCartRequest, opts ...grpc.CallOption) (*Empty, error) }
CartServiceClient is the client API for CartService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCartServiceClient ¶
func NewCartServiceClient(cc *grpc.ClientConn) CartServiceClient
type CartServiceServer ¶
type CartServiceServer interface { AddItem(context.Context, *AddItemRequest) (*Empty, error) GetCart(context.Context, *GetCartRequest) (*Cart, error) EmptyCart(context.Context, *EmptyCartRequest) (*Empty, error) }
CartServiceServer is the server API for CartService service.
type ChargeRequest ¶
type ChargeRequest struct { Amount *Money `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` CreditCard *CreditCardInfo `protobuf:"bytes,2,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChargeRequest) Descriptor ¶
func (*ChargeRequest) Descriptor() ([]byte, []int)
func (*ChargeRequest) GetAmount ¶
func (m *ChargeRequest) GetAmount() *Money
func (*ChargeRequest) GetCreditCard ¶
func (m *ChargeRequest) GetCreditCard() *CreditCardInfo
func (*ChargeRequest) ProtoMessage ¶
func (*ChargeRequest) ProtoMessage()
func (*ChargeRequest) Reset ¶
func (m *ChargeRequest) Reset()
func (*ChargeRequest) String ¶
func (m *ChargeRequest) String() string
func (*ChargeRequest) XXX_DiscardUnknown ¶
func (m *ChargeRequest) XXX_DiscardUnknown()
func (*ChargeRequest) XXX_Marshal ¶
func (m *ChargeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChargeRequest) XXX_Merge ¶
func (m *ChargeRequest) XXX_Merge(src proto.Message)
func (*ChargeRequest) XXX_Size ¶
func (m *ChargeRequest) XXX_Size() int
func (*ChargeRequest) XXX_Unmarshal ¶
func (m *ChargeRequest) XXX_Unmarshal(b []byte) error
type ChargeResponse ¶
type ChargeResponse struct { TransactionId string `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChargeResponse) Descriptor ¶
func (*ChargeResponse) Descriptor() ([]byte, []int)
func (*ChargeResponse) GetTransactionId ¶
func (m *ChargeResponse) GetTransactionId() string
func (*ChargeResponse) ProtoMessage ¶
func (*ChargeResponse) ProtoMessage()
func (*ChargeResponse) Reset ¶
func (m *ChargeResponse) Reset()
func (*ChargeResponse) String ¶
func (m *ChargeResponse) String() string
func (*ChargeResponse) XXX_DiscardUnknown ¶
func (m *ChargeResponse) XXX_DiscardUnknown()
func (*ChargeResponse) XXX_Marshal ¶
func (m *ChargeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChargeResponse) XXX_Merge ¶
func (m *ChargeResponse) XXX_Merge(src proto.Message)
func (*ChargeResponse) XXX_Size ¶
func (m *ChargeResponse) XXX_Size() int
func (*ChargeResponse) XXX_Unmarshal ¶
func (m *ChargeResponse) XXX_Unmarshal(b []byte) error
type CheckoutServiceClient ¶
type CheckoutServiceClient interface {
PlaceOrder(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*PlaceOrderResponse, error)
}
CheckoutServiceClient is the client API for CheckoutService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCheckoutServiceClient ¶
func NewCheckoutServiceClient(cc *grpc.ClientConn) CheckoutServiceClient
type CheckoutServiceServer ¶
type CheckoutServiceServer interface {
PlaceOrder(context.Context, *PlaceOrderRequest) (*PlaceOrderResponse, error)
}
CheckoutServiceServer is the server API for CheckoutService service.
type CreditCardInfo ¶
type CreditCardInfo struct { CreditCardNumber string `protobuf:"bytes,1,opt,name=credit_card_number,json=creditCardNumber,proto3" json:"credit_card_number,omitempty"` CreditCardCvv int32 `protobuf:"varint,2,opt,name=credit_card_cvv,json=creditCardCvv,proto3" json:"credit_card_cvv,omitempty"` CreditCardExpirationYear int32 `` /* 138-byte string literal not displayed */ CreditCardExpirationMonth int32 `` /* 141-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreditCardInfo) Descriptor ¶
func (*CreditCardInfo) Descriptor() ([]byte, []int)
func (*CreditCardInfo) GetCreditCardCvv ¶
func (m *CreditCardInfo) GetCreditCardCvv() int32
func (*CreditCardInfo) GetCreditCardExpirationMonth ¶
func (m *CreditCardInfo) GetCreditCardExpirationMonth() int32
func (*CreditCardInfo) GetCreditCardExpirationYear ¶
func (m *CreditCardInfo) GetCreditCardExpirationYear() int32
func (*CreditCardInfo) GetCreditCardNumber ¶
func (m *CreditCardInfo) GetCreditCardNumber() string
func (*CreditCardInfo) ProtoMessage ¶
func (*CreditCardInfo) ProtoMessage()
func (*CreditCardInfo) Reset ¶
func (m *CreditCardInfo) Reset()
func (*CreditCardInfo) String ¶
func (m *CreditCardInfo) String() string
func (*CreditCardInfo) XXX_DiscardUnknown ¶
func (m *CreditCardInfo) XXX_DiscardUnknown()
func (*CreditCardInfo) XXX_Marshal ¶
func (m *CreditCardInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreditCardInfo) XXX_Merge ¶
func (m *CreditCardInfo) XXX_Merge(src proto.Message)
func (*CreditCardInfo) XXX_Size ¶
func (m *CreditCardInfo) XXX_Size() int
func (*CreditCardInfo) XXX_Unmarshal ¶
func (m *CreditCardInfo) XXX_Unmarshal(b []byte) error
type CurrencyConversionRequest ¶
type CurrencyConversionRequest struct { From *Money `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` // The 3-letter currency code defined in ISO 4217. ToCode string `protobuf:"bytes,2,opt,name=to_code,json=toCode,proto3" json:"to_code,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CurrencyConversionRequest) Descriptor ¶
func (*CurrencyConversionRequest) Descriptor() ([]byte, []int)
func (*CurrencyConversionRequest) GetFrom ¶
func (m *CurrencyConversionRequest) GetFrom() *Money
func (*CurrencyConversionRequest) GetToCode ¶
func (m *CurrencyConversionRequest) GetToCode() string
func (*CurrencyConversionRequest) ProtoMessage ¶
func (*CurrencyConversionRequest) ProtoMessage()
func (*CurrencyConversionRequest) Reset ¶
func (m *CurrencyConversionRequest) Reset()
func (*CurrencyConversionRequest) String ¶
func (m *CurrencyConversionRequest) String() string
func (*CurrencyConversionRequest) XXX_DiscardUnknown ¶
func (m *CurrencyConversionRequest) XXX_DiscardUnknown()
func (*CurrencyConversionRequest) XXX_Marshal ¶
func (m *CurrencyConversionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrencyConversionRequest) XXX_Merge ¶
func (m *CurrencyConversionRequest) XXX_Merge(src proto.Message)
func (*CurrencyConversionRequest) XXX_Size ¶
func (m *CurrencyConversionRequest) XXX_Size() int
func (*CurrencyConversionRequest) XXX_Unmarshal ¶
func (m *CurrencyConversionRequest) XXX_Unmarshal(b []byte) error
type CurrencyServiceClient ¶
type CurrencyServiceClient interface { GetSupportedCurrencies(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetSupportedCurrenciesResponse, error) Convert(ctx context.Context, in *CurrencyConversionRequest, opts ...grpc.CallOption) (*Money, error) }
CurrencyServiceClient is the client API for CurrencyService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCurrencyServiceClient ¶
func NewCurrencyServiceClient(cc *grpc.ClientConn) CurrencyServiceClient
type CurrencyServiceServer ¶
type CurrencyServiceServer interface { GetSupportedCurrencies(context.Context, *Empty) (*GetSupportedCurrenciesResponse, error) Convert(context.Context, *CurrencyConversionRequest) (*Money, error) }
CurrencyServiceServer is the server API for CurrencyService service.
type EmailServiceClient ¶
type EmailServiceClient interface {
SendOrderConfirmation(ctx context.Context, in *SendOrderConfirmationRequest, opts ...grpc.CallOption) (*Empty, error)
}
EmailServiceClient is the client API for EmailService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEmailServiceClient ¶
func NewEmailServiceClient(cc *grpc.ClientConn) EmailServiceClient
type EmailServiceServer ¶
type EmailServiceServer interface {
SendOrderConfirmation(context.Context, *SendOrderConfirmationRequest) (*Empty, error)
}
EmailServiceServer is the server API for EmailService service.
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type EmptyCartRequest ¶
type EmptyCartRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EmptyCartRequest) Descriptor ¶
func (*EmptyCartRequest) Descriptor() ([]byte, []int)
func (*EmptyCartRequest) GetUserId ¶
func (m *EmptyCartRequest) GetUserId() string
func (*EmptyCartRequest) ProtoMessage ¶
func (*EmptyCartRequest) ProtoMessage()
func (*EmptyCartRequest) Reset ¶
func (m *EmptyCartRequest) Reset()
func (*EmptyCartRequest) String ¶
func (m *EmptyCartRequest) String() string
func (*EmptyCartRequest) XXX_DiscardUnknown ¶
func (m *EmptyCartRequest) XXX_DiscardUnknown()
func (*EmptyCartRequest) XXX_Marshal ¶
func (m *EmptyCartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EmptyCartRequest) XXX_Merge ¶
func (m *EmptyCartRequest) XXX_Merge(src proto.Message)
func (*EmptyCartRequest) XXX_Size ¶
func (m *EmptyCartRequest) XXX_Size() int
func (*EmptyCartRequest) XXX_Unmarshal ¶
func (m *EmptyCartRequest) XXX_Unmarshal(b []byte) error
type GetCartRequest ¶
type GetCartRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetCartRequest) Descriptor ¶
func (*GetCartRequest) Descriptor() ([]byte, []int)
func (*GetCartRequest) GetUserId ¶
func (m *GetCartRequest) GetUserId() string
func (*GetCartRequest) ProtoMessage ¶
func (*GetCartRequest) ProtoMessage()
func (*GetCartRequest) Reset ¶
func (m *GetCartRequest) Reset()
func (*GetCartRequest) String ¶
func (m *GetCartRequest) String() string
func (*GetCartRequest) XXX_DiscardUnknown ¶
func (m *GetCartRequest) XXX_DiscardUnknown()
func (*GetCartRequest) XXX_Marshal ¶
func (m *GetCartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCartRequest) XXX_Merge ¶
func (m *GetCartRequest) XXX_Merge(src proto.Message)
func (*GetCartRequest) XXX_Size ¶
func (m *GetCartRequest) XXX_Size() int
func (*GetCartRequest) XXX_Unmarshal ¶
func (m *GetCartRequest) XXX_Unmarshal(b []byte) error
type GetProductRequest ¶
type GetProductRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetProductRequest) Descriptor ¶
func (*GetProductRequest) Descriptor() ([]byte, []int)
func (*GetProductRequest) GetId ¶
func (m *GetProductRequest) GetId() string
func (*GetProductRequest) ProtoMessage ¶
func (*GetProductRequest) ProtoMessage()
func (*GetProductRequest) Reset ¶
func (m *GetProductRequest) Reset()
func (*GetProductRequest) String ¶
func (m *GetProductRequest) String() string
func (*GetProductRequest) XXX_DiscardUnknown ¶
func (m *GetProductRequest) XXX_DiscardUnknown()
func (*GetProductRequest) XXX_Marshal ¶
func (m *GetProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetProductRequest) XXX_Merge ¶
func (m *GetProductRequest) XXX_Merge(src proto.Message)
func (*GetProductRequest) XXX_Size ¶
func (m *GetProductRequest) XXX_Size() int
func (*GetProductRequest) XXX_Unmarshal ¶
func (m *GetProductRequest) XXX_Unmarshal(b []byte) error
type GetQuoteRequest ¶
type GetQuoteRequest struct { Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Items []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetQuoteRequest) Descriptor ¶
func (*GetQuoteRequest) Descriptor() ([]byte, []int)
func (*GetQuoteRequest) GetAddress ¶
func (m *GetQuoteRequest) GetAddress() *Address
func (*GetQuoteRequest) GetItems ¶
func (m *GetQuoteRequest) GetItems() []*CartItem
func (*GetQuoteRequest) ProtoMessage ¶
func (*GetQuoteRequest) ProtoMessage()
func (*GetQuoteRequest) Reset ¶
func (m *GetQuoteRequest) Reset()
func (*GetQuoteRequest) String ¶
func (m *GetQuoteRequest) String() string
func (*GetQuoteRequest) XXX_DiscardUnknown ¶
func (m *GetQuoteRequest) XXX_DiscardUnknown()
func (*GetQuoteRequest) XXX_Marshal ¶
func (m *GetQuoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetQuoteRequest) XXX_Merge ¶
func (m *GetQuoteRequest) XXX_Merge(src proto.Message)
func (*GetQuoteRequest) XXX_Size ¶
func (m *GetQuoteRequest) XXX_Size() int
func (*GetQuoteRequest) XXX_Unmarshal ¶
func (m *GetQuoteRequest) XXX_Unmarshal(b []byte) error
type GetQuoteResponse ¶
type GetQuoteResponse struct { CostUsd *Money `protobuf:"bytes,1,opt,name=cost_usd,json=costUsd,proto3" json:"cost_usd,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetQuoteResponse) Descriptor ¶
func (*GetQuoteResponse) Descriptor() ([]byte, []int)
func (*GetQuoteResponse) GetCostUsd ¶
func (m *GetQuoteResponse) GetCostUsd() *Money
func (*GetQuoteResponse) ProtoMessage ¶
func (*GetQuoteResponse) ProtoMessage()
func (*GetQuoteResponse) Reset ¶
func (m *GetQuoteResponse) Reset()
func (*GetQuoteResponse) String ¶
func (m *GetQuoteResponse) String() string
func (*GetQuoteResponse) XXX_DiscardUnknown ¶
func (m *GetQuoteResponse) XXX_DiscardUnknown()
func (*GetQuoteResponse) XXX_Marshal ¶
func (m *GetQuoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetQuoteResponse) XXX_Merge ¶
func (m *GetQuoteResponse) XXX_Merge(src proto.Message)
func (*GetQuoteResponse) XXX_Size ¶
func (m *GetQuoteResponse) XXX_Size() int
func (*GetQuoteResponse) XXX_Unmarshal ¶
func (m *GetQuoteResponse) XXX_Unmarshal(b []byte) error
type GetSupportedCurrenciesResponse ¶
type GetSupportedCurrenciesResponse struct { // The 3-letter currency code defined in ISO 4217. CurrencyCodes []string `protobuf:"bytes,1,rep,name=currency_codes,json=currencyCodes,proto3" json:"currency_codes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetSupportedCurrenciesResponse) Descriptor ¶
func (*GetSupportedCurrenciesResponse) Descriptor() ([]byte, []int)
func (*GetSupportedCurrenciesResponse) GetCurrencyCodes ¶
func (m *GetSupportedCurrenciesResponse) GetCurrencyCodes() []string
func (*GetSupportedCurrenciesResponse) ProtoMessage ¶
func (*GetSupportedCurrenciesResponse) ProtoMessage()
func (*GetSupportedCurrenciesResponse) Reset ¶
func (m *GetSupportedCurrenciesResponse) Reset()
func (*GetSupportedCurrenciesResponse) String ¶
func (m *GetSupportedCurrenciesResponse) String() string
func (*GetSupportedCurrenciesResponse) XXX_DiscardUnknown ¶
func (m *GetSupportedCurrenciesResponse) XXX_DiscardUnknown()
func (*GetSupportedCurrenciesResponse) XXX_Marshal ¶
func (m *GetSupportedCurrenciesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSupportedCurrenciesResponse) XXX_Merge ¶
func (m *GetSupportedCurrenciesResponse) XXX_Merge(src proto.Message)
func (*GetSupportedCurrenciesResponse) XXX_Size ¶
func (m *GetSupportedCurrenciesResponse) XXX_Size() int
func (*GetSupportedCurrenciesResponse) XXX_Unmarshal ¶
func (m *GetSupportedCurrenciesResponse) XXX_Unmarshal(b []byte) error
type ListProductsResponse ¶
type ListProductsResponse struct { Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListProductsResponse) Descriptor ¶
func (*ListProductsResponse) Descriptor() ([]byte, []int)
func (*ListProductsResponse) GetProducts ¶
func (m *ListProductsResponse) GetProducts() []*Product
func (*ListProductsResponse) ProtoMessage ¶
func (*ListProductsResponse) ProtoMessage()
func (*ListProductsResponse) Reset ¶
func (m *ListProductsResponse) Reset()
func (*ListProductsResponse) String ¶
func (m *ListProductsResponse) String() string
func (*ListProductsResponse) XXX_DiscardUnknown ¶
func (m *ListProductsResponse) XXX_DiscardUnknown()
func (*ListProductsResponse) XXX_Marshal ¶
func (m *ListProductsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListProductsResponse) XXX_Merge ¶
func (m *ListProductsResponse) XXX_Merge(src proto.Message)
func (*ListProductsResponse) XXX_Size ¶
func (m *ListProductsResponse) XXX_Size() int
func (*ListProductsResponse) XXX_Unmarshal ¶
func (m *ListProductsResponse) XXX_Unmarshal(b []byte) error
type ListRecommendationsRequest ¶
type ListRecommendationsRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ProductIds []string `protobuf:"bytes,2,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListRecommendationsRequest) Descriptor ¶
func (*ListRecommendationsRequest) Descriptor() ([]byte, []int)
func (*ListRecommendationsRequest) GetProductIds ¶
func (m *ListRecommendationsRequest) GetProductIds() []string
func (*ListRecommendationsRequest) GetUserId ¶
func (m *ListRecommendationsRequest) GetUserId() string
func (*ListRecommendationsRequest) ProtoMessage ¶
func (*ListRecommendationsRequest) ProtoMessage()
func (*ListRecommendationsRequest) Reset ¶
func (m *ListRecommendationsRequest) Reset()
func (*ListRecommendationsRequest) String ¶
func (m *ListRecommendationsRequest) String() string
func (*ListRecommendationsRequest) XXX_DiscardUnknown ¶
func (m *ListRecommendationsRequest) XXX_DiscardUnknown()
func (*ListRecommendationsRequest) XXX_Marshal ¶
func (m *ListRecommendationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRecommendationsRequest) XXX_Merge ¶
func (m *ListRecommendationsRequest) XXX_Merge(src proto.Message)
func (*ListRecommendationsRequest) XXX_Size ¶
func (m *ListRecommendationsRequest) XXX_Size() int
func (*ListRecommendationsRequest) XXX_Unmarshal ¶
func (m *ListRecommendationsRequest) XXX_Unmarshal(b []byte) error
type ListRecommendationsResponse ¶
type ListRecommendationsResponse struct { ProductIds []string `protobuf:"bytes,1,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListRecommendationsResponse) Descriptor ¶
func (*ListRecommendationsResponse) Descriptor() ([]byte, []int)
func (*ListRecommendationsResponse) GetProductIds ¶
func (m *ListRecommendationsResponse) GetProductIds() []string
func (*ListRecommendationsResponse) ProtoMessage ¶
func (*ListRecommendationsResponse) ProtoMessage()
func (*ListRecommendationsResponse) Reset ¶
func (m *ListRecommendationsResponse) Reset()
func (*ListRecommendationsResponse) String ¶
func (m *ListRecommendationsResponse) String() string
func (*ListRecommendationsResponse) XXX_DiscardUnknown ¶
func (m *ListRecommendationsResponse) XXX_DiscardUnknown()
func (*ListRecommendationsResponse) XXX_Marshal ¶
func (m *ListRecommendationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRecommendationsResponse) XXX_Merge ¶
func (m *ListRecommendationsResponse) XXX_Merge(src proto.Message)
func (*ListRecommendationsResponse) XXX_Size ¶
func (m *ListRecommendationsResponse) XXX_Size() int
func (*ListRecommendationsResponse) XXX_Unmarshal ¶
func (m *ListRecommendationsResponse) XXX_Unmarshal(b []byte) error
type Money ¶
type Money struct { // The 3-letter currency code defined in ISO 4217. CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"` // The whole units of the amount. // For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. Units int64 `protobuf:"varint,2,opt,name=units,proto3" json:"units,omitempty"` // Number of nano (10^-9) units of the amount. // The value must be between -999,999,999 and +999,999,999 inclusive. // If `units` is positive, `nanos` must be positive or zero. // If `units` is zero, `nanos` can be positive, zero, or negative. // If `units` is negative, `nanos` must be negative or zero. // For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. Nanos int32 `protobuf:"varint,3,opt,name=nanos,proto3" json:"nanos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Represents an amount of money with its currency type.
func (*Money) Descriptor ¶
func (*Money) GetCurrencyCode ¶
func (*Money) ProtoMessage ¶
func (*Money) ProtoMessage()
func (*Money) XXX_DiscardUnknown ¶
func (m *Money) XXX_DiscardUnknown()
func (*Money) XXX_Marshal ¶
func (*Money) XXX_Unmarshal ¶
type OrderItem ¶
type OrderItem struct { Item *CartItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` Cost *Money `protobuf:"bytes,2,opt,name=cost,proto3" json:"cost,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OrderItem) Descriptor ¶
func (*OrderItem) ProtoMessage ¶
func (*OrderItem) ProtoMessage()
func (*OrderItem) XXX_DiscardUnknown ¶
func (m *OrderItem) XXX_DiscardUnknown()
func (*OrderItem) XXX_Marshal ¶
func (*OrderItem) XXX_Unmarshal ¶
type OrderResult ¶
type OrderResult struct { OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` ShippingTrackingId string `protobuf:"bytes,2,opt,name=shipping_tracking_id,json=shippingTrackingId,proto3" json:"shipping_tracking_id,omitempty"` ShippingCost *Money `protobuf:"bytes,3,opt,name=shipping_cost,json=shippingCost,proto3" json:"shipping_cost,omitempty"` ShippingAddress *Address `protobuf:"bytes,4,opt,name=shipping_address,json=shippingAddress,proto3" json:"shipping_address,omitempty"` Items []*OrderItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OrderResult) Descriptor ¶
func (*OrderResult) Descriptor() ([]byte, []int)
func (*OrderResult) GetItems ¶
func (m *OrderResult) GetItems() []*OrderItem
func (*OrderResult) GetOrderId ¶
func (m *OrderResult) GetOrderId() string
func (*OrderResult) GetShippingAddress ¶
func (m *OrderResult) GetShippingAddress() *Address
func (*OrderResult) GetShippingCost ¶
func (m *OrderResult) GetShippingCost() *Money
func (*OrderResult) GetShippingTrackingId ¶
func (m *OrderResult) GetShippingTrackingId() string
func (*OrderResult) ProtoMessage ¶
func (*OrderResult) ProtoMessage()
func (*OrderResult) Reset ¶
func (m *OrderResult) Reset()
func (*OrderResult) String ¶
func (m *OrderResult) String() string
func (*OrderResult) XXX_DiscardUnknown ¶
func (m *OrderResult) XXX_DiscardUnknown()
func (*OrderResult) XXX_Marshal ¶
func (m *OrderResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderResult) XXX_Merge ¶
func (m *OrderResult) XXX_Merge(src proto.Message)
func (*OrderResult) XXX_Size ¶
func (m *OrderResult) XXX_Size() int
func (*OrderResult) XXX_Unmarshal ¶
func (m *OrderResult) XXX_Unmarshal(b []byte) error
type PaymentServiceClient ¶
type PaymentServiceClient interface {
Charge(ctx context.Context, in *ChargeRequest, opts ...grpc.CallOption) (*ChargeResponse, error)
}
PaymentServiceClient is the client API for PaymentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPaymentServiceClient ¶
func NewPaymentServiceClient(cc *grpc.ClientConn) PaymentServiceClient
type PaymentServiceServer ¶
type PaymentServiceServer interface {
Charge(context.Context, *ChargeRequest) (*ChargeResponse, error)
}
PaymentServiceServer is the server API for PaymentService service.
type PlaceOrderRequest ¶
type PlaceOrderRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` UserCurrency string `protobuf:"bytes,2,opt,name=user_currency,json=userCurrency,proto3" json:"user_currency,omitempty"` Address *Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` CreditCard *CreditCardInfo `protobuf:"bytes,6,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PlaceOrderRequest) Descriptor ¶
func (*PlaceOrderRequest) Descriptor() ([]byte, []int)
func (*PlaceOrderRequest) GetAddress ¶
func (m *PlaceOrderRequest) GetAddress() *Address
func (*PlaceOrderRequest) GetCreditCard ¶
func (m *PlaceOrderRequest) GetCreditCard() *CreditCardInfo
func (*PlaceOrderRequest) GetEmail ¶
func (m *PlaceOrderRequest) GetEmail() string
func (*PlaceOrderRequest) GetUserCurrency ¶
func (m *PlaceOrderRequest) GetUserCurrency() string
func (*PlaceOrderRequest) GetUserId ¶
func (m *PlaceOrderRequest) GetUserId() string
func (*PlaceOrderRequest) ProtoMessage ¶
func (*PlaceOrderRequest) ProtoMessage()
func (*PlaceOrderRequest) Reset ¶
func (m *PlaceOrderRequest) Reset()
func (*PlaceOrderRequest) String ¶
func (m *PlaceOrderRequest) String() string
func (*PlaceOrderRequest) XXX_DiscardUnknown ¶
func (m *PlaceOrderRequest) XXX_DiscardUnknown()
func (*PlaceOrderRequest) XXX_Marshal ¶
func (m *PlaceOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlaceOrderRequest) XXX_Merge ¶
func (m *PlaceOrderRequest) XXX_Merge(src proto.Message)
func (*PlaceOrderRequest) XXX_Size ¶
func (m *PlaceOrderRequest) XXX_Size() int
func (*PlaceOrderRequest) XXX_Unmarshal ¶
func (m *PlaceOrderRequest) XXX_Unmarshal(b []byte) error
type PlaceOrderResponse ¶
type PlaceOrderResponse struct { Order *OrderResult `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PlaceOrderResponse) Descriptor ¶
func (*PlaceOrderResponse) Descriptor() ([]byte, []int)
func (*PlaceOrderResponse) GetOrder ¶
func (m *PlaceOrderResponse) GetOrder() *OrderResult
func (*PlaceOrderResponse) ProtoMessage ¶
func (*PlaceOrderResponse) ProtoMessage()
func (*PlaceOrderResponse) Reset ¶
func (m *PlaceOrderResponse) Reset()
func (*PlaceOrderResponse) String ¶
func (m *PlaceOrderResponse) String() string
func (*PlaceOrderResponse) XXX_DiscardUnknown ¶
func (m *PlaceOrderResponse) XXX_DiscardUnknown()
func (*PlaceOrderResponse) XXX_Marshal ¶
func (m *PlaceOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PlaceOrderResponse) XXX_Merge ¶
func (m *PlaceOrderResponse) XXX_Merge(src proto.Message)
func (*PlaceOrderResponse) XXX_Size ¶
func (m *PlaceOrderResponse) XXX_Size() int
func (*PlaceOrderResponse) XXX_Unmarshal ¶
func (m *PlaceOrderResponse) XXX_Unmarshal(b []byte) error
type Product ¶
type Product struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Picture string `protobuf:"bytes,4,opt,name=picture,proto3" json:"picture,omitempty"` PriceUsd *Money `protobuf:"bytes,5,opt,name=price_usd,json=priceUsd,proto3" json:"price_usd,omitempty"` // Categories such as "clothing" or "kitchen" that can be used to look up // other related products. Categories []string `protobuf:"bytes,6,rep,name=categories,proto3" json:"categories,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Product) Descriptor ¶
func (*Product) GetCategories ¶
func (*Product) GetDescription ¶
func (*Product) GetPicture ¶
func (*Product) GetPriceUsd ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) XXX_DiscardUnknown ¶
func (m *Product) XXX_DiscardUnknown()
func (*Product) XXX_Marshal ¶
func (*Product) XXX_Unmarshal ¶
type ProductCatalogServiceClient ¶
type ProductCatalogServiceClient interface { ListProducts(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ListProductsResponse, error) GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*Product, error) SearchProducts(ctx context.Context, in *SearchProductsRequest, opts ...grpc.CallOption) (*SearchProductsResponse, error) }
ProductCatalogServiceClient is the client API for ProductCatalogService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewProductCatalogServiceClient ¶
func NewProductCatalogServiceClient(cc *grpc.ClientConn) ProductCatalogServiceClient
type ProductCatalogServiceServer ¶
type ProductCatalogServiceServer interface { ListProducts(context.Context, *Empty) (*ListProductsResponse, error) GetProduct(context.Context, *GetProductRequest) (*Product, error) SearchProducts(context.Context, *SearchProductsRequest) (*SearchProductsResponse, error) }
ProductCatalogServiceServer is the server API for ProductCatalogService service.
type RecommendationServiceClient ¶
type RecommendationServiceClient interface {
ListRecommendations(ctx context.Context, in *ListRecommendationsRequest, opts ...grpc.CallOption) (*ListRecommendationsResponse, error)
}
RecommendationServiceClient is the client API for RecommendationService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRecommendationServiceClient ¶
func NewRecommendationServiceClient(cc *grpc.ClientConn) RecommendationServiceClient
type RecommendationServiceServer ¶
type RecommendationServiceServer interface {
ListRecommendations(context.Context, *ListRecommendationsRequest) (*ListRecommendationsResponse, error)
}
RecommendationServiceServer is the server API for RecommendationService service.
type Review ¶
type Review struct { // url to redirect to when an review is clicked. RedirectUrl string `protobuf:"bytes,1,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"` // short reviewvertisement text to display. Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Review) Descriptor ¶
func (*Review) GetRedirectUrl ¶
func (*Review) ProtoMessage ¶
func (*Review) ProtoMessage()
func (*Review) XXX_DiscardUnknown ¶
func (m *Review) XXX_DiscardUnknown()
func (*Review) XXX_Marshal ¶
func (*Review) XXX_Unmarshal ¶
type ReviewRequest ¶
type ReviewRequest struct { // List of important key words from the current page describing the context. ContextKeys []string `protobuf:"bytes,1,rep,name=context_keys,json=contextKeys,proto3" json:"context_keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReviewRequest) Descriptor ¶
func (*ReviewRequest) Descriptor() ([]byte, []int)
func (*ReviewRequest) GetContextKeys ¶
func (m *ReviewRequest) GetContextKeys() []string
func (*ReviewRequest) ProtoMessage ¶
func (*ReviewRequest) ProtoMessage()
func (*ReviewRequest) Reset ¶
func (m *ReviewRequest) Reset()
func (*ReviewRequest) String ¶
func (m *ReviewRequest) String() string
func (*ReviewRequest) XXX_DiscardUnknown ¶
func (m *ReviewRequest) XXX_DiscardUnknown()
func (*ReviewRequest) XXX_Marshal ¶
func (m *ReviewRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReviewRequest) XXX_Merge ¶
func (m *ReviewRequest) XXX_Merge(src proto.Message)
func (*ReviewRequest) XXX_Size ¶
func (m *ReviewRequest) XXX_Size() int
func (*ReviewRequest) XXX_Unmarshal ¶
func (m *ReviewRequest) XXX_Unmarshal(b []byte) error
type ReviewResponse ¶
type ReviewResponse struct { Reviews []*Review `protobuf:"bytes,1,rep,name=reviews,proto3" json:"reviews,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReviewResponse) Descriptor ¶
func (*ReviewResponse) Descriptor() ([]byte, []int)
func (*ReviewResponse) GetReviews ¶
func (m *ReviewResponse) GetReviews() []*Review
func (*ReviewResponse) ProtoMessage ¶
func (*ReviewResponse) ProtoMessage()
func (*ReviewResponse) Reset ¶
func (m *ReviewResponse) Reset()
func (*ReviewResponse) String ¶
func (m *ReviewResponse) String() string
func (*ReviewResponse) XXX_DiscardUnknown ¶
func (m *ReviewResponse) XXX_DiscardUnknown()
func (*ReviewResponse) XXX_Marshal ¶
func (m *ReviewResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReviewResponse) XXX_Merge ¶
func (m *ReviewResponse) XXX_Merge(src proto.Message)
func (*ReviewResponse) XXX_Size ¶
func (m *ReviewResponse) XXX_Size() int
func (*ReviewResponse) XXX_Unmarshal ¶
func (m *ReviewResponse) XXX_Unmarshal(b []byte) error
type ReviewServiceClient ¶
type ReviewServiceClient interface {
GetReviews(ctx context.Context, in *ReviewRequest, opts ...grpc.CallOption) (*ReviewResponse, error)
}
ReviewServiceClient is the client API for ReviewService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewReviewServiceClient ¶
func NewReviewServiceClient(cc *grpc.ClientConn) ReviewServiceClient
type ReviewServiceServer ¶
type ReviewServiceServer interface {
GetReviews(context.Context, *ReviewRequest) (*ReviewResponse, error)
}
ReviewServiceServer is the server API for ReviewService service.
type SearchProductsRequest ¶
type SearchProductsRequest struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchProductsRequest) Descriptor ¶
func (*SearchProductsRequest) Descriptor() ([]byte, []int)
func (*SearchProductsRequest) GetQuery ¶
func (m *SearchProductsRequest) GetQuery() string
func (*SearchProductsRequest) ProtoMessage ¶
func (*SearchProductsRequest) ProtoMessage()
func (*SearchProductsRequest) Reset ¶
func (m *SearchProductsRequest) Reset()
func (*SearchProductsRequest) String ¶
func (m *SearchProductsRequest) String() string
func (*SearchProductsRequest) XXX_DiscardUnknown ¶
func (m *SearchProductsRequest) XXX_DiscardUnknown()
func (*SearchProductsRequest) XXX_Marshal ¶
func (m *SearchProductsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchProductsRequest) XXX_Merge ¶
func (m *SearchProductsRequest) XXX_Merge(src proto.Message)
func (*SearchProductsRequest) XXX_Size ¶
func (m *SearchProductsRequest) XXX_Size() int
func (*SearchProductsRequest) XXX_Unmarshal ¶
func (m *SearchProductsRequest) XXX_Unmarshal(b []byte) error
type SearchProductsResponse ¶
type SearchProductsResponse struct { Results []*Product `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchProductsResponse) Descriptor ¶
func (*SearchProductsResponse) Descriptor() ([]byte, []int)
func (*SearchProductsResponse) GetResults ¶
func (m *SearchProductsResponse) GetResults() []*Product
func (*SearchProductsResponse) ProtoMessage ¶
func (*SearchProductsResponse) ProtoMessage()
func (*SearchProductsResponse) Reset ¶
func (m *SearchProductsResponse) Reset()
func (*SearchProductsResponse) String ¶
func (m *SearchProductsResponse) String() string
func (*SearchProductsResponse) XXX_DiscardUnknown ¶
func (m *SearchProductsResponse) XXX_DiscardUnknown()
func (*SearchProductsResponse) XXX_Marshal ¶
func (m *SearchProductsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchProductsResponse) XXX_Merge ¶
func (m *SearchProductsResponse) XXX_Merge(src proto.Message)
func (*SearchProductsResponse) XXX_Size ¶
func (m *SearchProductsResponse) XXX_Size() int
func (*SearchProductsResponse) XXX_Unmarshal ¶
func (m *SearchProductsResponse) XXX_Unmarshal(b []byte) error
type SendOrderConfirmationRequest ¶
type SendOrderConfirmationRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Order *OrderResult `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendOrderConfirmationRequest) Descriptor ¶
func (*SendOrderConfirmationRequest) Descriptor() ([]byte, []int)
func (*SendOrderConfirmationRequest) GetEmail ¶
func (m *SendOrderConfirmationRequest) GetEmail() string
func (*SendOrderConfirmationRequest) GetOrder ¶
func (m *SendOrderConfirmationRequest) GetOrder() *OrderResult
func (*SendOrderConfirmationRequest) ProtoMessage ¶
func (*SendOrderConfirmationRequest) ProtoMessage()
func (*SendOrderConfirmationRequest) Reset ¶
func (m *SendOrderConfirmationRequest) Reset()
func (*SendOrderConfirmationRequest) String ¶
func (m *SendOrderConfirmationRequest) String() string
func (*SendOrderConfirmationRequest) XXX_DiscardUnknown ¶
func (m *SendOrderConfirmationRequest) XXX_DiscardUnknown()
func (*SendOrderConfirmationRequest) XXX_Marshal ¶
func (m *SendOrderConfirmationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendOrderConfirmationRequest) XXX_Merge ¶
func (m *SendOrderConfirmationRequest) XXX_Merge(src proto.Message)
func (*SendOrderConfirmationRequest) XXX_Size ¶
func (m *SendOrderConfirmationRequest) XXX_Size() int
func (*SendOrderConfirmationRequest) XXX_Unmarshal ¶
func (m *SendOrderConfirmationRequest) XXX_Unmarshal(b []byte) error
type ShipOrderRequest ¶
type ShipOrderRequest struct { Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Items []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ShipOrderRequest) Descriptor ¶
func (*ShipOrderRequest) Descriptor() ([]byte, []int)
func (*ShipOrderRequest) GetAddress ¶
func (m *ShipOrderRequest) GetAddress() *Address
func (*ShipOrderRequest) GetItems ¶
func (m *ShipOrderRequest) GetItems() []*CartItem
func (*ShipOrderRequest) ProtoMessage ¶
func (*ShipOrderRequest) ProtoMessage()
func (*ShipOrderRequest) Reset ¶
func (m *ShipOrderRequest) Reset()
func (*ShipOrderRequest) String ¶
func (m *ShipOrderRequest) String() string
func (*ShipOrderRequest) XXX_DiscardUnknown ¶
func (m *ShipOrderRequest) XXX_DiscardUnknown()
func (*ShipOrderRequest) XXX_Marshal ¶
func (m *ShipOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShipOrderRequest) XXX_Merge ¶
func (m *ShipOrderRequest) XXX_Merge(src proto.Message)
func (*ShipOrderRequest) XXX_Size ¶
func (m *ShipOrderRequest) XXX_Size() int
func (*ShipOrderRequest) XXX_Unmarshal ¶
func (m *ShipOrderRequest) XXX_Unmarshal(b []byte) error
type ShipOrderResponse ¶
type ShipOrderResponse struct { TrackingId string `protobuf:"bytes,1,opt,name=tracking_id,json=trackingId,proto3" json:"tracking_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ShipOrderResponse) Descriptor ¶
func (*ShipOrderResponse) Descriptor() ([]byte, []int)
func (*ShipOrderResponse) GetTrackingId ¶
func (m *ShipOrderResponse) GetTrackingId() string
func (*ShipOrderResponse) ProtoMessage ¶
func (*ShipOrderResponse) ProtoMessage()
func (*ShipOrderResponse) Reset ¶
func (m *ShipOrderResponse) Reset()
func (*ShipOrderResponse) String ¶
func (m *ShipOrderResponse) String() string
func (*ShipOrderResponse) XXX_DiscardUnknown ¶
func (m *ShipOrderResponse) XXX_DiscardUnknown()
func (*ShipOrderResponse) XXX_Marshal ¶
func (m *ShipOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ShipOrderResponse) XXX_Merge ¶
func (m *ShipOrderResponse) XXX_Merge(src proto.Message)
func (*ShipOrderResponse) XXX_Size ¶
func (m *ShipOrderResponse) XXX_Size() int
func (*ShipOrderResponse) XXX_Unmarshal ¶
func (m *ShipOrderResponse) XXX_Unmarshal(b []byte) error
type ShippingServiceClient ¶
type ShippingServiceClient interface { GetQuote(ctx context.Context, in *GetQuoteRequest, opts ...grpc.CallOption) (*GetQuoteResponse, error) ShipOrder(ctx context.Context, in *ShipOrderRequest, opts ...grpc.CallOption) (*ShipOrderResponse, error) }
ShippingServiceClient is the client API for ShippingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewShippingServiceClient ¶
func NewShippingServiceClient(cc *grpc.ClientConn) ShippingServiceClient
type ShippingServiceServer ¶
type ShippingServiceServer interface { GetQuote(context.Context, *GetQuoteRequest) (*GetQuoteResponse, error) ShipOrder(context.Context, *ShipOrderRequest) (*ShipOrderResponse, error) }
ShippingServiceServer is the server API for ShippingService service.