demopb

package
v0.0.0-...-b122242 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDemo        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDemo          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDemo = fmt.Errorf("proto: unexpected end of group")
)

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 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) Descriptor() ([]byte, []int)

func (*Ad) Equal

func (this *Ad) Equal(that interface{}) bool

func (*Ad) GetRedirectUrl

func (m *Ad) GetRedirectUrl() string

func (*Ad) GetText

func (m *Ad) GetText() string

func (*Ad) GoString

func (this *Ad) GoString() string

func (*Ad) Marshal

func (m *Ad) Marshal() (dAtA []byte, err error)

func (*Ad) MarshalTo

func (m *Ad) MarshalTo(dAtA []byte) (int, error)

func (*Ad) MarshalToSizedBuffer

func (m *Ad) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Ad) ProtoMessage

func (*Ad) ProtoMessage()

func (*Ad) Reset

func (m *Ad) Reset()

func (*Ad) Size

func (m *Ad) Size() (n int)

func (*Ad) String

func (this *Ad) String() string

func (*Ad) Unmarshal

func (m *Ad) Unmarshal(dAtA []byte) error

func (*Ad) XXX_DiscardUnknown

func (m *Ad) XXX_DiscardUnknown()

func (*Ad) XXX_Marshal

func (m *Ad) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ad) XXX_Merge

func (m *Ad) XXX_Merge(src proto.Message)

func (*Ad) XXX_Size

func (m *Ad) XXX_Size() int

func (*Ad) XXX_Unmarshal

func (m *Ad) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*AdRequest) Equal

func (this *AdRequest) Equal(that interface{}) bool

func (*AdRequest) GetContextKeys

func (m *AdRequest) GetContextKeys() []string

func (*AdRequest) GoString

func (this *AdRequest) GoString() string

func (*AdRequest) Marshal

func (m *AdRequest) Marshal() (dAtA []byte, err error)

func (*AdRequest) MarshalTo

func (m *AdRequest) MarshalTo(dAtA []byte) (int, error)

func (*AdRequest) MarshalToSizedBuffer

func (m *AdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AdRequest) ProtoMessage

func (*AdRequest) ProtoMessage()

func (*AdRequest) Reset

func (m *AdRequest) Reset()

func (*AdRequest) Size

func (m *AdRequest) Size() (n int)

func (*AdRequest) String

func (this *AdRequest) String() string

func (*AdRequest) Unmarshal

func (m *AdRequest) Unmarshal(dAtA []byte) error

func (*AdRequest) XXX_DiscardUnknown

func (m *AdRequest) XXX_DiscardUnknown()

func (*AdRequest) XXX_Marshal

func (m *AdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AdRequest) XXX_Merge

func (m *AdRequest) XXX_Merge(src proto.Message)

func (*AdRequest) XXX_Size

func (m *AdRequest) XXX_Size() int

func (*AdRequest) XXX_Unmarshal

func (m *AdRequest) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *AdResponse) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *AddItemRequest) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Address) Equal

func (this *Address) Equal(that interface{}) bool

func (*Address) GetCity

func (m *Address) GetCity() string

func (*Address) GetCountry

func (m *Address) GetCountry() string

func (*Address) GetState

func (m *Address) GetState() string

func (*Address) GetStreetAddress

func (m *Address) GetStreetAddress() string

func (*Address) GetZipCode

func (m *Address) GetZipCode() int32

func (*Address) GoString

func (this *Address) GoString() string

func (*Address) Marshal

func (m *Address) Marshal() (dAtA []byte, err error)

func (*Address) MarshalTo

func (m *Address) MarshalTo(dAtA []byte) (int, error)

func (*Address) MarshalToSizedBuffer

func (m *Address) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) Size

func (m *Address) Size() (n int)

func (*Address) String

func (this *Address) String() string

func (*Address) Unmarshal

func (m *Address) Unmarshal(dAtA []byte) error

func (*Address) XXX_DiscardUnknown

func (m *Address) XXX_DiscardUnknown()

func (*Address) XXX_Marshal

func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Address) XXX_Merge

func (m *Address) XXX_Merge(src proto.Message)

func (*Address) XXX_Size

func (m *Address) XXX_Size() int

func (*Address) XXX_Unmarshal

func (m *Address) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Cart) Equal

func (this *Cart) Equal(that interface{}) bool

func (*Cart) GetItems

func (m *Cart) GetItems() []*CartItem

func (*Cart) GetUserId

func (m *Cart) GetUserId() string

func (*Cart) GoString

func (this *Cart) GoString() string

func (*Cart) Marshal

func (m *Cart) Marshal() (dAtA []byte, err error)

