order

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetCreatedAt

func (x *Order) GetCreatedAt() *timestamppb.Timestamp

func (*Order) GetDeliveredAt

func (x *Order) GetDeliveredAt() *timestamppb.Timestamp

func (*Order) GetId

func (x *Order) GetId() string

func (*Order) GetStatus

func (x *Order) GetStatus() string

func (*Order) GetUpdatedAt

func (x *Order) GetUpdatedAt() *timestamppb.Timestamp

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

func (*Order) Validate

func (m *Order) Validate() error

Validate checks the field values on Order with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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

Deprecated: Use Orders.ProtoReflect.Descriptor instead.

func (*Orders) GetList

func (x *Orders) GetList() []*Order

func (*Orders) GetPagination

func (x *Orders) GetPagination() *common.PaginationResult

func (*Orders) ProtoMessage

func (*Orders) ProtoMessage()

func (*Orders) ProtoReflect

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

func (*Orders) Reset

func (x *Orders) Reset()

func (*Orders) String

func (x *Orders) String() string

func (*Orders) Validate

func (m *Orders) Validate() error

Validate checks the field values on Orders with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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