Documentation ¶
Index ¶
- Variables
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetCreatedAt() *timestamppb.Timestamp
- func (x *Order) GetDeliveredAt() *timestamppb.Timestamp
- func (x *Order) GetId() string
- func (x *Order) GetStatus() string
- func (x *Order) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Order) GetUserId() string
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- func (m *Order) Validate() error
- type OrderValidationError
- type Orders
- func (*Orders) Descriptor() ([]byte, []int)deprecated
- func (x *Orders) GetList() []*Order
- func (x *Orders) GetPagination() *common.PaginationResult
- func (*Orders) ProtoMessage()
- func (x *Orders) ProtoReflect() protoreflect.Message
- func (x *Orders) Reset()
- func (x *Orders) String() string
- func (m *Orders) Validate() error
- type OrdersValidationError
Constants ¶
This section is empty.
Variables ¶
var File_pkg_proto_order_types_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { // @inject_tag: faker:"uuid_hyphenated" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // @inject_tag: faker:"oneof: 0,1,2,3,4,5" Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` DeliveredAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=delivered_at,json=deliveredAt,proto3" json:"delivered_at,omitempty"` // @inject_tag: faker:"uuid_hyphenated" UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
Order
func (*Order) Descriptor
deprecated
func (*Order) GetCreatedAt ¶
func (x *Order) GetCreatedAt() *timestamppb.Timestamp
func (*Order) GetDeliveredAt ¶
func (x *Order) GetDeliveredAt() *timestamppb.Timestamp
func (*Order) GetUpdatedAt ¶
func (x *Order) GetUpdatedAt() *timestamppb.Timestamp
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type OrderValidationError ¶
type OrderValidationError struct {
// contains filtered or unexported fields
}
OrderValidationError is the validation error returned by Order.Validate if the designated constraints aren't met.
func (OrderValidationError) Cause ¶
func (e OrderValidationError) Cause() error
Cause function returns cause value.
func (OrderValidationError) Error ¶
func (e OrderValidationError) Error() string
Error satisfies the builtin error interface
func (OrderValidationError) ErrorName ¶
func (e OrderValidationError) ErrorName() string
ErrorName returns error name.
func (OrderValidationError) Field ¶
func (e OrderValidationError) Field() string
Field function returns field value.
func (OrderValidationError) Key ¶
func (e OrderValidationError) Key() bool
Key function returns key value.
func (OrderValidationError) Reason ¶
func (e OrderValidationError) Reason() string
Reason function returns reason value.
type Orders ¶
type Orders struct { List []*Order `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Pagination *common.PaginationResult `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
func (*Orders) Descriptor
deprecated
func (*Orders) GetPagination ¶
func (x *Orders) GetPagination() *common.PaginationResult
func (*Orders) ProtoMessage ¶
func (*Orders) ProtoMessage()
func (*Orders) ProtoReflect ¶
func (x *Orders) ProtoReflect() protoreflect.Message
type OrdersValidationError ¶
type OrdersValidationError struct {
// contains filtered or unexported fields
}
OrdersValidationError is the validation error returned by Orders.Validate if the designated constraints aren't met.
func (OrdersValidationError) Cause ¶
func (e OrdersValidationError) Cause() error
Cause function returns cause value.
func (OrdersValidationError) Error ¶
func (e OrdersValidationError) Error() string
Error satisfies the builtin error interface
func (OrdersValidationError) ErrorName ¶
func (e OrdersValidationError) ErrorName() string
ErrorName returns error name.
func (OrdersValidationError) Field ¶
func (e OrdersValidationError) Field() string
Field function returns field value.
func (OrdersValidationError) Key ¶
func (e OrdersValidationError) Key() bool
Key function returns key value.
func (OrdersValidationError) Reason ¶
func (e OrdersValidationError) Reason() string
Reason function returns reason value.