Documentation ¶
Index ¶
- Variables
- type Account
- func (*Account) Descriptor() ([]byte, []int)deprecated
- func (x *Account) GetCreatedAt() string
- func (x *Account) GetEmail() string
- func (x *Account) GetId() string
- func (x *Account) GetPassword() string
- func (x *Account) GetUpdatedAt() string
- func (*Account) ProtoMessage()
- func (x *Account) ProtoReflect() protoreflect.Message
- func (x *Account) Reset()
- func (x *Account) String() string
- type Empty
- type Order
- type OrderItem
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetCreatedAt() string
- func (x *Product) GetId() int64
- func (x *Product) GetImageUrl() string
- func (x *Product) GetName() string
- func (x *Product) GetPrice() int32
- func (x *Product) GetQty() int32
- func (x *Product) GetUpdatedAt() string
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- type SelfLinks
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_v1_resources_account_proto protoreflect.FileDescriptor
View Source
var File_api_v1_resources_empty_proto protoreflect.FileDescriptor
View Source
var File_api_v1_resources_order_proto protoreflect.FileDescriptor
View Source
var File_api_v1_resources_product_proto protoreflect.FileDescriptor
View Source
var File_api_v1_resources_selflinks_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Account) Descriptor
deprecated
func (*Account) GetCreatedAt ¶
func (*Account) GetPassword ¶
func (*Account) GetUpdatedAt ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) ProtoReflect ¶
func (x *Account) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct { Links *SelfLinks `protobuf:"bytes,1,opt,name=links,proto3" json:"links,omitempty"` // contains filtered or unexported fields }
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Order ¶
type Order struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Items []*OrderItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*Order) Descriptor
deprecated
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type OrderItem ¶
type OrderItem struct { ProductId int64 `protobuf:"varint,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` Qty int32 `protobuf:"varint,2,opt,name=qty,proto3" json:"qty,omitempty"` // contains filtered or unexported fields }
func (*OrderItem) Descriptor
deprecated
func (*OrderItem) GetProductId ¶
func (*OrderItem) ProtoMessage ¶
func (*OrderItem) ProtoMessage()
func (*OrderItem) ProtoReflect ¶
func (x *OrderItem) ProtoReflect() protoreflect.Message
type Product ¶
type Product struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` ImageUrl string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` Price int32 `protobuf:"varint,4,opt,name=price,proto3" json:"price,omitempty"` Qty int32 `protobuf:"varint,5,opt,name=qty,proto3" json:"qty,omitempty"` CreatedAt string `protobuf:"bytes,98,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,99,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Product) Descriptor
deprecated
func (*Product) GetCreatedAt ¶
func (*Product) GetImageUrl ¶
func (*Product) GetUpdatedAt ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
type SelfLinks ¶
type SelfLinks struct { Self string `protobuf:"bytes,1,opt,name=self,proto3" json:"self,omitempty"` // contains filtered or unexported fields }
func (*SelfLinks) Descriptor
deprecated
func (*SelfLinks) ProtoMessage ¶
func (*SelfLinks) ProtoMessage()
func (*SelfLinks) ProtoReflect ¶
func (x *SelfLinks) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.