hipstershop

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAdServiceServer

func RegisterAdServiceServer(s *grpc.Server, srv AdServiceServer)

func RegisterCartServiceServer

func RegisterCartServiceServer(s *grpc.Server, srv CartServiceServer)

func RegisterCheckoutServiceServer

func RegisterCheckoutServiceServer(s *grpc.Server, srv CheckoutServiceServer)

func RegisterCurrencyServiceServer

func RegisterCurrencyServiceServer(s *grpc.Server, srv CurrencyServiceServer)

func RegisterEmailServiceServer

func RegisterEmailServiceServer(s *grpc.Server, srv EmailServiceServer)

func RegisterPaymentServiceServer

func RegisterPaymentServiceServer(s *grpc.Server, srv PaymentServiceServer)

func RegisterProductCatalogServiceServer

func RegisterProductCatalogServiceServer(s *grpc.Server, srv ProductCatalogServiceServer)

func RegisterRecommendationServiceServer

func RegisterRecommendationServiceServer(s *grpc.Server, srv RecommendationServiceServer)

func RegisterShippingServiceServer

func RegisterShippingServiceServer(s *grpc.Server, srv ShippingServiceServer)

Types

type Ad struct {
	// url to redirect to when an ad is clicked.
	RedirectUrl string `protobuf:"bytes,1,opt,name=redirect_url,json=redirectUrl,proto3" json:"redirect_url,omitempty"`
	// short advertisement text to display.
	Text                 string   `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Ad) Descriptor

func (*Ad) Descriptor() ([]byte, []int)

func (*Ad) GetRedirectUrl

func (m *Ad) GetRedirectUrl() string

func (*Ad) GetText

func (m *Ad) GetText() string

func (*Ad) ProtoMessage

func (*Ad) ProtoMessage()

func (*Ad) Reset

func (m *Ad) Reset()

func (*Ad) String

func (m *Ad) String() string

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 {
	// List of important key words from the current page describing the context.
	ContextKeys          []string `protobuf:"bytes,1,rep,name=context_keys,json=contextKeys,proto3" json:"context_keys,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AdRequest) Descriptor

func (*AdRequest) Descriptor() ([]byte, []int)

func (*AdRequest) GetContextKeys

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

func (*AdRequest) ProtoMessage

func (*AdRequest) ProtoMessage()

func (*AdRequest) Reset

func (m *AdRequest) Reset()

func (*AdRequest) String

func (m *AdRequest) String() string

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AdResponse) Descriptor

func (*AdResponse) Descriptor() ([]byte, []int)

func (*AdResponse) GetAds

func (m *AdResponse) GetAds() []*Ad

func (*AdResponse) ProtoMessage

func (*AdResponse) ProtoMessage()

func (*AdResponse) Reset

func (m *AdResponse) Reset()

func (*AdResponse) String

func (m *AdResponse) String() string

func (*AdResponse) XXX_DiscardUnknown

func (m *AdResponse) XXX_DiscardUnknown()

func (*AdResponse) XXX_Marshal

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

func (*AdResponse) XXX_Merge

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

func (*AdResponse) XXX_Size

func (m *AdResponse) XXX_Size() int

func (*AdResponse) XXX_Unmarshal

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

type AdServiceClient

type AdServiceClient interface {
	GetAds(ctx context.Context, in *AdRequest, opts ...grpc.CallOption) (*AdResponse, error)
}

AdServiceClient is the client API for AdService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAdServiceClient

func NewAdServiceClient(cc *grpc.ClientConn) AdServiceClient

type AdServiceServer

type AdServiceServer interface {
	GetAds(context.Context, *AdRequest) (*AdResponse, error)
}

AdServiceServer is the server API for AdService service.

type AddItemRequest

type AddItemRequest struct {
	UserId               string    `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Item                 *CartItem `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*AddItemRequest) Descriptor

func (*AddItemRequest) Descriptor() ([]byte, []int)

func (*AddItemRequest) GetItem

func (m *AddItemRequest) GetItem() *CartItem

func (*AddItemRequest) GetUserId

func (m *AddItemRequest) GetUserId() string

func (*AddItemRequest) ProtoMessage

func (*AddItemRequest) ProtoMessage()

func (*AddItemRequest) Reset

func (m *AddItemRequest) Reset()

func (*AddItemRequest) String

func (m *AddItemRequest) String() string

func (*AddItemRequest) XXX_DiscardUnknown

func (m *AddItemRequest) XXX_DiscardUnknown()

func (*AddItemRequest) XXX_Marshal

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