func (*Cart) MarshalTo

func (m *Cart) MarshalTo(dAtA []byte) (int, error)

func (*Cart) MarshalToSizedBuffer

func (m *Cart) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Cart) ProtoMessage

func (*Cart) ProtoMessage()

func (*Cart) Reset

func (m *Cart) Reset()

func (*Cart) Size

func (m *Cart) Size() (n int)

func (*Cart) String

func (this *Cart) String() string

func (*Cart) Unmarshal

func (m *Cart) Unmarshal(dAtA []byte) error

func (*Cart) XXX_DiscardUnknown

func (m *Cart) XXX_DiscardUnknown()

func (*Cart) XXX_Marshal

func (m *Cart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Cart) XXX_Merge

func (m *Cart) XXX_Merge(src proto.Message)

func (*Cart) XXX_Size

func (m *Cart) XXX_Size() int

func (*Cart) XXX_Unmarshal

func (m *Cart) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*CartItem) Equal

func (this *CartItem) Equal(that interface{}) bool

func (*CartItem) GetProductId

func (m *CartItem) GetProductId() string

func (*CartItem) GetQuantity

func (m *CartItem) GetQuantity() int32

func (*CartItem) GoString

func (this *CartItem) GoString() string

func (*CartItem) Marshal

func (m *CartItem) Marshal() (dAtA []byte, err error)

func (*CartItem) MarshalTo

func (m *CartItem) MarshalTo(dAtA []byte) (int, error)

func (*CartItem) MarshalToSizedBuffer

func (m *CartItem) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CartItem) ProtoMessage

func (*CartItem) ProtoMessage()

func (*CartItem) Reset

func (m *CartItem) Reset()

func (*CartItem) Size

func (m *CartItem) Size() (n int)

func (*CartItem) String

func (this *CartItem) String() string

func (*CartItem) Unmarshal

func (m *CartItem) Unmarshal(dAtA []byte) error

func (*CartItem) XXX_DiscardUnknown

func (m *CartItem) XXX_DiscardUnknown()

func (*CartItem) XXX_Marshal

func (m *CartItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CartItem) XXX_Merge

func (m *CartItem) XXX_Merge(src proto.Message)

func (*CartItem) XXX_Size

func (m *CartItem) XXX_Size() int

func (*CartItem) XXX_Unmarshal

func (m *CartItem) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *ChargeRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *ChargeResponse) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *CreditCardInfo) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Empty) Equal

func (this *Empty) Equal(that interface{}) bool

func (*Empty) GoString

func (this *Empty) GoString() string

func (*Empty) Marshal

func (m *Empty) Marshal() (dAtA []byte, err error)

func (*Empty) MarshalTo

func (m *Empty) MarshalTo(dAtA []byte) (int, error)

func (*Empty) MarshalToSizedBuffer

func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) Size

func (m *Empty) Size() (n int)

func (*Empty) String

func (this *Empty) String() string

func (*Empty) Unmarshal

func (m *Empty) Unmarshal(dAtA []byte) error

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *EmptyCartRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GetCartRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GetQuoteRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GetQuoteResponse) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Money) Equal

func (this *Money) Equal(that interface{}) bool

func (*Money) GetCurrencyCode

func (m *Money) GetCurrencyCode() string

func (*Money) GetNanos

func (m *Money) GetNanos() int32

func (*Money) GetUnits

func (m *Money) GetUnits() int64

func (*Money) GoString

func (this *Money) GoString() string

func (*Money) Marshal

func (m *Money) Marshal() (dAtA []byte, err error)

func (*Money) MarshalTo

func (m *Money) MarshalTo(dAtA []byte) (int, error)

func (*Money) MarshalToSizedBuffer

func (m *Money) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Money) ProtoMessage

func (*Money) ProtoMessage()

func (*Money) Reset

func (m *Money) Reset()

func (*Money) Size

func (m *Money) Size() (n int)

func (*Money) String

func (this *Money) String() string

func (*Money) Unmarshal

func (m *Money) Unmarshal(dAtA []byte) error

func (*Money) XXX_DiscardUnknown

func (m *Money) XXX_DiscardUnknown()

func (*Money) XXX_Marshal

func (m *Money) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Money) XXX_Merge

func (m *Money) XXX_Merge(src proto.Message)

func (*Money) XXX_Size

func (m *Money) XXX_Size() int

func (*Money) XXX_Unmarshal

func (m *Money) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*OrderItem) Equal

func (this *OrderItem) Equal(that interface{}) bool

func (*OrderItem) GetCost

func (m *OrderItem) GetCost() *Money

func (*OrderItem) GetItem

func (m *OrderItem) GetItem() *CartItem

