persistence

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

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

Deprecated: Use Cart.ProtoReflect.Descriptor instead.

func (*Cart) GetItems

func (x *Cart) GetItems() []*LineItem

func (*Cart) ProtoMessage

func (*Cart) ProtoMessage()

func (*Cart) ProtoReflect

func (x *Cart) ProtoReflect() protoreflect.Message

func (*Cart) Reset

func (x *Cart) Reset()

func (*Cart) String

func (x *Cart) String() string

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

Deprecated: Use ItemAdded.ProtoReflect.Descriptor instead.

func (*ItemAdded) GetItem

func (x *ItemAdded) GetItem() *LineItem

func (*ItemAdded) ProtoMessage

func (*ItemAdded) ProtoMessage()

func (*ItemAdded) ProtoReflect

func (x *ItemAdded) ProtoReflect() protoreflect.Message

func (*ItemAdded) Reset

func (x *ItemAdded) Reset()

func (*ItemAdded) String

func (x *ItemAdded) String() string

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

Deprecated: Use LineItem.ProtoReflect.Descriptor instead.

func (*LineItem) GetName

func (x *LineItem) GetName() string

func (*LineItem) GetProductId

func (x *LineItem) GetProductId() string

func (*LineItem) GetQuantity

func (x *LineItem) GetQuantity() int32

func (*LineItem) ProtoMessage

func (*LineItem) ProtoMessage()

func (*LineItem) ProtoReflect

func (x *LineItem) ProtoReflect() protoreflect.Message

func (*LineItem) Reset

func (x *LineItem) Reset()

func (*LineItem) String

func (x *LineItem) String() string

Jump to

Keyboard shortcuts

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