Documentation ¶
Index ¶
- Variables
- type Cart
- type ItemAdded
- type ItemRemoved
- type LineItem
- func (*LineItem) Descriptor() ([]byte, []int)deprecated
- func (x *LineItem) GetName() string
- func (x *LineItem) GetProductId() string
- func (x *LineItem) GetQuantity() int32
- func (*LineItem) ProtoMessage()
- func (x *LineItem) ProtoReflect() protoreflect.Message
- func (x *LineItem) Reset()
- func (x *LineItem) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_domain_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Cart ¶
type Cart struct { Items []*LineItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
The shopping cart state.
func (*Cart) Descriptor
deprecated
func (*Cart) ProtoMessage ¶
func (*Cart) ProtoMessage()
func (*Cart) ProtoReflect ¶
func (x *Cart) ProtoReflect() protoreflect.Message
type ItemAdded ¶
type ItemAdded struct { Item *LineItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
The item added event.
func (*ItemAdded) Descriptor
deprecated
func (*ItemAdded) ProtoMessage ¶
func (*ItemAdded) ProtoMessage()
func (*ItemAdded) ProtoReflect ¶
func (x *ItemAdded) ProtoReflect() protoreflect.Message
type ItemRemoved ¶
type ItemRemoved struct { ProductId string `protobuf:"bytes,1,opt,name=productId,proto3" json:"productId,omitempty"` // contains filtered or unexported fields }
The item removed event.
func (*ItemRemoved) Descriptor
deprecated
func (*ItemRemoved) Descriptor() ([]byte, []int)
Deprecated: Use ItemRemoved.ProtoReflect.Descriptor instead.
func (*ItemRemoved) GetProductId ¶
func (x *ItemRemoved) GetProductId() string
func (*ItemRemoved) ProtoMessage ¶
func (*ItemRemoved) ProtoMessage()
func (*ItemRemoved) ProtoReflect ¶
func (x *ItemRemoved) ProtoReflect() protoreflect.Message
func (*ItemRemoved) Reset ¶
func (x *ItemRemoved) Reset()
func (*ItemRemoved) String ¶
func (x *ItemRemoved) String() string
type LineItem ¶
type LineItem struct { ProductId string `protobuf:"bytes,1,opt,name=productId,proto3" json:"productId,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Quantity int32 `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"` // contains filtered or unexported fields }
func (*LineItem) Descriptor
deprecated
func (*LineItem) GetProductId ¶
func (*LineItem) GetQuantity ¶
func (*LineItem) ProtoMessage ¶
func (*LineItem) ProtoMessage()
func (*LineItem) ProtoReflect ¶
func (x *LineItem) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.