Documentation ¶
Index ¶
- Variables
- type OrderDirection
- func (OrderDirection) Descriptor() protoreflect.EnumDescriptor
- func (x OrderDirection) Enum() *OrderDirection
- func (OrderDirection) EnumDescriptor() ([]byte, []int)deprecated
- func (x OrderDirection) Number() protoreflect.EnumNumber
- func (x OrderDirection) String() string
- func (OrderDirection) Type() protoreflect.EnumType
- type PageInfo
- func (*PageInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PageInfo) GetEndCursor() string
- func (x *PageInfo) GetHasMore() bool
- func (x *PageInfo) GetItems() int32
- func (x *PageInfo) GetStartCursor() string
- func (x *PageInfo) GetTotal() int32
- func (*PageInfo) ProtoMessage()
- func (x *PageInfo) ProtoReflect() protoreflect.Message
- func (x *PageInfo) Reset()
- func (x *PageInfo) String() string
- type PageRequest
- func (*PageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageRequest) GetBackwards() bool
- func (x *PageRequest) GetCursor() string
- func (x *PageRequest) GetPageSize() int32
- func (*PageRequest) ProtoMessage()
- func (x *PageRequest) ProtoReflect() protoreflect.Message
- func (x *PageRequest) Reset()
- func (x *PageRequest) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OrderDirection_name = map[int32]string{ 0: "ORDER_ASC", 1: "ORDER_DESC", } OrderDirection_value = map[string]int32{ "ORDER_ASC": 0, "ORDER_DESC": 1, } )
Enum value maps for OrderDirection.
View Source
var File_pagination_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type OrderDirection ¶
type OrderDirection int32
const ( OrderDirection_ORDER_ASC OrderDirection = 0 OrderDirection_ORDER_DESC OrderDirection = 1 )
func (OrderDirection) Descriptor ¶
func (OrderDirection) Descriptor() protoreflect.EnumDescriptor
func (OrderDirection) Enum ¶
func (x OrderDirection) Enum() *OrderDirection
func (OrderDirection) EnumDescriptor
deprecated
func (OrderDirection) EnumDescriptor() ([]byte, []int)
Deprecated: Use OrderDirection.Descriptor instead.
func (OrderDirection) Number ¶
func (x OrderDirection) Number() protoreflect.EnumNumber
func (OrderDirection) String ¶
func (x OrderDirection) String() string
func (OrderDirection) Type ¶
func (OrderDirection) Type() protoreflect.EnumType
type PageInfo ¶
type PageInfo struct { StartCursor string `protobuf:"bytes,1,opt,name=startCursor,proto3" json:"startCursor,omitempty"` EndCursor string `protobuf:"bytes,2,opt,name=endCursor,proto3" json:"endCursor,omitempty"` Items int32 `protobuf:"varint,3,opt,name=items,proto3" json:"items,omitempty"` Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` HasMore bool `protobuf:"varint,5,opt,name=hasMore,proto3" json:"hasMore,omitempty"` // contains filtered or unexported fields }
func (*PageInfo) Descriptor
deprecated
func (*PageInfo) GetEndCursor ¶
func (*PageInfo) GetHasMore ¶
func (*PageInfo) GetStartCursor ¶
func (*PageInfo) ProtoMessage ¶
func (*PageInfo) ProtoMessage()
func (*PageInfo) ProtoReflect ¶
func (x *PageInfo) ProtoReflect() protoreflect.Message
type PageRequest ¶
type PageRequest struct { Cursor string `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // default for backwards is false Backwards bool `protobuf:"varint,3,opt,name=backwards,proto3" json:"backwards,omitempty"` // contains filtered or unexported fields }
func (*PageRequest) Descriptor
deprecated
func (*PageRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageRequest.ProtoReflect.Descriptor instead.
func (*PageRequest) GetBackwards ¶
func (x *PageRequest) GetBackwards() bool
func (*PageRequest) GetCursor ¶
func (x *PageRequest) GetCursor() string
func (*PageRequest) GetPageSize ¶
func (x *PageRequest) GetPageSize() int32
func (*PageRequest) ProtoMessage ¶
func (*PageRequest) ProtoMessage()
func (*PageRequest) ProtoReflect ¶
func (x *PageRequest) ProtoReflect() protoreflect.Message
func (*PageRequest) Reset ¶
func (x *PageRequest) Reset()
func (*PageRequest) String ¶
func (x *PageRequest) String() string
Click to show internal directories.
Click to hide internal directories.