Documentation ¶
Index ¶
- Variables
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetIsDescending() bool
- func (x *ListRequest) GetKeyWords() string
- func (x *ListRequest) GetOrderBy() string
- func (x *ListRequest) GetPacketId() int64
- func (x *ListRequest) GetPageNum() uint64
- func (x *ListRequest) GetPageSize() uint64
- func (x *ListRequest) GetSearchKey() string
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetLastPage() uint64
- func (x *ListResponse) GetPacketId() uint64
- func (x *ListResponse) GetPageNum() uint64
- func (x *ListResponse) GetPageSize() uint64
- func (x *ListResponse) GetTotal() uint64
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- type Option
- type Page
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidPageNum = errors.New("invalid page number") ErrInvalidPageSize = errors.New("invalid page size") ErrInvalidOrderBy = errors.New("invalid order") ErrInvalidKeyWords = errors.New("invalid key words") ErrInvalidSearchKey = errors.New("invalid search key") ErrInvalidIsDescending = errors.New("invalid is descending") ErrInvalidParseData = errors.New("invalid data type parsing") ErrInvalidResponse = errors.New("invalid response") )
View Source
var File_api_subscribe_v1_list_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ListRequest ¶
type ListRequest struct { PageNum uint64 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize uint64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` IsDescending bool `protobuf:"varint,4,opt,name=is_descending,json=isDescending,proto3" json:"is_descending,omitempty"` KeyWords string `protobuf:"bytes,5,opt,name=key_words,json=keyWords,proto3" json:"key_words,omitempty"` SearchKey string `protobuf:"bytes,6,opt,name=search_key,json=searchKey,proto3" json:"search_key,omitempty"` //user define PacketId int64 `protobuf:"varint,10,opt,name=packet_id,json=packetId,proto3" json:"packet_id,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetIsDescending ¶
func (x *ListRequest) GetIsDescending() bool
func (*ListRequest) GetKeyWords ¶
func (x *ListRequest) GetKeyWords() string
func (*ListRequest) GetOrderBy ¶
func (x *ListRequest) GetOrderBy() string
func (*ListRequest) GetPacketId ¶
func (x *ListRequest) GetPacketId() int64
func (*ListRequest) GetPageNum ¶
func (x *ListRequest) GetPageNum() uint64
func (*ListRequest) GetPageSize ¶
func (x *ListRequest) GetPageSize() uint64
func (*ListRequest) GetSearchKey ¶
func (x *ListRequest) GetSearchKey() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` PageNum uint64 `protobuf:"varint,2,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` LastPage uint64 `protobuf:"varint,3,opt,name=last_page,json=lastPage,proto3" json:"last_page,omitempty"` PageSize uint64 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` //user define PacketId uint64 `protobuf:"varint,10,opt,name=packet_id,json=packetId,proto3" json:"packet_id,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetLastPage ¶
func (x *ListResponse) GetLastPage() uint64
func (*ListResponse) GetPacketId ¶
func (x *ListResponse) GetPacketId() uint64
func (*ListResponse) GetPageNum ¶
func (x *ListResponse) GetPageNum() uint64
func (*ListResponse) GetPageSize ¶
func (x *ListResponse) GetPageSize() uint64
func (*ListResponse) GetTotal ¶
func (x *ListResponse) GetTotal() uint64
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
Click to show internal directories.
Click to hide internal directories.