resources

package
v0.0.0-...-02a5af8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetCreatedAt

func (x *Account) GetCreatedAt() string

func (*Account) GetEmail

func (x *Account) GetEmail() string

func (*Account) GetId

func (x *Account) GetId() string

func (*Account) GetPassword

func (x *Account) GetPassword() string

func (*Account) GetUpdatedAt

func (x *Account) GetUpdatedAt() string

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (x *Empty) GetLinks() *SelfLinks

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetId

func (x *Order) GetId() string

func (*Order) GetItems

func (x *Order) GetItems() []*OrderItem

func (*Order) GetUserId

func (x *Order) GetUserId() string

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

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

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

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

Deprecated: Use OrderItem.ProtoReflect.Descriptor instead.

func (*OrderItem) GetProductId

func (x *OrderItem) GetProductId() int64

func (*OrderItem) GetQty

func (x *OrderItem) GetQty() int32

func (*OrderItem) ProtoMessage

func (*OrderItem) ProtoMessage()

func (*OrderItem) ProtoReflect

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

func (*OrderItem) Reset

func (x *OrderItem) Reset()

func (*OrderItem) String

func (x *OrderItem) String() string

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

Deprecated: Use Product.ProtoReflect.Descriptor instead.

func (*Product) GetCreatedAt

func (x *Product) GetCreatedAt() string

func (*Product) GetId

func (x *Product) GetId() int64

func (*Product) GetImageUrl

func (x *Product) GetImageUrl() string

func (*Product) GetName

func (x *Product) GetName() string

func (*Product) GetPrice

func (x *Product) GetPrice() int32

func (*Product) GetQty

func (x *Product) GetQty() int32

func (*Product) GetUpdatedAt

func (x *Product) GetUpdatedAt() string

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) ProtoReflect

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

func (*Product) Reset

func (x *Product) Reset()

func (*Product) String

func (x *Product) String() string
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) Descriptor() ([]byte, []int)

Deprecated: Use SelfLinks.ProtoReflect.Descriptor instead.

func (*SelfLinks) GetSelf

func (x *SelfLinks) GetSelf() string

func (*SelfLinks) ProtoMessage

func (*SelfLinks) ProtoMessage()

func (*SelfLinks) ProtoReflect

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

func (*SelfLinks) Reset

func (x *SelfLinks) Reset()

func (*SelfLinks) String

func (x *SelfLinks) String() string

Jump to

Keyboard shortcuts

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