func (*AddItemRequest) XXX_Merge

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

func (*AddItemRequest) XXX_Size

func (m *AddItemRequest) XXX_Size() int

func (*AddItemRequest) XXX_Unmarshal

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

type Address

type Address struct {
	StreetAddress        string   `protobuf:"bytes,1,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"`
	City                 string   `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
	State                string   `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	Country              string   `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
	ZipCode              int32    `protobuf:"varint,5,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Address) Descriptor

func (*Address) Descriptor() ([]byte, []int)

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

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

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"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Cart) Descriptor

func (*Cart) Descriptor() ([]byte, []int)

func (*Cart) GetItems

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

func (*Cart) GetUserId

func (m *Cart) GetUserId() string

func (*Cart) ProtoMessage

func (*Cart) ProtoMessage()

func (*Cart) Reset

func (m *Cart) Reset()

func (*Cart) String

func (m *Cart) String() string

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CartItem) Descriptor

func (*CartItem) Descriptor() ([]byte, []int)

func (*CartItem) GetProductId

func (m *CartItem) GetProductId() string

func (*CartItem) GetQuantity

func (m *CartItem) GetQuantity() int32

func (*CartItem) ProtoMessage

func (*CartItem) ProtoMessage()

func (*CartItem) Reset

func (m *CartItem) Reset()

func (*CartItem) String

func (m *CartItem) String() string

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"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*ChargeRequest) Descriptor

func (*ChargeRequest) Descriptor() ([]byte, []int)

func (*ChargeRequest) GetAmount

func (m *ChargeRequest) GetAmount() *Money

func (*ChargeRequest) GetCreditCard

func (m *ChargeRequest) GetCreditCard() *CreditCardInfo

func (*ChargeRequest) ProtoMessage

func (*ChargeRequest) ProtoMessage()

func (*ChargeRequest) Reset

func (m *ChargeRequest) Reset()

func (*ChargeRequest) String

func (m *ChargeRequest) String() string

func (*ChargeRequest) XXX_DiscardUnknown

func (m *ChargeRequest) XXX_DiscardUnknown()

func (*ChargeRequest) XXX_Marshal

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

func (*ChargeRequest) XXX_Merge

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

func (*ChargeRequest) XXX_Size

func (m *ChargeRequest) XXX_Size() int

func (*ChargeRequest) XXX_Unmarshal

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

type ChargeResponse