func (*OrderItem) GoString

func (this *OrderItem) GoString() string

func (*OrderItem) Marshal

func (m *OrderItem) Marshal() (dAtA []byte, err error)

func (*OrderItem) MarshalTo

func (m *OrderItem) MarshalTo(dAtA []byte) (int, error)

func (*OrderItem) MarshalToSizedBuffer

func (m *OrderItem) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OrderItem) ProtoMessage

func (*OrderItem) ProtoMessage()

func (*OrderItem) Reset

func (m *OrderItem) Reset()

func (*OrderItem) Size

func (m *OrderItem) Size() (n int)

func (*OrderItem) String

func (this *OrderItem) String() string

func (*OrderItem) Unmarshal

func (m *OrderItem) Unmarshal(dAtA []byte) error

func (*OrderItem) XXX_DiscardUnknown

func (m *OrderItem) XXX_DiscardUnknown()

func (*OrderItem) XXX_Marshal

func (m *OrderItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OrderItem) XXX_Merge

func (m *OrderItem) XXX_Merge(src proto.Message)

func (*OrderItem) XXX_Size

func (m *OrderItem) XXX_Size() int

func (*OrderItem) XXX_Unmarshal

func (m *OrderItem) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *OrderResult) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Product) Equal

func (this *Product) Equal(that interface{}) bool

func (*Product) GetCategories

func (m *Product) GetCategories() []string

func (*Product) GetDescription

func (m *Product) GetDescription() string

func (*Product) GetId

func (m *Product) GetId() string

func (*Product) GetName

func (m *Product) GetName() string

func (*Product) GetPicture

func (m *Product) GetPicture() string

func (*Product) GetPriceUsd

func (m *Product) GetPriceUsd() *Money

func (*Product) GoString

func (this *Product) GoString() string

func (*Product) Marshal

func (m *Product) Marshal() (dAtA []byte, err error)

func (*Product) MarshalTo

func (m *Product) MarshalTo(dAtA []byte) (int, error)

func (*Product) MarshalToSizedBuffer

func (m *Product) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) Reset

func (m *Product) Reset()

func (*Product) Size

func (m *Product) Size() (n int)

func (*Product) String

func (this *Product) String() string

func (*Product) Unmarshal

func (m *Product) Unmarshal(dAtA []byte) error

func (*Product) XXX_DiscardUnknown

func (m *Product) XXX_DiscardUnknown()

func (*Product) XXX_Marshal

func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Product) XXX_Merge

func (m *Product) XXX_Merge(src proto.Message)

func (*Product) XXX_Size

func (m *Product) XXX_Size() int

func (*Product) XXX_Unmarshal

func (m *Product) XXX_Unmarshal(b []byte) error

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 (*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) MarshalTo

func (m *ShipOrderRequest) MarshalTo(dAtA []byte) (int, 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

type UnimplementedCartServiceServer

type UnimplementedCartServiceServer struct {
}

UnimplementedCartServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCartServiceServer) AddItem

func (*UnimplementedCartServiceServer) EmptyCart

func (*UnimplementedCartServiceServer) GetCart

type UnimplementedCheckoutServiceServer

type UnimplementedCheckoutServiceServer struct {
}

UnimplementedCheckoutServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCheckoutServiceServer) PlaceOrder

type UnimplementedCurrencyServiceServer

type UnimplementedCurrencyServiceServer struct {
}

UnimplementedCurrencyServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCurrencyServiceServer) Convert

func (*UnimplementedCurrencyServiceServer) GetSupportedCurrencies

type UnimplementedEmailServiceServer

type UnimplementedEmailServiceServer struct {
}

UnimplementedEmailServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedEmailServiceServer) SendOrderConfirmation

type UnimplementedPaymentServiceServer

type UnimplementedPaymentServiceServer struct {
}

UnimplementedPaymentServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPaymentServiceServer) Charge

type UnimplementedProductCatalogServiceServer

type UnimplementedProductCatalogServiceServer struct {
}

UnimplementedProductCatalogServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedProductCatalogServiceServer) GetProduct

func (*UnimplementedProductCatalogServiceServer) ListProducts

func (*UnimplementedProductCatalogServiceServer) SearchProducts

type UnimplementedRecommendationServiceServer

type UnimplementedRecommendationServiceServer struct {
}

UnimplementedRecommendationServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRecommendationServiceServer) ListRecommendations

type UnimplementedShippingServiceServer

type UnimplementedShippingServiceServer struct {
}

UnimplementedShippingServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedShippingServiceServer) GetQuote

func (*UnimplementedShippingServiceServer) ShipOrder

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL