Documentation
¶
Index ¶
- Variables
- 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 RegisterShippingServiceServer(s *grpc.Server, srv ShippingServiceServer)
- type Ad
- func (*Ad) Descriptor() ([]byte, []int)
- func (this *Ad) Equal(that interface{}) bool
- func (m *Ad) GetRedirectUrl() string
- func (m *Ad) GetText() string
- func (this *Ad) GoString() string
- func (m *Ad) Marshal() (dAtA []byte, err error)
- func (m *Ad) MarshalTo(dAtA []byte) (int, error)
- func (m *Ad) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Ad) ProtoMessage()
- func (m *Ad) Reset()
- func (m *Ad) Size() (n int)
- func (this *Ad) String() string
- func (m *Ad) Unmarshal(dAtA []byte) error
- 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 (this *AdRequest) Equal(that interface{}) bool
- func (m *AdRequest) GetContextKeys() []string
- func (this *AdRequest) GoString() string
- func (m *AdRequest) Marshal() (dAtA []byte, err error)
- func (m *AdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *AdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AdRequest) ProtoMessage()
- func (m *AdRequest) Reset()
- func (m *AdRequest) Size() (n int)
- func (this *AdRequest) String() string
- func (m *AdRequest) Unmarshal(dAtA []byte) error
- 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 (this *AdResponse) Equal(that interface{}) bool
- func (m *AdResponse) GetAds() []*Ad
- func (this *AdResponse) GoString() string
- func (m *AdResponse) Marshal() (dAtA []byte, err error)
- func (m *AdResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *AdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AdResponse) ProtoMessage()
- func (m *AdResponse) Reset()
- func (m *AdResponse) Size() (n int)
- func (this *AdResponse) String() string
- func (m *AdResponse) Unmarshal(dAtA []byte) error
- 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 (this *AddItemRequest) Equal(that interface{}) bool
- func (m *AddItemRequest) GetItem() *CartItem
- func (m *AddItemRequest) GetUserId() string
- func (this *AddItemRequest) GoString() string
- func (m *AddItemRequest) Marshal() (dAtA []byte, err error)
- func (m *AddItemRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *AddItemRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AddItemRequest) ProtoMessage()
- func (m *AddItemRequest) Reset()
- func (m *AddItemRequest) Size() (n int)
- func (this *AddItemRequest) String() string
- func (m *AddItemRequest) Unmarshal(dAtA []byte) error
- 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 (this *Address) Equal(that interface{}) bool
- 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 (this *Address) GoString() string
- func (m *Address) Marshal() (dAtA []byte, err error)
- func (m *Address) MarshalTo(dAtA []byte) (int, error)
- func (m *Address) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) Size() (n int)
- func (this *Address) String() string
- func (m *Address) Unmarshal(dAtA []byte) error
- 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 (this *Cart) Equal(that interface{}) bool
- func (m *Cart) GetItems() []*CartItem
- func (m *Cart) GetUserId() string
- func (this *Cart) GoString() string
- func (m *Cart) Marshal() (dAtA []byte, err error)
- func (m *Cart) MarshalTo(dAtA []byte) (int, error)
- func (m *Cart) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Cart) ProtoMessage()
- func (m *Cart) Reset()
- func (m *Cart) Size() (n int)
- func (this *Cart) String() string
- func (m *Cart) Unmarshal(dAtA []byte) error
- 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 (this *CartItem) Equal(that interface{}) bool
- func (m *CartItem) GetProductId() string
- func (m *CartItem) GetQuantity() int32
- func (this *CartItem) GoString() string
- func (m *CartItem) Marshal() (dAtA []byte, err error)
- func (m *CartItem) MarshalTo(dAtA []byte) (int, error)
- func (m *CartItem) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CartItem) ProtoMessage()
- func (m *CartItem) Reset()
- func (m *CartItem) Size() (n int)
- func (this *CartItem) String() string
- func (m *CartItem) Unmarshal(dAtA []byte) error
- 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 (this *ChargeRequest) Equal(that interface{}) bool
- func (m *ChargeRequest) GetAmount() *Money
- func (m *ChargeRequest) GetCreditCard() *CreditCardInfo
- func (this *ChargeRequest) GoString() string
- func (m *ChargeRequest) Marshal() (dAtA []byte, err error)
- func (m *ChargeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ChargeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChargeRequest) ProtoMessage()
- func (m *ChargeRequest) Reset()
- func (m *ChargeRequest) Size() (n int)
- func (this *ChargeRequest) String() string
- func (m *ChargeRequest) Unmarshal(dAtA []byte) error
- 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 (this *ChargeResponse) Equal(that interface{}) bool
- func (m *ChargeResponse) GetTransactionId() string
- func (this *ChargeResponse) GoString() string
- func (m *ChargeResponse) Marshal() (dAtA []byte, err error)
- func (m *ChargeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ChargeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChargeResponse) ProtoMessage()
- func (m *ChargeResponse) Reset()
- func (m *ChargeResponse) Size() (n int)
- func (this *ChargeResponse) String() string
- func (m *ChargeResponse) Unmarshal(dAtA []byte) error
- 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 (this *CreditCardInfo) Equal(that interface{}) bool
- func (m *CreditCardInfo) GetCreditCardCvv() int32
- func (m *CreditCardInfo) GetCreditCardExpirationMonth() int32
- func (m *CreditCardInfo) GetCreditCardExpirationYear() int32
- func (m *CreditCardInfo) GetCreditCardNumber() string
- func (this *CreditCardInfo) GoString() string
- func (m *CreditCardInfo) Marshal() (dAtA []byte, err error)
- func (m *CreditCardInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *CreditCardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreditCardInfo) ProtoMessage()
- func (m *CreditCardInfo) Reset()
- func (m *CreditCardInfo) Size() (n int)
- func (this *CreditCardInfo) String() string
- func (m *CreditCardInfo) Unmarshal(dAtA []byte) error
- 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 (this *CurrencyConversionRequest) Equal(that interface{}) bool
- func (m *CurrencyConversionRequest) GetFrom() *Money
- func (m *CurrencyConversionRequest) GetToCode() string
- func (this *CurrencyConversionRequest) GoString() string
- func (m *CurrencyConversionRequest) Marshal() (dAtA []byte, err error)
- func (m *CurrencyConversionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CurrencyConversionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CurrencyConversionRequest) ProtoMessage()
- func (m *CurrencyConversionRequest) Reset()
- func (m *CurrencyConversionRequest) Size() (n int)
- func (this *CurrencyConversionRequest) String() string
- func (m *CurrencyConversionRequest) Unmarshal(dAtA []byte) error
- 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 (this *Empty) Equal(that interface{}) bool
- func (this *Empty) GoString() string
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (this *Empty) String() string
- func (m *Empty) Unmarshal(dAtA []byte) error
- 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 (this *EmptyCartRequest) Equal(that interface{}) bool
- func (m *EmptyCartRequest) GetUserId() string
- func (this *EmptyCartRequest) GoString() string
- func (m *EmptyCartRequest) Marshal() (dAtA []byte, err error)
- func (m *EmptyCartRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *EmptyCartRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EmptyCartRequest) ProtoMessage()
- func (m *EmptyCartRequest) Reset()
- func (m *EmptyCartRequest) Size() (n int)
- func (this *EmptyCartRequest) String() string
- func (m *EmptyCartRequest) Unmarshal(dAtA []byte) error
- 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 (this *GetCartRequest) Equal(that interface{}) bool
- func (m *GetCartRequest) GetUserId() string
- func (this *GetCartRequest) GoString() string
- func (m *GetCartRequest) Marshal() (dAtA []byte, err error)
- func (m *GetCartRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetCartRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetCartRequest) ProtoMessage()
- func (m *GetCartRequest) Reset()
- func (m *GetCartRequest) Size() (n int)
- func (this *GetCartRequest) String() string
- func (m *GetCartRequest) Unmarshal(dAtA []byte) error
- 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 (this *GetProductRequest) Equal(that interface{}) bool
- func (m *GetProductRequest) GetId() string
- func (this *GetProductRequest) GoString() string
- func (m *GetProductRequest) Marshal() (dAtA []byte, err error)
- func (m *GetProductRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetProductRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetProductRequest) ProtoMessage()
- func (m *GetProductRequest) Reset()
- func (m *GetProductRequest) Size() (n int)
- func (this *GetProductRequest) String() string
- func (m *GetProductRequest) Unmarshal(dAtA []byte) error
- 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 (this *GetQuoteRequest) Equal(that interface{}) bool
- func (m *GetQuoteRequest) GetAddress() *Address
- func (m *GetQuoteRequest) GetItems() []*CartItem
- func (this *GetQuoteRequest) GoString() string
- func (m *GetQuoteRequest) Marshal() (dAtA []byte, err error)
- func (m *GetQuoteRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetQuoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetQuoteRequest) ProtoMessage()
- func (m *GetQuoteRequest) Reset()
- func (m *GetQuoteRequest) Size() (n int)
- func (this *GetQuoteRequest) String() string
- func (m *GetQuoteRequest) Unmarshal(dAtA []byte) error
- 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 (this *GetQuoteResponse) Equal(that interface{}) bool
- func (m *GetQuoteResponse) GetCostUsd() *Money
- func (this *GetQuoteResponse) GoString() string
- func (m *GetQuoteResponse) Marshal() (dAtA []byte, err error)
- func (m *GetQuoteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetQuoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetQuoteResponse) ProtoMessage()
- func (m *GetQuoteResponse) Reset()
- func (m *GetQuoteResponse) Size() (n int)
- func (this *GetQuoteResponse) String() string
- func (m *GetQuoteResponse) Unmarshal(dAtA []byte) error
- 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 (this *GetSupportedCurrenciesResponse) Equal(that interface{}) bool
- func (m *GetSupportedCurrenciesResponse) GetCurrencyCodes() []string
- func (this *GetSupportedCurrenciesResponse) GoString() string
- func (m *GetSupportedCurrenciesResponse) Marshal() (dAtA []byte, err error)
- func (m *GetSupportedCurrenciesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetSupportedCurrenciesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetSupportedCurrenciesResponse) ProtoMessage()
- func (m *GetSupportedCurrenciesResponse) Reset()
- func (m *GetSupportedCurrenciesResponse) Size() (n int)
- func (this *GetSupportedCurrenciesResponse) String() string
- func (m *GetSupportedCurrenciesResponse) Unmarshal(dAtA []byte) error
- 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 (this *ListProductsResponse) Equal(that interface{}) bool
- func (m *ListProductsResponse) GetProducts() []*Product
- func (this *ListProductsResponse) GoString() string
- func (m *ListProductsResponse) Marshal() (dAtA []byte, err error)
- func (m *ListProductsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListProductsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListProductsResponse) ProtoMessage()
- func (m *ListProductsResponse) Reset()
- func (m *ListProductsResponse) Size() (n int)
- func (this *ListProductsResponse) String() string
- func (m *ListProductsResponse) Unmarshal(dAtA []byte) error
- 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 (this *ListRecommendationsRequest) Equal(that interface{}) bool
- func (m *ListRecommendationsRequest) GetProductIds() []string
- func (m *ListRecommendationsRequest) GetUserId() string
- func (this *ListRecommendationsRequest) GoString() string
- func (m *ListRecommendationsRequest) Marshal() (dAtA []byte, err error)
- func (m *ListRecommendationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ListRecommendationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListRecommendationsRequest) ProtoMessage()
- func (m *ListRecommendationsRequest) Reset()
- func (m *ListRecommendationsRequest) Size() (n int)
- func (this *ListRecommendationsRequest) String() string
- func (m *ListRecommendationsRequest) Unmarshal(dAtA []byte) error
- 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 (this *ListRecommendationsResponse) Equal(that interface{}) bool
- func (m *ListRecommendationsResponse) GetProductIds() []string
- func (this *ListRecommendationsResponse) GoString() string
- func (m *ListRecommendationsResponse) Marshal() (dAtA []byte, err error)
- func (m *ListRecommendationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ListRecommendationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListRecommendationsResponse) ProtoMessage()
- func (m *ListRecommendationsResponse) Reset()
- func (m *ListRecommendationsResponse) Size() (n int)
- func (this *ListRecommendationsResponse) String() string
- func (m *ListRecommendationsResponse) Unmarshal(dAtA []byte) error
- 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 (this *Money) Equal(that interface{}) bool
- func (m *Money) GetCurrencyCode() string
- func (m *Money) GetNanos() int32
- func (m *Money) GetUnits() int64
- func (this *Money) GoString() string
- func (m *Money) Marshal() (dAtA []byte, err error)
- func (m *Money) MarshalTo(dAtA []byte) (int, error)
- func (m *Money) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Money) ProtoMessage()
- func (m *Money) Reset()
- func (m *Money) Size() (n int)
- func (this *Money) String() string
- func (m *Money) Unmarshal(dAtA []byte) error
- 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 (this *OrderItem) Equal(that interface{}) bool
- func (m *OrderItem) GetCost() *Money
- func (m *OrderItem) GetItem() *CartItem
- func (this *OrderItem) GoString() string
- func (m *OrderItem) Marshal() (dAtA []byte, err error)
- func (m *OrderItem) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderItem) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrderItem) ProtoMessage()
- func (m *OrderItem) Reset()
- func (m *OrderItem) Size() (n int)
- func (this *OrderItem) String() string
- func (m *OrderItem) Unmarshal(dAtA []byte) error
- 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 (this *OrderResult) Equal(that interface{}) bool
- 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 (this *OrderResult) GoString() string
- func (m *OrderResult) Marshal() (dAtA []byte, err error)
- func (m *OrderResult) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrderResult) ProtoMessage()
- func (m *OrderResult) Reset()
- func (m *OrderResult) Size() (n int)
- func (this *OrderResult) String() string
- func (m *OrderResult) Unmarshal(dAtA []byte) error
- 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 (this *PlaceOrderRequest) Equal(that interface{}) bool
- 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 (this *PlaceOrderRequest) GoString() string
- func (m *PlaceOrderRequest) Marshal() (dAtA []byte, err error)
- func (m *PlaceOrderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *PlaceOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PlaceOrderRequest) ProtoMessage()
- func (m *PlaceOrderRequest) Reset()
- func (m *PlaceOrderRequest) Size() (n int)
- func (this *PlaceOrderRequest) String() string
- func (m *PlaceOrderRequest) Unmarshal(dAtA []byte) error
- 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 (this *PlaceOrderResponse) Equal(that interface{}) bool
- func (m *PlaceOrderResponse) GetOrder() *OrderResult
- func (this *PlaceOrderResponse) GoString() string
- func (m *PlaceOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *PlaceOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PlaceOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PlaceOrderResponse) ProtoMessage()
- func (m *PlaceOrderResponse) Reset()
- func (m *PlaceOrderResponse) Size() (n int)
- func (this *PlaceOrderResponse) String() string
- func (m *PlaceOrderResponse) Unmarshal(dAtA []byte) error
- 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 (this *Product) Equal(that interface{}) bool
- 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 (this *Product) GoString() string
- func (m *Product) Marshal() (dAtA []byte, err error)
- func (m *Product) MarshalTo(dAtA []byte) (int, error)
- func (m *Product) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Product) ProtoMessage()
- func (m *Product) Reset()
- func (m *Product) Size() (n int)
- func (this *Product) String() string
- func (m *Product) Unmarshal(dAtA []byte) error
- 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 SearchProductsRequest
- func (*SearchProductsRequest) Descriptor() ([]byte, []int)
- func (this *SearchProductsRequest) Equal(that interface{}) bool
- func (m *SearchProductsRequest) GetQuery() string
- func (this *SearchProductsRequest) GoString() string
- func (m *SearchProductsRequest) Marshal() (dAtA []byte, err error)
- func (m *SearchProductsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SearchProductsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SearchProductsRequest) ProtoMessage()
- func (m *SearchProductsRequest) Reset()
- func (m *SearchProductsRequest) Size() (n int)
- func (this *SearchProductsRequest) String() string
- func (m *SearchProductsRequest) Unmarshal(dAtA []byte) error
- 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 (this *SearchProductsResponse) Equal(that interface{}) bool
- func (m *SearchProductsResponse) GetResults() []*Product
- func (this *SearchProductsResponse) GoString() string
- func (m *SearchProductsResponse) Marshal() (dAtA []byte, err error)
- func (m *SearchProductsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *SearchProductsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SearchProductsResponse) ProtoMessage()
- func (m *SearchProductsResponse) Reset()
- func (m *SearchProductsResponse) Size() (n int)
- func (this *SearchProductsResponse) String() string
- func (m *SearchProductsResponse) Unmarshal(dAtA []byte) error
- 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 (this *SendOrderConfirmationRequest) Equal(that interface{}) bool
- func (m *SendOrderConfirmationRequest) GetEmail() string
- func (m *SendOrderConfirmationRequest) GetOrder() *OrderResult
- func (this *SendOrderConfirmationRequest) GoString() string
- func (m *SendOrderConfirmationRequest) Marshal() (dAtA []byte, err error)
- func (m *SendOrderConfirmationRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *SendOrderConfirmationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SendOrderConfirmationRequest) ProtoMessage()
- func (m *SendOrderConfirmationRequest) Reset()
- func (m *SendOrderConfirmationRequest) Size() (n int)
- func (this *SendOrderConfirmationRequest) String() string
- func (m *SendOrderConfirmationRequest) Unmarshal(dAtA []byte) error
- 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 (this *ShipOrderRequest) Equal(that interface{}) bool
- func (m *ShipOrderRequest) GetAddress() *Address
- func (m *ShipOrderRequest) GetItems() []*CartItem
- func (this *ShipOrderRequest) GoString() string
- func (m *ShipOrderRequest) Marshal() (dAtA []byte, err error)
- func (m *ShipOrderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ShipOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ShipOrderRequest) ProtoMessage()
- func (m *ShipOrderRequest) Reset()
- func (m *ShipOrderRequest) Size() (n int)
- func (this *ShipOrderRequest) String() string
- func (m *ShipOrderRequest) Unmarshal(dAtA []byte) error
- 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 (this *ShipOrderResponse) Equal(that interface{}) bool
- func (m *ShipOrderResponse) GetTrackingId() string
- func (this *ShipOrderResponse) GoString() string
- func (m *ShipOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *ShipOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ShipOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ShipOrderResponse) ProtoMessage()
- func (m *ShipOrderResponse) Reset()
- func (m *ShipOrderResponse) Size() (n int)
- func (this *ShipOrderResponse) String() string
- func (m *ShipOrderResponse) Unmarshal(dAtA []byte) error
- 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
- type UnimplementedAdServiceServer
- type UnimplementedCartServiceServer
- func (*UnimplementedCartServiceServer) AddItem(ctx context.Context, req *AddItemRequest) (*Empty, error)
- func (*UnimplementedCartServiceServer) EmptyCart(ctx context.Context, req *EmptyCartRequest) (*Empty, error)
- func (*UnimplementedCartServiceServer) GetCart(ctx context.Context, req *GetCartRequest) (*Cart, error)
- type UnimplementedCheckoutServiceServer
- type UnimplementedCurrencyServiceServer
- type UnimplementedEmailServiceServer
- type UnimplementedPaymentServiceServer
- type UnimplementedProductCatalogServiceServer
- func (*UnimplementedProductCatalogServiceServer) GetProduct(ctx context.Context, req *GetProductRequest) (*Product, error)
- func (*UnimplementedProductCatalogServiceServer) ListProducts(ctx context.Context, req *Empty) (*ListProductsResponse, error)
- func (*UnimplementedProductCatalogServiceServer) SearchProducts(ctx context.Context, req *SearchProductsRequest) (*SearchProductsResponse, error)
- type UnimplementedRecommendationServiceServer
- type UnimplementedShippingServiceServer
Constants ¶
This section is empty.
Variables ¶
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 RegisterShippingServiceServer ¶
func RegisterShippingServiceServer(s *grpc.Server, srv ShippingServiceServer)
Types ¶
type Ad ¶
type Ad struct { RedirectUrl string `protobuf:"bytes,1,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` }
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 {
ContextKeys []string `protobuf:"bytes,1,rep,name=context_keys,json=contextKeys,proto3" json:"context_keys,omitempty"`
}
func (*AdRequest) Descriptor ¶
func (*AdRequest) GetContextKeys ¶
func (*AdRequest) MarshalToSizedBuffer ¶
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"`
}
func (*AdResponse) Descriptor ¶
func (*AdResponse) Descriptor() ([]byte, []int)
func (*AdResponse) Equal ¶
func (this *AdResponse) Equal(that interface{}) bool
func (*AdResponse) GetAds ¶
func (m *AdResponse) GetAds() []*Ad
func (*AdResponse) GoString ¶
func (this *AdResponse) GoString() string
func (*AdResponse) Marshal ¶
func (m *AdResponse) Marshal() (dAtA []byte, err error)
func (*AdResponse) MarshalToSizedBuffer ¶
func (m *AdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AdResponse) ProtoMessage ¶
func (*AdResponse) ProtoMessage()
func (*AdResponse) Reset ¶
func (m *AdResponse) Reset()
func (*AdResponse) Size ¶
func (m *AdResponse) Size() (n int)
func (*AdResponse) String ¶
func (this *AdResponse) String() string
func (*AdResponse) Unmarshal ¶
func (m *AdResponse) Unmarshal(dAtA []byte) error
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"` }
func (*AddItemRequest) Descriptor ¶
func (*AddItemRequest) Descriptor() ([]byte, []int)
func (*AddItemRequest) Equal ¶
func (this *AddItemRequest) Equal(that interface{}) bool
func (*AddItemRequest) GetItem ¶
func (m *AddItemRequest) GetItem() *CartItem
func (*AddItemRequest) GetUserId ¶
func (m *AddItemRequest) GetUserId() string
func (*AddItemRequest) GoString ¶
func (this *AddItemRequest) GoString() string
func (*AddItemRequest) Marshal ¶
func (m *AddItemRequest) Marshal() (dAtA []byte, err error)
func (*AddItemRequest) MarshalToSizedBuffer ¶
func (m *AddItemRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AddItemRequest) ProtoMessage ¶
func (*AddItemRequest) ProtoMessage()
func (*AddItemRequest) Reset ¶
func (m *AddItemRequest) Reset()
func (*AddItemRequest) Size ¶
func (m *AddItemRequest) Size() (n int)
func (*AddItemRequest) String ¶
func (this *AddItemRequest) String() string
func (*AddItemRequest) Unmarshal ¶
func (m *AddItemRequest) Unmarshal(dAtA []byte) error
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"` }
func (*Address) Descriptor ¶
func (*Address) GetCountry ¶
func (*Address) GetStreetAddress ¶
func (*Address) GetZipCode ¶
func (*Address) MarshalToSizedBuffer ¶
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"` }
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"` }
func (*CartItem) Descriptor ¶
func (*CartItem) GetProductId ¶
func (*CartItem) GetQuantity ¶
func (*CartItem) MarshalToSizedBuffer ¶
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"` }
func (*ChargeRequest) Descriptor ¶
func (*ChargeRequest) Descriptor() ([]byte, []int)
func (*ChargeRequest) Equal ¶
func (this *ChargeRequest) Equal(that interface{}) bool
func (*ChargeRequest) GetAmount ¶
func (m *ChargeRequest) GetAmount() *Money
func (*ChargeRequest) GetCreditCard ¶
func (m *ChargeRequest) GetCreditCard() *CreditCardInfo
func (*ChargeRequest) GoString ¶
func (this *ChargeRequest) GoString() string
func (*ChargeRequest) Marshal ¶
func (m *ChargeRequest) Marshal() (dAtA []byte, err error)
func (*ChargeRequest) MarshalToSizedBuffer ¶
func (m *ChargeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChargeRequest) ProtoMessage ¶
func (*ChargeRequest) ProtoMessage()
func (*ChargeRequest) Reset ¶
func (m *ChargeRequest) Reset()
func (*ChargeRequest) Size ¶
func (m *ChargeRequest) Size() (n int)
func (*ChargeRequest) String ¶
func (this *ChargeRequest) String() string
func (*ChargeRequest) Unmarshal ¶
func (m *ChargeRequest) Unmarshal(dAtA []byte) error
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"`
}
func (*ChargeResponse) Descriptor ¶
func (*ChargeResponse) Descriptor() ([]byte, []int)
func (*ChargeResponse) Equal ¶
func (this *ChargeResponse) Equal(that interface{}) bool
func (*ChargeResponse) GetTransactionId ¶
func (m *ChargeResponse) GetTransactionId() string
func (*ChargeResponse) GoString ¶
func (this *ChargeResponse) GoString() string
func (*ChargeResponse) Marshal ¶
func (m *ChargeResponse) Marshal() (dAtA []byte, err error)
func (*ChargeResponse) MarshalToSizedBuffer ¶
func (m *ChargeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChargeResponse) ProtoMessage ¶
func (*ChargeResponse) ProtoMessage()
func (*ChargeResponse) Reset ¶
func (m *ChargeResponse) Reset()
func (*ChargeResponse) Size ¶
func (m *ChargeResponse) Size() (n int)
func (*ChargeResponse) String ¶
func (this *ChargeResponse) String() string
func (*ChargeResponse) Unmarshal ¶
func (m *ChargeResponse) Unmarshal(dAtA []byte) error
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 */ }
func (*CreditCardInfo) Descriptor ¶
func (*CreditCardInfo) Descriptor() ([]byte, []int)
func (*CreditCardInfo) Equal ¶
func (this *CreditCardInfo) Equal(that interface{}) bool
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) GoString ¶
func (this *CreditCardInfo) GoString() string
func (*CreditCardInfo) Marshal ¶
func (m *CreditCardInfo) Marshal() (dAtA []byte, err error)
func (*CreditCardInfo) MarshalToSizedBuffer ¶
func (m *CreditCardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreditCardInfo) ProtoMessage ¶
func (*CreditCardInfo) ProtoMessage()
func (*CreditCardInfo) Reset ¶
func (m *CreditCardInfo) Reset()
func (*CreditCardInfo) Size ¶
func (m *CreditCardInfo) Size() (n int)
func (*CreditCardInfo) String ¶
func (this *CreditCardInfo) String() string
func (*CreditCardInfo) Unmarshal ¶
func (m *CreditCardInfo) Unmarshal(dAtA []byte) error
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"` ToCode string `protobuf:"bytes,2,opt,name=to_code,json=toCode,proto3" json:"to_code,omitempty"` }
func (*CurrencyConversionRequest) Descriptor ¶
func (*CurrencyConversionRequest) Descriptor() ([]byte, []int)
func (*CurrencyConversionRequest) Equal ¶
func (this *CurrencyConversionRequest) Equal(that interface{}) bool
func (*CurrencyConversionRequest) GetFrom ¶
func (m *CurrencyConversionRequest) GetFrom() *Money
func (*CurrencyConversionRequest) GetToCode ¶
func (m *CurrencyConversionRequest) GetToCode() string
func (*CurrencyConversionRequest) GoString ¶
func (this *CurrencyConversionRequest) GoString() string
func (*CurrencyConversionRequest) Marshal ¶
func (m *CurrencyConversionRequest) Marshal() (dAtA []byte, err error)
func (*CurrencyConversionRequest) MarshalTo ¶
func (m *CurrencyConversionRequest) MarshalTo(dAtA []byte) (int, error)
func (*CurrencyConversionRequest) MarshalToSizedBuffer ¶
func (m *CurrencyConversionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CurrencyConversionRequest) ProtoMessage ¶
func (*CurrencyConversionRequest) ProtoMessage()
func (*CurrencyConversionRequest) Reset ¶
func (m *CurrencyConversionRequest) Reset()
func (*CurrencyConversionRequest) Size ¶
func (m *CurrencyConversionRequest) Size() (n int)
func (*CurrencyConversionRequest) String ¶
func (this *CurrencyConversionRequest) String() string
func (*CurrencyConversionRequest) Unmarshal ¶
func (m *CurrencyConversionRequest) Unmarshal(dAtA []byte) error
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 { }
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"`
}
func (*EmptyCartRequest) Descriptor ¶
func (*EmptyCartRequest) Descriptor() ([]byte, []int)
func (*EmptyCartRequest) Equal ¶
func (this *EmptyCartRequest) Equal(that interface{}) bool
func (*EmptyCartRequest) GetUserId ¶
func (m *EmptyCartRequest) GetUserId() string
func (*EmptyCartRequest) GoString ¶
func (this *EmptyCartRequest) GoString() string
func (*EmptyCartRequest) Marshal ¶
func (m *EmptyCartRequest) Marshal() (dAtA []byte, err error)
func (*EmptyCartRequest) MarshalToSizedBuffer ¶
func (m *EmptyCartRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EmptyCartRequest) ProtoMessage ¶
func (*EmptyCartRequest) ProtoMessage()
func (*EmptyCartRequest) Reset ¶
func (m *EmptyCartRequest) Reset()
func (*EmptyCartRequest) Size ¶
func (m *EmptyCartRequest) Size() (n int)
func (*EmptyCartRequest) String ¶
func (this *EmptyCartRequest) String() string
func (*EmptyCartRequest) Unmarshal ¶
func (m *EmptyCartRequest) Unmarshal(dAtA []byte) error
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"`
}
func (*GetCartRequest) Descriptor ¶
func (*GetCartRequest) Descriptor() ([]byte, []int)
func (*GetCartRequest) Equal ¶
func (this *GetCartRequest) Equal(that interface{}) bool
func (*GetCartRequest) GetUserId ¶
func (m *GetCartRequest) GetUserId() string
func (*GetCartRequest) GoString ¶
func (this *GetCartRequest) GoString() string
func (*GetCartRequest) Marshal ¶
func (m *GetCartRequest) Marshal() (dAtA []byte, err error)
func (*GetCartRequest) MarshalToSizedBuffer ¶
func (m *GetCartRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetCartRequest) ProtoMessage ¶
func (*GetCartRequest) ProtoMessage()
func (*GetCartRequest) Reset ¶
func (m *GetCartRequest) Reset()
func (*GetCartRequest) Size ¶
func (m *GetCartRequest) Size() (n int)
func (*GetCartRequest) String ¶
func (this *GetCartRequest) String() string
func (*GetCartRequest) Unmarshal ¶
func (m *GetCartRequest) Unmarshal(dAtA []byte) error
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"`
}
func (*GetProductRequest) Descriptor ¶
func (*GetProductRequest) Descriptor() ([]byte, []int)
func (*GetProductRequest) Equal ¶
func (this *GetProductRequest) Equal(that interface{}) bool
func (*GetProductRequest) GetId ¶
func (m *GetProductRequest) GetId() string
func (*GetProductRequest) GoString ¶
func (this *GetProductRequest) GoString() string
func (*GetProductRequest) Marshal ¶
func (m *GetProductRequest) Marshal() (dAtA []byte, err error)
func (*GetProductRequest) MarshalTo ¶
func (m *GetProductRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetProductRequest) MarshalToSizedBuffer ¶
func (m *GetProductRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetProductRequest) ProtoMessage ¶
func (*GetProductRequest) ProtoMessage()
func (*GetProductRequest) Reset ¶
func (m *GetProductRequest) Reset()
func (*GetProductRequest) Size ¶
func (m *GetProductRequest) Size() (n int)
func (*GetProductRequest) String ¶
func (this *GetProductRequest) String() string
func (*GetProductRequest) Unmarshal ¶
func (m *GetProductRequest) Unmarshal(dAtA []byte) error
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"` }
func (*GetQuoteRequest) Descriptor ¶
func (*GetQuoteRequest) Descriptor() ([]byte, []int)
func (*GetQuoteRequest) Equal ¶
func (this *GetQuoteRequest) Equal(that interface{}) bool
func (*GetQuoteRequest) GetAddress ¶
func (m *GetQuoteRequest) GetAddress() *Address
func (*GetQuoteRequest) GetItems ¶
func (m *GetQuoteRequest) GetItems() []*CartItem
func (*GetQuoteRequest) GoString ¶
func (this *GetQuoteRequest) GoString() string
func (*GetQuoteRequest) Marshal ¶
func (m *GetQuoteRequest) Marshal() (dAtA []byte, err error)
func (*GetQuoteRequest) MarshalToSizedBuffer ¶
func (m *GetQuoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetQuoteRequest) ProtoMessage ¶
func (*GetQuoteRequest) ProtoMessage()
func (*GetQuoteRequest) Reset ¶
func (m *GetQuoteRequest) Reset()
func (*GetQuoteRequest) Size ¶
func (m *GetQuoteRequest) Size() (n int)
func (*GetQuoteRequest) String ¶
func (this *GetQuoteRequest) String() string
func (*GetQuoteRequest) Unmarshal ¶
func (m *GetQuoteRequest) Unmarshal(dAtA []byte) error
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"`
}
func (*GetQuoteResponse) Descriptor ¶
func (*GetQuoteResponse) Descriptor() ([]byte, []int)
func (*GetQuoteResponse) Equal ¶
func (this *GetQuoteResponse) Equal(that interface{}) bool
func (*GetQuoteResponse) GetCostUsd ¶
func (m *GetQuoteResponse) GetCostUsd() *Money
func (*GetQuoteResponse) GoString ¶
func (this *GetQuoteResponse) GoString() string
func (*GetQuoteResponse) Marshal ¶
func (m *GetQuoteResponse) Marshal() (dAtA []byte, err error)
func (*GetQuoteResponse) MarshalToSizedBuffer ¶
func (m *GetQuoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetQuoteResponse) ProtoMessage ¶
func (*GetQuoteResponse) ProtoMessage()
func (*GetQuoteResponse) Reset ¶
func (m *GetQuoteResponse) Reset()
func (*GetQuoteResponse) Size ¶
func (m *GetQuoteResponse) Size() (n int)
func (*GetQuoteResponse) String ¶
func (this *GetQuoteResponse) String() string
func (*GetQuoteResponse) Unmarshal ¶
func (m *GetQuoteResponse) Unmarshal(dAtA []byte) error
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 {
CurrencyCodes []string `protobuf:"bytes,1,rep,name=currency_codes,json=currencyCodes,proto3" json:"currency_codes,omitempty"`
}
func (*GetSupportedCurrenciesResponse) Descriptor ¶
func (*GetSupportedCurrenciesResponse) Descriptor() ([]byte, []int)
func (*GetSupportedCurrenciesResponse) Equal ¶
func (this *GetSupportedCurrenciesResponse) Equal(that interface{}) bool
func (*GetSupportedCurrenciesResponse) GetCurrencyCodes ¶
func (m *GetSupportedCurrenciesResponse) GetCurrencyCodes() []string
func (*GetSupportedCurrenciesResponse) GoString ¶
func (this *GetSupportedCurrenciesResponse) GoString() string
func (*GetSupportedCurrenciesResponse) Marshal ¶
func (m *GetSupportedCurrenciesResponse) Marshal() (dAtA []byte, err error)
func (*GetSupportedCurrenciesResponse) MarshalTo ¶
func (m *GetSupportedCurrenciesResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetSupportedCurrenciesResponse) MarshalToSizedBuffer ¶
func (m *GetSupportedCurrenciesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetSupportedCurrenciesResponse) ProtoMessage ¶
func (*GetSupportedCurrenciesResponse) ProtoMessage()
func (*GetSupportedCurrenciesResponse) Reset ¶
func (m *GetSupportedCurrenciesResponse) Reset()
func (*GetSupportedCurrenciesResponse) Size ¶
func (m *GetSupportedCurrenciesResponse) Size() (n int)
func (*GetSupportedCurrenciesResponse) String ¶
func (this *GetSupportedCurrenciesResponse) String() string
func (*GetSupportedCurrenciesResponse) Unmarshal ¶
func (m *GetSupportedCurrenciesResponse) Unmarshal(dAtA []byte) error
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"`
}
func (*ListProductsResponse) Descriptor ¶
func (*ListProductsResponse) Descriptor() ([]byte, []int)
func (*ListProductsResponse) Equal ¶
func (this *ListProductsResponse) Equal(that interface{}) bool
func (*ListProductsResponse) GetProducts ¶
func (m *ListProductsResponse) GetProducts() []*Product
func (*ListProductsResponse) GoString ¶
func (this *ListProductsResponse) GoString() string
func (*ListProductsResponse) Marshal ¶
func (m *ListProductsResponse) Marshal() (dAtA []byte, err error)
func (*ListProductsResponse) MarshalTo ¶
func (m *ListProductsResponse) MarshalTo(dAtA []byte) (int, error)
func (*ListProductsResponse) MarshalToSizedBuffer ¶
func (m *ListProductsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListProductsResponse) ProtoMessage ¶
func (*ListProductsResponse) ProtoMessage()
func (*ListProductsResponse) Reset ¶
func (m *ListProductsResponse) Reset()
func (*ListProductsResponse) Size ¶
func (m *ListProductsResponse) Size() (n int)
func (*ListProductsResponse) String ¶
func (this *ListProductsResponse) String() string
func (*ListProductsResponse) Unmarshal ¶
func (m *ListProductsResponse) Unmarshal(dAtA []byte) error
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"` }
func (*ListRecommendationsRequest) Descriptor ¶
func (*ListRecommendationsRequest) Descriptor() ([]byte, []int)
func (*ListRecommendationsRequest) Equal ¶
func (this *ListRecommendationsRequest) Equal(that interface{}) bool
func (*ListRecommendationsRequest) GetProductIds ¶
func (m *ListRecommendationsRequest) GetProductIds() []string
func (*ListRecommendationsRequest) GetUserId ¶
func (m *ListRecommendationsRequest) GetUserId() string
func (*ListRecommendationsRequest) GoString ¶
func (this *ListRecommendationsRequest) GoString() string
func (*ListRecommendationsRequest) Marshal ¶
func (m *ListRecommendationsRequest) Marshal() (dAtA []byte, err error)
func (*ListRecommendationsRequest) MarshalTo ¶
func (m *ListRecommendationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListRecommendationsRequest) MarshalToSizedBuffer ¶
func (m *ListRecommendationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListRecommendationsRequest) ProtoMessage ¶
func (*ListRecommendationsRequest) ProtoMessage()
func (*ListRecommendationsRequest) Reset ¶
func (m *ListRecommendationsRequest) Reset()
func (*ListRecommendationsRequest) Size ¶
func (m *ListRecommendationsRequest) Size() (n int)
func (*ListRecommendationsRequest) String ¶
func (this *ListRecommendationsRequest) String() string
func (*ListRecommendationsRequest) Unmarshal ¶
func (m *ListRecommendationsRequest) Unmarshal(dAtA []byte) error
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"`
}
func (*ListRecommendationsResponse) Descriptor ¶
func (*ListRecommendationsResponse) Descriptor() ([]byte, []int)
func (*ListRecommendationsResponse) Equal ¶
func (this *ListRecommendationsResponse) Equal(that interface{}) bool
func (*ListRecommendationsResponse) GetProductIds ¶
func (m *ListRecommendationsResponse) GetProductIds() []string
func (*ListRecommendationsResponse) GoString ¶
func (this *ListRecommendationsResponse) GoString() string
func (*ListRecommendationsResponse) Marshal ¶
func (m *ListRecommendationsResponse) Marshal() (dAtA []byte, err error)
func (*ListRecommendationsResponse) MarshalTo ¶
func (m *ListRecommendationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*ListRecommendationsResponse) MarshalToSizedBuffer ¶
func (m *ListRecommendationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ListRecommendationsResponse) ProtoMessage ¶
func (*ListRecommendationsResponse) ProtoMessage()
func (*ListRecommendationsResponse) Reset ¶
func (m *ListRecommendationsResponse) Reset()
func (*ListRecommendationsResponse) Size ¶
func (m *ListRecommendationsResponse) Size() (n int)
func (*ListRecommendationsResponse) String ¶
func (this *ListRecommendationsResponse) String() string
func (*ListRecommendationsResponse) Unmarshal ¶
func (m *ListRecommendationsResponse) Unmarshal(dAtA []byte) error
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 { CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"` Units int64 `protobuf:"varint,2,opt,name=units,proto3" json:"units,omitempty"` Nanos int32 `protobuf:"varint,3,opt,name=nanos,proto3" json:"nanos,omitempty"` }
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"` }
func (*OrderItem) Descriptor ¶
func (*OrderItem) MarshalToSizedBuffer ¶
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"` }
func (*OrderResult) Descriptor ¶
func (*OrderResult) Descriptor() ([]byte, []int)
func (*OrderResult) Equal ¶
func (this *OrderResult) Equal(that interface{}) bool
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) GoString ¶
func (this *OrderResult) GoString() string
func (*OrderResult) Marshal ¶
func (m *OrderResult) Marshal() (dAtA []byte, err error)
func (*OrderResult) MarshalToSizedBuffer ¶
func (m *OrderResult) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OrderResult) ProtoMessage ¶
func (*OrderResult) ProtoMessage()
func (*OrderResult) Reset ¶
func (m *OrderResult) Reset()
func (*OrderResult) Size ¶
func (m *OrderResult) Size() (n int)
func (*OrderResult) String ¶
func (this *OrderResult) String() string
func (*OrderResult) Unmarshal ¶
func (m *OrderResult) Unmarshal(dAtA []byte) error
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"` }
func (*PlaceOrderRequest) Descriptor ¶
func (*PlaceOrderRequest) Descriptor() ([]byte, []int)
func (*PlaceOrderRequest) Equal ¶
func (this *PlaceOrderRequest) Equal(that interface{}) bool
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) GoString ¶
func (this *PlaceOrderRequest) GoString() string
func (*PlaceOrderRequest) Marshal ¶
func (m *PlaceOrderRequest) Marshal() (dAtA []byte, err error)
func (*PlaceOrderRequest) MarshalTo ¶
func (m *PlaceOrderRequest) MarshalTo(dAtA []byte) (int, error)
func (*PlaceOrderRequest) MarshalToSizedBuffer ¶
func (m *PlaceOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PlaceOrderRequest) ProtoMessage ¶
func (*PlaceOrderRequest) ProtoMessage()
func (*PlaceOrderRequest) Reset ¶
func (m *PlaceOrderRequest) Reset()
func (*PlaceOrderRequest) Size ¶
func (m *PlaceOrderRequest) Size() (n int)
func (*PlaceOrderRequest) String ¶
func (this *PlaceOrderRequest) String() string
func (*PlaceOrderRequest) Unmarshal ¶
func (m *PlaceOrderRequest) Unmarshal(dAtA []byte) error
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"`
}
func (*PlaceOrderResponse) Descriptor ¶
func (*PlaceOrderResponse) Descriptor() ([]byte, []int)
func (*PlaceOrderResponse) Equal ¶
func (this *PlaceOrderResponse) Equal(that interface{}) bool
func (*PlaceOrderResponse) GetOrder ¶
func (m *PlaceOrderResponse) GetOrder() *OrderResult
func (*PlaceOrderResponse) GoString ¶
func (this *PlaceOrderResponse) GoString() string
func (*PlaceOrderResponse) Marshal ¶
func (m *PlaceOrderResponse) Marshal() (dAtA []byte, err error)
func (*PlaceOrderResponse) MarshalTo ¶
func (m *PlaceOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*PlaceOrderResponse) MarshalToSizedBuffer ¶
func (m *PlaceOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PlaceOrderResponse) ProtoMessage ¶
func (*PlaceOrderResponse) ProtoMessage()
func (*PlaceOrderResponse) Reset ¶
func (m *PlaceOrderResponse) Reset()
func (*PlaceOrderResponse) Size ¶
func (m *PlaceOrderResponse) Size() (n int)
func (*PlaceOrderResponse) String ¶
func (this *PlaceOrderResponse) String() string
func (*PlaceOrderResponse) Unmarshal ¶
func (m *PlaceOrderResponse) Unmarshal(dAtA []byte) error
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 []string `protobuf:"bytes,6,rep,name=categories,proto3" json:"categories,omitempty"` }
func (*Product) Descriptor ¶
func (*Product) GetCategories ¶
func (*Product) GetDescription ¶
func (*Product) GetPicture ¶
func (*Product) GetPriceUsd ¶
func (*Product) MarshalToSizedBuffer ¶
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 SearchProductsRequest ¶
type SearchProductsRequest struct {
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
}
func (*SearchProductsRequest) Descriptor ¶
func (*SearchProductsRequest) Descriptor() ([]byte, []int)
func (*SearchProductsRequest) Equal ¶
func (this *SearchProductsRequest) Equal(that interface{}) bool
func (*SearchProductsRequest) GetQuery ¶
func (m *SearchProductsRequest) GetQuery() string
func (*SearchProductsRequest) GoString ¶
func (this *SearchProductsRequest) GoString() string
func (*SearchProductsRequest) Marshal ¶
func (m *SearchProductsRequest) Marshal() (dAtA []byte, err error)
func (*SearchProductsRequest) MarshalTo ¶
func (m *SearchProductsRequest) MarshalTo(dAtA []byte) (int, error)
func (*SearchProductsRequest) MarshalToSizedBuffer ¶
func (m *SearchProductsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SearchProductsRequest) ProtoMessage ¶
func (*SearchProductsRequest) ProtoMessage()
func (*SearchProductsRequest) Reset ¶
func (m *SearchProductsRequest) Reset()
func (*SearchProductsRequest) Size ¶
func (m *SearchProductsRequest) Size() (n int)
func (*SearchProductsRequest) String ¶
func (this *SearchProductsRequest) String() string
func (*SearchProductsRequest) Unmarshal ¶
func (m *SearchProductsRequest) Unmarshal(dAtA []byte) error
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"`
}
func (*SearchProductsResponse) Descriptor ¶
func (*SearchProductsResponse) Descriptor() ([]byte, []int)
func (*SearchProductsResponse) Equal ¶
func (this *SearchProductsResponse) Equal(that interface{}) bool
func (*SearchProductsResponse) GetResults ¶
func (m *SearchProductsResponse) GetResults() []*Product
func (*SearchProductsResponse) GoString ¶
func (this *SearchProductsResponse) GoString() string
func (*SearchProductsResponse) Marshal ¶
func (m *SearchProductsResponse) Marshal() (dAtA []byte, err error)
func (*SearchProductsResponse) MarshalTo ¶
func (m *SearchProductsResponse) MarshalTo(dAtA []byte) (int, error)
func (*SearchProductsResponse) MarshalToSizedBuffer ¶
func (m *SearchProductsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SearchProductsResponse) ProtoMessage ¶
func (*SearchProductsResponse) ProtoMessage()
func (*SearchProductsResponse) Reset ¶
func (m *SearchProductsResponse) Reset()
func (*SearchProductsResponse) Size ¶
func (m *SearchProductsResponse) Size() (n int)
func (*SearchProductsResponse) String ¶
func (this *SearchProductsResponse) String() string
func (*SearchProductsResponse) Unmarshal ¶
func (m *SearchProductsResponse) Unmarshal(dAtA []byte) error
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"` }
func (*SendOrderConfirmationRequest) Descriptor ¶
func (*SendOrderConfirmationRequest) Descriptor() ([]byte, []int)
func (*SendOrderConfirmationRequest) Equal ¶
func (this *SendOrderConfirmationRequest) Equal(that interface{}) bool
func (*SendOrderConfirmationRequest) GetEmail ¶
func (m *SendOrderConfirmationRequest) GetEmail() string
func (*SendOrderConfirmationRequest) GetOrder ¶
func (m *SendOrderConfirmationRequest) GetOrder() *OrderResult
func (*SendOrderConfirmationRequest) GoString ¶
func (this *SendOrderConfirmationRequest) GoString() string
func (*SendOrderConfirmationRequest) Marshal ¶
func (m *SendOrderConfirmationRequest) Marshal() (dAtA []byte, err error)
func (*SendOrderConfirmationRequest) MarshalTo ¶
func (m *SendOrderConfirmationRequest) MarshalTo(dAtA []byte) (int, error)
func (*SendOrderConfirmationRequest) MarshalToSizedBuffer ¶
func (m *SendOrderConfirmationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SendOrderConfirmationRequest) ProtoMessage ¶
func (*SendOrderConfirmationRequest) ProtoMessage()
func (*SendOrderConfirmationRequest) Reset ¶
func (m *SendOrderConfirmationRequest) Reset()
func (*SendOrderConfirmationRequest) Size ¶
func (m *SendOrderConfirmationRequest) Size() (n int)
func (*SendOrderConfirmationRequest) String ¶
func (this *SendOrderConfirmationRequest) String() string
func (*SendOrderConfirmationRequest) Unmarshal ¶
func (m *SendOrderConfirmationRequest) Unmarshal(dAtA []byte) error
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"` }
func (*ShipOrderRequest) Descriptor ¶
func (*ShipOrderRequest) Descriptor() ([]byte, []int)
func (*ShipOrderRequest) Equal ¶
func (this *ShipOrderRequest) Equal(that interface{}) bool
func (*ShipOrderRequest) GetAddress ¶
func (m *ShipOrderRequest) GetAddress() *Address
func (*ShipOrderRequest) GetItems ¶
func (m *ShipOrderRequest) GetItems() []*CartItem
func (*ShipOrderRequest) GoString ¶
func (this *ShipOrderRequest) GoString() string
func (*ShipOrderRequest) Marshal ¶
func (m *ShipOrderRequest) Marshal() (dAtA []byte, err error)
func (*ShipOrderRequest) MarshalToSizedBuffer ¶
func (m *ShipOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ShipOrderRequest) ProtoMessage ¶
func (*ShipOrderRequest) ProtoMessage()
func (*ShipOrderRequest) Reset ¶
func (m *ShipOrderRequest) Reset()
func (*ShipOrderRequest) Size ¶
func (m *ShipOrderRequest) Size() (n int)
func (*ShipOrderRequest) String ¶
func (this *ShipOrderRequest) String() string
func (*ShipOrderRequest) Unmarshal ¶
func (m *ShipOrderRequest) Unmarshal(dAtA []byte) error
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"`
}
func (*ShipOrderResponse) Descriptor ¶
func (*ShipOrderResponse) Descriptor() ([]byte, []int)
func (*ShipOrderResponse) Equal ¶
func (this *ShipOrderResponse) Equal(that interface{}) bool
func (*ShipOrderResponse) GetTrackingId ¶
func (m *ShipOrderResponse) GetTrackingId() string
func (*ShipOrderResponse) GoString ¶
func (this *ShipOrderResponse) GoString() string
func (*ShipOrderResponse) Marshal ¶
func (m *ShipOrderResponse) Marshal() (dAtA []byte, err error)
func (*ShipOrderResponse) MarshalTo ¶
func (m *ShipOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*ShipOrderResponse) MarshalToSizedBuffer ¶
func (m *ShipOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ShipOrderResponse) ProtoMessage ¶
func (*ShipOrderResponse) ProtoMessage()
func (*ShipOrderResponse) Reset ¶
func (m *ShipOrderResponse) Reset()
func (*ShipOrderResponse) Size ¶
func (m *ShipOrderResponse) Size() (n int)
func (*ShipOrderResponse) String ¶
func (this *ShipOrderResponse) String() string
func (*ShipOrderResponse) Unmarshal ¶
func (m *ShipOrderResponse) Unmarshal(dAtA []byte) error
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.
type UnimplementedAdServiceServer ¶
type UnimplementedAdServiceServer struct { }
UnimplementedAdServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedAdServiceServer) GetAds ¶
func (*UnimplementedAdServiceServer) GetAds(ctx context.Context, req *AdRequest) (*AdResponse, error)
type UnimplementedCartServiceServer ¶
type UnimplementedCartServiceServer struct { }
UnimplementedCartServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCartServiceServer) AddItem ¶
func (*UnimplementedCartServiceServer) AddItem(ctx context.Context, req *AddItemRequest) (*Empty, error)
func (*UnimplementedCartServiceServer) EmptyCart ¶
func (*UnimplementedCartServiceServer) EmptyCart(ctx context.Context, req *EmptyCartRequest) (*Empty, error)
func (*UnimplementedCartServiceServer) GetCart ¶
func (*UnimplementedCartServiceServer) GetCart(ctx context.Context, req *GetCartRequest) (*Cart, error)
type UnimplementedCheckoutServiceServer ¶
type UnimplementedCheckoutServiceServer struct { }
UnimplementedCheckoutServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCheckoutServiceServer) PlaceOrder ¶
func (*UnimplementedCheckoutServiceServer) PlaceOrder(ctx context.Context, req *PlaceOrderRequest) (*PlaceOrderResponse, error)
type UnimplementedCurrencyServiceServer ¶
type UnimplementedCurrencyServiceServer struct { }
UnimplementedCurrencyServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCurrencyServiceServer) Convert ¶
func (*UnimplementedCurrencyServiceServer) Convert(ctx context.Context, req *CurrencyConversionRequest) (*Money, error)
func (*UnimplementedCurrencyServiceServer) GetSupportedCurrencies ¶
func (*UnimplementedCurrencyServiceServer) GetSupportedCurrencies(ctx context.Context, req *Empty) (*GetSupportedCurrenciesResponse, error)
type UnimplementedEmailServiceServer ¶
type UnimplementedEmailServiceServer struct { }
UnimplementedEmailServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedEmailServiceServer) SendOrderConfirmation ¶
func (*UnimplementedEmailServiceServer) SendOrderConfirmation(ctx context.Context, req *SendOrderConfirmationRequest) (*Empty, error)
type UnimplementedPaymentServiceServer ¶
type UnimplementedPaymentServiceServer struct { }
UnimplementedPaymentServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedPaymentServiceServer) Charge ¶
func (*UnimplementedPaymentServiceServer) Charge(ctx context.Context, req *ChargeRequest) (*ChargeResponse, error)
type UnimplementedProductCatalogServiceServer ¶
type UnimplementedProductCatalogServiceServer struct { }
UnimplementedProductCatalogServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedProductCatalogServiceServer) GetProduct ¶
func (*UnimplementedProductCatalogServiceServer) GetProduct(ctx context.Context, req *GetProductRequest) (*Product, error)
func (*UnimplementedProductCatalogServiceServer) ListProducts ¶
func (*UnimplementedProductCatalogServiceServer) ListProducts(ctx context.Context, req *Empty) (*ListProductsResponse, error)
func (*UnimplementedProductCatalogServiceServer) SearchProducts ¶
func (*UnimplementedProductCatalogServiceServer) SearchProducts(ctx context.Context, req *SearchProductsRequest) (*SearchProductsResponse, error)
type UnimplementedRecommendationServiceServer ¶
type UnimplementedRecommendationServiceServer struct { }
UnimplementedRecommendationServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedRecommendationServiceServer) ListRecommendations ¶
func (*UnimplementedRecommendationServiceServer) ListRecommendations(ctx context.Context, req *ListRecommendationsRequest) (*ListRecommendationsResponse, error)
type UnimplementedShippingServiceServer ¶
type UnimplementedShippingServiceServer struct { }
UnimplementedShippingServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedShippingServiceServer) GetQuote ¶
func (*UnimplementedShippingServiceServer) GetQuote(ctx context.Context, req *GetQuoteRequest) (*GetQuoteResponse, error)
func (*UnimplementedShippingServiceServer) ShipOrder ¶
func (*UnimplementedShippingServiceServer) ShipOrder(ctx context.Context, req *ShipOrderRequest) (*ShipOrderResponse, error)