type ChargeResponse struct {
	TransactionId        string   `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ChargeResponse) Descriptor

func (*ChargeResponse) Descriptor() ([]byte, []int)

func (*ChargeResponse) GetTransactionId

func (m *ChargeResponse) GetTransactionId() string

func (*ChargeResponse) ProtoMessage

func (*ChargeResponse) ProtoMessage()

func (*ChargeResponse) Reset

func (m *ChargeResponse) Reset()

func (*ChargeResponse) String

func (m *ChargeResponse) String() string

func (*ChargeResponse) XXX_DiscardUnknown

func (m *ChargeResponse) XXX_DiscardUnknown()

func (*ChargeResponse) XXX_Marshal

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

func (*ChargeResponse) XXX_Merge

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

func (*ChargeResponse) XXX_Size

func (m *ChargeResponse) XXX_Size() int

func (*ChargeResponse) XXX_Unmarshal

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

type CheckoutServiceClient

type CheckoutServiceClient interface {
	PlaceOrder(ctx context.Context, in *PlaceOrderRequest, opts ...grpc.CallOption) (*PlaceOrderResponse, error)
}

CheckoutServiceClient is the client API for CheckoutService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCheckoutServiceClient

func NewCheckoutServiceClient(cc *grpc.ClientConn) CheckoutServiceClient

type CheckoutServiceServer

type CheckoutServiceServer interface {
	PlaceOrder(context.Context, *PlaceOrderRequest) (*PlaceOrderResponse, error)
}

CheckoutServiceServer is the server API for CheckoutService service.

type CreditCardInfo

type CreditCardInfo struct {
	CreditCardNumber          string   `protobuf:"bytes,1,opt,name=credit_card_number,json=creditCardNumber,proto3" json:"credit_card_number,omitempty"`
	CreditCardCvv             int32    `protobuf:"varint,2,opt,name=credit_card_cvv,json=creditCardCvv,proto3" json:"credit_card_cvv,omitempty"`
	CreditCardExpirationYear  int32    `` /* 138-byte string literal not displayed */
	CreditCardExpirationMonth int32    `` /* 141-byte string literal not displayed */
	XXX_NoUnkeyedLiteral      struct{} `json:"-"`
	XXX_unrecognized          []byte   `json:"-"`
	XXX_sizecache             int32    `json:"-"`
}

func (*CreditCardInfo) Descriptor

func (*CreditCardInfo) Descriptor() ([]byte, []int)

func (*CreditCardInfo) GetCreditCardCvv

func (m *CreditCardInfo) GetCreditCardCvv() int32

func (*CreditCardInfo) GetCreditCardExpirationMonth

func (m *CreditCardInfo) GetCreditCardExpirationMonth() int32

func (*CreditCardInfo) GetCreditCardExpirationYear

func (m *CreditCardInfo) GetCreditCardExpirationYear() int32

func (*CreditCardInfo) GetCreditCardNumber

func (m *CreditCardInfo) GetCreditCardNumber() string

func (*CreditCardInfo) ProtoMessage

func (*CreditCardInfo) ProtoMessage()

func (*CreditCardInfo) Reset

func (m *CreditCardInfo) Reset()

func (*CreditCardInfo) String

func (m *CreditCardInfo) String() string

func (*CreditCardInfo) XXX_DiscardUnknown

func (m *CreditCardInfo) XXX_DiscardUnknown()

func (*CreditCardInfo) XXX_Marshal

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

func (*CreditCardInfo) XXX_Merge

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

func (*CreditCardInfo) XXX_Size

func (m *CreditCardInfo) XXX_Size() int

func (*CreditCardInfo) XXX_Unmarshal

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

type CurrencyConversionRequest

type CurrencyConversionRequest struct {
	From *Money `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// The 3-letter currency code defined in ISO 4217.
	ToCode               string   `protobuf:"bytes,2,opt,name=to_code,json=toCode,proto3" json:"to_code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CurrencyConversionRequest) Descriptor

func (*CurrencyConversionRequest) Descriptor() ([]byte, []int)

func (*CurrencyConversionRequest) GetFrom

func (m *CurrencyConversionRequest) GetFrom() *Money

func (*CurrencyConversionRequest) GetToCode

func (m *CurrencyConversionRequest) GetToCode() string

func (*CurrencyConversionRequest) ProtoMessage

func (*CurrencyConversionRequest) ProtoMessage()

func (*CurrencyConversionRequest) Reset

func (m *CurrencyConversionRequest) Reset()

func (*CurrencyConversionRequest) String

func (m *CurrencyConversionRequest) String() string

func (*CurrencyConversionRequest) XXX_DiscardUnknown

func (m *CurrencyConversionRequest) XXX_DiscardUnknown()

func (*CurrencyConversionRequest) XXX_Marshal

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

func (*CurrencyConversionRequest) XXX_Merge

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

func (*CurrencyConversionRequest) XXX_Size

func (m *CurrencyConversionRequest) XXX_Size() int

func (*CurrencyConversionRequest) XXX_Unmarshal

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

type CurrencyServiceClient

type CurrencyServiceClient interface {
	GetSupportedCurrencies(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GetSupportedCurrenciesResponse, error)
	Convert(ctx context.Context, in *CurrencyConversionRequest, opts ...grpc.CallOption) (*Money, error)
}

CurrencyServiceClient is the client API for CurrencyService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCurrencyServiceClient

func NewCurrencyServiceClient(cc *grpc.ClientConn) CurrencyServiceClient

type CurrencyServiceServer

type CurrencyServiceServer interface {
	GetSupportedCurrencies(context.Context, *Empty) (*GetSupportedCurrenciesResponse, error)
	Convert(context.Context, *CurrencyConversionRequest) (*Money, error)
}

CurrencyServiceServer is the server API for CurrencyService service.

type EmailServiceClient

type EmailServiceClient interface {
	SendOrderConfirmation(ctx context.Context, in *SendOrderConfirmationRequest, opts ...grpc.CallOption) (*Empty, error)
}

EmailServiceClient is the client API for EmailService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewEmailServiceClient

func NewEmailServiceClient(cc *grpc.ClientConn) EmailServiceClient

type EmailServiceServer

type EmailServiceServer interface {
	SendOrderConfirmation(context.Context, *SendOrderConfirmationRequest) (*Empty, error)
}

EmailServiceServer is the server API for EmailService service.

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EmptyCartRequest) Descriptor

func (*EmptyCartRequest) Descriptor() ([]byte, []int)

func (*EmptyCartRequest) GetUserId

func (m *EmptyCartRequest) GetUserId() string

func (*EmptyCartRequest) ProtoMessage

func (*EmptyCartRequest) ProtoMessage()

func (*EmptyCartRequest) Reset

func (m *EmptyCartRequest) Reset()

func (*EmptyCartRequest) String

func (m *EmptyCartRequest) String() string

func (*EmptyCartRequest) XXX_DiscardUnknown

func (m *EmptyCartRequest) XXX_DiscardUnknown()

func (*EmptyCartRequest) XXX_Marshal

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

func (*EmptyCartRequest) XXX_Merge

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

func (*EmptyCartRequest) XXX_Size

func (m *EmptyCartRequest) XXX_Size() int

func (*EmptyCartRequest) XXX_Unmarshal

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

type GetCartRequest

type GetCartRequest struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetCartRequest) Descriptor

func (*GetCartRequest) Descriptor() ([]byte, []int)

func (*GetCartRequest) GetUserId

func (m *GetCartRequest) GetUserId() string

func (*GetCartRequest) ProtoMessage

func (*GetCartRequest) ProtoMessage()

func (*GetCartRequest) Reset

func (m *GetCartRequest) Reset()

func (*GetCartRequest) String

func (m *GetCartRequest) String() string

func (*GetCartRequest) XXX_DiscardUnknown

func (m *GetCartRequest) XXX_DiscardUnknown()

func (*GetCartRequest) XXX_Marshal

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

func (*GetCartRequest) XXX_Merge

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

func (*GetCartRequest) XXX_Size

func (m *GetCartRequest) XXX_Size() int

func (*GetCartRequest) XXX_Unmarshal

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

type GetProductRequest

type GetProductRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetProductRequest) Descriptor

func (*GetProductRequest) Descriptor() ([]byte, []int)

func (*GetProductRequest) GetId

func (m *GetProductRequest) GetId() string

func (*GetProductRequest) ProtoMessage

func (*GetProductRequest) ProtoMessage()

func (*GetProductRequest) Reset

func (m *GetProductRequest) Reset()

func (*GetProductRequest) String

func (m *GetProductRequest) String() string

func (*GetProductRequest) XXX_DiscardUnknown

func (m *GetProductRequest) XXX_DiscardUnknown()

func (*GetProductRequest) XXX_Marshal

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

func (*GetProductRequest) XXX_Merge

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

func (*GetProductRequest) XXX_Size

func (m *GetProductRequest) XXX_Size() int

func (*GetProductRequest) XXX_Unmarshal

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

type GetQuoteRequest

type GetQuoteRequest struct {
	Address              *Address    `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Items                []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*GetQuoteRequest) Descriptor

func (*GetQuoteRequest) Descriptor() ([]byte, []int)

func (*GetQuoteRequest) GetAddress

func (m *GetQuoteRequest) GetAddress() *Address

func (*GetQuoteRequest) GetItems

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

func (*GetQuoteRequest) ProtoMessage

func (*GetQuoteRequest) ProtoMessage()

func (*GetQuoteRequest) Reset

func (m *GetQuoteRequest) Reset()

func (*GetQuoteRequest) String

func (m *GetQuoteRequest) String() string

func (*GetQuoteRequest) XXX_DiscardUnknown

func (m *GetQuoteRequest) XXX_DiscardUnknown()

func (*GetQuoteRequest) XXX_Marshal

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

func (*GetQuoteRequest) XXX_Merge

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

func (*GetQuoteRequest) XXX_Size

func (m *GetQuoteRequest) XXX_Size() int

func (*GetQuoteRequest) XXX_Unmarshal

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

type GetQuoteResponse

type GetQuoteResponse struct {
	CostUsd              *Money   `protobuf:"bytes,1,opt,name=cost_usd,json=costUsd,proto3" json:"cost_usd,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetQuoteResponse) Descriptor

func (*GetQuoteResponse) Descriptor() ([]byte, []int)

func (*GetQuoteResponse) GetCostUsd

func (m *GetQuoteResponse) GetCostUsd() *Money

func (*GetQuoteResponse) ProtoMessage

func (*GetQuoteResponse) ProtoMessage()

func (*GetQuoteResponse) Reset

func (m *GetQuoteResponse) Reset()

func (*GetQuoteResponse) String

func (m *GetQuoteResponse) String() string

func (*GetQuoteResponse) XXX_DiscardUnknown

func (m *GetQuoteResponse) XXX_DiscardUnknown()

func (*GetQuoteResponse) XXX_Marshal

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

func (*GetQuoteResponse) XXX_Merge

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

func (*GetQuoteResponse) XXX_Size

func (m *GetQuoteResponse) XXX_Size() int

func (*GetQuoteResponse) XXX_Unmarshal

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

type GetSupportedCurrenciesResponse

type GetSupportedCurrenciesResponse struct {
	// The 3-letter currency code defined in ISO 4217.
	CurrencyCodes        []string `protobuf:"bytes,1,rep,name=currency_codes,json=currencyCodes,proto3" json:"currency_codes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetSupportedCurrenciesResponse) Descriptor

func (*GetSupportedCurrenciesResponse) Descriptor() ([]byte, []int)

func (*GetSupportedCurrenciesResponse) GetCurrencyCodes

func (m *GetSupportedCurrenciesResponse) GetCurrencyCodes() []string

func (*GetSupportedCurrenciesResponse) ProtoMessage

func (*GetSupportedCurrenciesResponse) ProtoMessage()

func (*GetSupportedCurrenciesResponse) Reset

func (m *GetSupportedCurrenciesResponse) Reset()

func (*GetSupportedCurrenciesResponse) String

func (*GetSupportedCurrenciesResponse) XXX_DiscardUnknown

func (m *GetSupportedCurrenciesResponse) XXX_DiscardUnknown()

func (*GetSupportedCurrenciesResponse) XXX_Marshal

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

func (*GetSupportedCurrenciesResponse) XXX_Merge

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

func (*GetSupportedCurrenciesResponse) XXX_Size

func (m *GetSupportedCurrenciesResponse) XXX_Size() int

func (*GetSupportedCurrenciesResponse) XXX_Unmarshal

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

type ListProductsResponse

type ListProductsResponse struct {
	Products             []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*ListProductsResponse) Descriptor

func (*ListProductsResponse) Descriptor() ([]byte, []int)

func (*ListProductsResponse) GetProducts

func (m *ListProductsResponse) GetProducts() []*Product

func (*ListProductsResponse) ProtoMessage

func (*ListProductsResponse) ProtoMessage()

func (*ListProductsResponse) Reset

func (m *ListProductsResponse) Reset()

func (*ListProductsResponse) String

func (m *ListProductsResponse) String() string

func (*ListProductsResponse) XXX_DiscardUnknown

func (m *ListProductsResponse) XXX_DiscardUnknown()

func (*ListProductsResponse) XXX_Marshal

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

func (*ListProductsResponse) XXX_Merge

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

func (*ListProductsResponse) XXX_Size

func (m *ListProductsResponse) XXX_Size() int

func (*ListProductsResponse) XXX_Unmarshal

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

type ListRecommendationsRequest

type ListRecommendationsRequest struct {
	UserId               string   `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ProductIds           []string `protobuf:"bytes,2,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListRecommendationsRequest) Descriptor

func (*ListRecommendationsRequest) Descriptor() ([]byte, []int)

func (*ListRecommendationsRequest) GetProductIds

func (m *ListRecommendationsRequest) GetProductIds() []string

func (*ListRecommendationsRequest) GetUserId

func (m *ListRecommendationsRequest) GetUserId() string

func (*ListRecommendationsRequest) ProtoMessage

func (*ListRecommendationsRequest) ProtoMessage()

func (*ListRecommendationsRequest) Reset

func (m *ListRecommendationsRequest) Reset()

func (*ListRecommendationsRequest) String

func (m *ListRecommendationsRequest) String() string

func (*ListRecommendationsRequest) XXX_DiscardUnknown

func (m *ListRecommendationsRequest) XXX_DiscardUnknown()

func (*ListRecommendationsRequest) XXX_Marshal

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

func (*ListRecommendationsRequest) XXX_Merge

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

func (*ListRecommendationsRequest) XXX_Size

func (m *ListRecommendationsRequest) XXX_Size() int

func (*ListRecommendationsRequest) XXX_Unmarshal

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

type ListRecommendationsResponse

type ListRecommendationsResponse struct {
	ProductIds           []string `protobuf:"bytes,1,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ListRecommendationsResponse) Descriptor

func (*ListRecommendationsResponse) Descriptor() ([]byte, []int)

func (*ListRecommendationsResponse) GetProductIds

func (m *ListRecommendationsResponse) GetProductIds() []string

func (*ListRecommendationsResponse) ProtoMessage

func (*ListRecommendationsResponse) ProtoMessage()

func (*ListRecommendationsResponse) Reset

func (m *ListRecommendationsResponse) Reset()

func (*ListRecommendationsResponse) String

func (m *ListRecommendationsResponse) String() string

func (*ListRecommendationsResponse) XXX_DiscardUnknown

func (m *ListRecommendationsResponse) XXX_DiscardUnknown()

func (*ListRecommendationsResponse) XXX_Marshal

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

func (*ListRecommendationsResponse) XXX_Merge

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

func (*ListRecommendationsResponse) XXX_Size

func (m *ListRecommendationsResponse) XXX_Size() int

func (*ListRecommendationsResponse) XXX_Unmarshal

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

type Money

type Money struct {
	// The 3-letter currency code defined in ISO 4217.
	CurrencyCode string `protobuf:"bytes,1,opt,name=currency_code,json=currencyCode,proto3" json:"currency_code,omitempty"`
	// The whole units of the amount.
	// For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
	Units int64 `protobuf:"varint,2,opt,name=units,proto3" json:"units,omitempty"`
	// Number of nano (10^-9) units of the amount.
	// The value must be between -999,999,999 and +999,999,999 inclusive.
	// If `units` is positive, `nanos` must be positive or zero.
	// If `units` is zero, `nanos` can be positive, zero, or negative.
	// If `units` is negative, `nanos` must be negative or zero.
	// For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
	Nanos                int32    `protobuf:"varint,3,opt,name=nanos,proto3" json:"nanos,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Represents an amount of money with its currency type.

func (*Money) Descriptor

func (*Money) Descriptor() ([]byte, []int)

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

func (*Money) ProtoMessage()

func (*Money) Reset

func (m *Money) Reset()

func (*Money) String

func (m *Money) String() string

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"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*OrderItem) Descriptor

func (*OrderItem) Descriptor() ([]byte, []int)

func (*OrderItem) GetCost

func (m *OrderItem) GetCost() *Money

func (*OrderItem) GetItem

func (m *OrderItem) GetItem() *CartItem

func (*OrderItem) ProtoMessage

func (*OrderItem) ProtoMessage()

func (*OrderItem) Reset

func (m *OrderItem) Reset()

func (*OrderItem) String

func (m *OrderItem) String() string

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"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*OrderResult) Descriptor

func (*OrderResult) Descriptor() ([]byte, []int)

func (*OrderResult) GetItems

func (m *OrderResult) GetItems() []*OrderItem

func (*OrderResult) GetOrderId

func (m *OrderResult) GetOrderId() string

func (*OrderResult) GetShippingAddress

func (m *OrderResult) GetShippingAddress() *Address

func (*OrderResult) GetShippingCost

func (m *OrderResult) GetShippingCost() *Money

func (*OrderResult) GetShippingTrackingId

func (m *OrderResult) GetShippingTrackingId() string

func (*OrderResult) ProtoMessage

func (*OrderResult) ProtoMessage()

func (*OrderResult) Reset

func (m *OrderResult) Reset()

func (*OrderResult) String

func (m *OrderResult) String() string

func (*OrderResult) XXX_DiscardUnknown

func (m *OrderResult) XXX_DiscardUnknown()

func (*OrderResult) XXX_Marshal

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

func (*OrderResult) XXX_Merge

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

func (*OrderResult) XXX_Size

func (m *OrderResult) XXX_Size() int

func (*OrderResult) XXX_Unmarshal

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

type PaymentServiceClient

type PaymentServiceClient interface {
	Charge(ctx context.Context, in *ChargeRequest, opts ...grpc.CallOption) (*ChargeResponse, error)
}

PaymentServiceClient is the client API for PaymentService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPaymentServiceClient

func NewPaymentServiceClient(cc *grpc.ClientConn) PaymentServiceClient

type PaymentServiceServer

type PaymentServiceServer interface {
	Charge(context.Context, *ChargeRequest) (*ChargeResponse, error)
}

PaymentServiceServer is the server API for PaymentService service.

type PlaceOrderRequest

type PlaceOrderRequest struct {
	UserId               string          `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	UserCurrency         string          `protobuf:"bytes,2,opt,name=user_currency,json=userCurrency,proto3" json:"user_currency,omitempty"`
	Address              *Address        `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Email                string          `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	CreditCard           *CreditCardInfo `protobuf:"bytes,6,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*PlaceOrderRequest) Descriptor

func (*PlaceOrderRequest) Descriptor() ([]byte, []int)

func (*PlaceOrderRequest) GetAddress

func (m *PlaceOrderRequest) GetAddress() *Address

func (*PlaceOrderRequest) GetCreditCard

func (m *PlaceOrderRequest) GetCreditCard() *CreditCardInfo

func (*PlaceOrderRequest) GetEmail

func (m *PlaceOrderRequest) GetEmail() string

func (*PlaceOrderRequest) GetUserCurrency

func (m *PlaceOrderRequest) GetUserCurrency() string

func (*PlaceOrderRequest) GetUserId

func (m *PlaceOrderRequest) GetUserId() string

func (*PlaceOrderRequest) ProtoMessage

func (*PlaceOrderRequest) ProtoMessage()

func (*PlaceOrderRequest) Reset

func (m *PlaceOrderRequest) Reset()

func (*PlaceOrderRequest) String

func (m *PlaceOrderRequest) String() string

func (*PlaceOrderRequest) XXX_DiscardUnknown

func (m *PlaceOrderRequest) XXX_DiscardUnknown()

func (*PlaceOrderRequest) XXX_Marshal

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

func (*PlaceOrderRequest) XXX_Merge

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

func (*PlaceOrderRequest) XXX_Size

func (m *PlaceOrderRequest) XXX_Size() int

func (*PlaceOrderRequest) XXX_Unmarshal

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

type PlaceOrderResponse

type PlaceOrderResponse struct {
	Order                *OrderResult `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*PlaceOrderResponse) Descriptor

func (*PlaceOrderResponse) Descriptor() ([]byte, []int)

func (*PlaceOrderResponse) GetOrder

func (m *PlaceOrderResponse) GetOrder() *OrderResult

func (*PlaceOrderResponse) ProtoMessage

func (*PlaceOrderResponse) ProtoMessage()

func (*PlaceOrderResponse) Reset

func (m *PlaceOrderResponse) Reset()

func (*PlaceOrderResponse) String

func (m *PlaceOrderResponse) String() string

func (*PlaceOrderResponse) XXX_DiscardUnknown

func (m *PlaceOrderResponse) XXX_DiscardUnknown()

func (*PlaceOrderResponse) XXX_Marshal

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

func (*PlaceOrderResponse) XXX_Merge

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

func (*PlaceOrderResponse) XXX_Size

func (m *PlaceOrderResponse) XXX_Size() int

func (*PlaceOrderResponse) XXX_Unmarshal

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

type Product

type Product struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Picture     string `protobuf:"bytes,4,opt,name=picture,proto3" json:"picture,omitempty"`
	PriceUsd    *Money `protobuf:"bytes,5,opt,name=price_usd,json=priceUsd,proto3" json:"price_usd,omitempty"`
	// Categories such as "vintage" or "gardening" that can be used to look up
	// other related products.
	Categories           []string `protobuf:"bytes,6,rep,name=categories,proto3" json:"categories,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Product) Descriptor

func (*Product) Descriptor() ([]byte, []int)

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

func (*Product) ProtoMessage()

func (*Product) Reset

func (m *Product) Reset()

func (*Product) String

func (m *Product) String() string

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SearchProductsRequest) Descriptor

func (*SearchProductsRequest) Descriptor() ([]byte, []int)

func (*SearchProductsRequest) GetQuery

func (m *SearchProductsRequest) GetQuery() string

func (*SearchProductsRequest) ProtoMessage

func (*SearchProductsRequest) ProtoMessage()

func (*SearchProductsRequest) Reset

func (m *SearchProductsRequest) Reset()

func (*SearchProductsRequest) String

func (m *SearchProductsRequest) String() string

func (*SearchProductsRequest) XXX_DiscardUnknown

func (m *SearchProductsRequest) XXX_DiscardUnknown()

func (*SearchProductsRequest) XXX_Marshal

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

func (*SearchProductsRequest) XXX_Merge

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

func (*SearchProductsRequest) XXX_Size

func (m *SearchProductsRequest) XXX_Size() int

func (*SearchProductsRequest) XXX_Unmarshal

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

type SearchProductsResponse

type SearchProductsResponse struct {
	Results              []*Product `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*SearchProductsResponse) Descriptor

func (*SearchProductsResponse) Descriptor() ([]byte, []int)

func (*SearchProductsResponse) GetResults

func (m *SearchProductsResponse) GetResults() []*Product

func (*SearchProductsResponse) ProtoMessage

func (*SearchProductsResponse) ProtoMessage()

func (*SearchProductsResponse) Reset

func (m *SearchProductsResponse) Reset()

func (*SearchProductsResponse) String

func (m *SearchProductsResponse) String() string

func (*SearchProductsResponse) XXX_DiscardUnknown

func (m *SearchProductsResponse) XXX_DiscardUnknown()

func (*SearchProductsResponse) XXX_Marshal

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

func (*SearchProductsResponse) XXX_Merge

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

func (*SearchProductsResponse) XXX_Size

func (m *SearchProductsResponse) XXX_Size() int

func (*SearchProductsResponse) XXX_Unmarshal

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

type SendOrderConfirmationRequest

type SendOrderConfirmationRequest struct {
	Email                string       `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Order                *OrderResult `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*SendOrderConfirmationRequest) Descriptor

func (*SendOrderConfirmationRequest) Descriptor() ([]byte, []int)

func (*SendOrderConfirmationRequest) GetEmail

func (m *SendOrderConfirmationRequest) GetEmail() string

func (*SendOrderConfirmationRequest) GetOrder

func (*SendOrderConfirmationRequest) ProtoMessage

func (*SendOrderConfirmationRequest) ProtoMessage()

func (*SendOrderConfirmationRequest) Reset

func (m *SendOrderConfirmationRequest) Reset()

func (*SendOrderConfirmationRequest) String

func (*SendOrderConfirmationRequest) XXX_DiscardUnknown

func (m *SendOrderConfirmationRequest) XXX_DiscardUnknown()

func (*SendOrderConfirmationRequest) XXX_Marshal

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

func (*SendOrderConfirmationRequest) XXX_Merge

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

func (*SendOrderConfirmationRequest) XXX_Size

func (m *SendOrderConfirmationRequest) XXX_Size() int

func (*SendOrderConfirmationRequest) XXX_Unmarshal

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

type ShipOrderRequest

type ShipOrderRequest struct {
	Address              *Address    `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Items                []*CartItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*ShipOrderRequest) Descriptor

func (*ShipOrderRequest) Descriptor() ([]byte, []int)

func (*ShipOrderRequest) GetAddress

func (m *ShipOrderRequest) GetAddress() *Address

func (*ShipOrderRequest) GetItems

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

func (*ShipOrderRequest) ProtoMessage

func (*ShipOrderRequest) ProtoMessage()

func (*ShipOrderRequest) Reset

func (m *ShipOrderRequest) Reset()

func (*ShipOrderRequest) String

func (m *ShipOrderRequest) String() string

func (*ShipOrderRequest) XXX_DiscardUnknown

func (m *ShipOrderRequest) XXX_DiscardUnknown()

func (*ShipOrderRequest) XXX_Marshal

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

func (*ShipOrderRequest) XXX_Merge

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

func (*ShipOrderRequest) XXX_Size

func (m *ShipOrderRequest) XXX_Size() int

func (*ShipOrderRequest) XXX_Unmarshal

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

type ShipOrderResponse

type ShipOrderResponse struct {
	TrackingId           string   `protobuf:"bytes,1,opt,name=tracking_id,json=trackingId,proto3" json:"tracking_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ShipOrderResponse) Descriptor

func (*ShipOrderResponse) Descriptor() ([]byte, []int)

func (*ShipOrderResponse) GetTrackingId

func (m *ShipOrderResponse) GetTrackingId() string

func (*ShipOrderResponse) ProtoMessage

func (*ShipOrderResponse) ProtoMessage()

func (*ShipOrderResponse) Reset

func (m *ShipOrderResponse) Reset()

func (*ShipOrderResponse) String

func (m *ShipOrderResponse) String() string

func (*ShipOrderResponse) XXX_DiscardUnknown

func (m *ShipOrderResponse) XXX_DiscardUnknown()

func (*ShipOrderResponse) XXX_Marshal

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

func (*ShipOrderResponse) XXX_Merge

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

func (*ShipOrderResponse) XXX_Size

func (m *ShipOrderResponse) XXX_Size() int

func (*ShipOrderResponse) XXX_Unmarshal

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

type ShippingServiceClient

type ShippingServiceClient interface {
	GetQuote(ctx context.Context, in *GetQuoteRequest, opts ...grpc.CallOption) (*GetQuoteResponse, error)
	ShipOrder(ctx context.Context, in *ShipOrderRequest, opts ...grpc.CallOption) (*ShipOrderResponse, error)
}

ShippingServiceClient is the client API for ShippingService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewShippingServiceClient

func NewShippingServiceClient(cc *grpc.ClientConn) ShippingServiceClient

type ShippingServiceServer

type ShippingServiceServer interface {
	GetQuote(context.Context, *GetQuoteRequest) (*GetQuoteResponse, error)
	ShipOrder(context.Context, *ShipOrderRequest) (*ShipOrderResponse, error)
}

ShippingServiceServer is the server API for ShippingService service.

Jump to

Keyboard shortcuts

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