Documentation
¶
Index ¶
- Constants
- Variables
- type Pagination
- func (x *Pagination) GetPage() int64
- func (x *Pagination) GetPageSize() int64
- func (*Pagination) ProtoMessage()
- func (x *Pagination) ProtoReflect() protoreflect.Message
- func (x *Pagination) Reset()
- func (x *Pagination) SetPage(v int64)
- func (x *Pagination) SetPageSize(v int64)
- func (x *Pagination) String() string
- type Pagination_builder
- type Sort
- type SortKey
- func (x *SortKey) ClearAsc()
- func (x *SortKey) ClearDesc()
- func (x *SortKey) ClearKey()
- func (x *SortKey) GetAsc() string
- func (x *SortKey) GetDesc() string
- func (x *SortKey) GetKey() isSortKey_Key
- func (x *SortKey) HasAsc() bool
- func (x *SortKey) HasDesc() bool
- func (x *SortKey) HasKey() bool
- func (*SortKey) ProtoMessage()
- func (x *SortKey) ProtoReflect() protoreflect.Message
- func (x *SortKey) Reset()
- func (x *SortKey) SetAsc(v string)
- func (x *SortKey) SetDesc(v string)
- func (x *SortKey) String() string
- func (x *SortKey) WhichKey() case_SortKey_Key
- type SortKey_Asc
- type SortKey_Desc
- type SortKey_builder
- type Sort_builder
Constants ¶
View Source
const SortKey_Asc_case case_SortKey_Key = 1
View Source
const SortKey_Desc_case case_SortKey_Key = 2
View Source
const SortKey_Key_not_set_case case_SortKey_Key = 0
Variables ¶
View Source
var File_query_v1_pagination_proto protoreflect.FileDescriptor
View Source
var File_query_v1_sort_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Pagination ¶
type Pagination struct {
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// contains filtered or unexported fields
}
func (*Pagination) GetPage ¶
func (x *Pagination) GetPage() int64
func (*Pagination) GetPageSize ¶
func (x *Pagination) GetPageSize() int64
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) SetPage ¶
func (x *Pagination) SetPage(v int64)
func (*Pagination) SetPageSize ¶
func (x *Pagination) SetPageSize(v int64)
func (*Pagination) String ¶
func (x *Pagination) String() string
type Pagination_builder ¶
type Pagination_builder struct {
Page int64
PageSize int64
// contains filtered or unexported fields
}
func (Pagination_builder) Build ¶
func (b0 Pagination_builder) Build() *Pagination
type Sort ¶
type Sort struct {
Key []*SortKey `protobuf:"bytes,1,rep,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*Sort) ProtoReflect ¶
func (x *Sort) ProtoReflect() protoreflect.Message
type SortKey ¶
type SortKey struct {
// Types that are valid to be assigned to Key:
//
// *SortKey_Asc
// *SortKey_Desc
Key isSortKey_Key `protobuf_oneof:"key"`
// contains filtered or unexported fields
}
func (*SortKey) ProtoReflect ¶
func (x *SortKey) ProtoReflect() protoreflect.Message
type SortKey_Asc ¶
type SortKey_Asc struct {
Asc string `protobuf:"bytes,1,opt,name=asc,proto3,oneof"`
}
type SortKey_Desc ¶
type SortKey_Desc struct {
Desc string `protobuf:"bytes,2,opt,name=desc,proto3,oneof"`
}
type SortKey_builder ¶
type SortKey_builder struct {
// Fields of oneof Key:
Asc *string
Desc *string
// contains filtered or unexported fields
}
func (SortKey_builder) Build ¶
func (b0 SortKey_builder) Build() *SortKey
type Sort_builder ¶
type Sort_builder struct {
Key []*SortKey
// contains filtered or unexported fields
}
func (Sort_builder) Build ¶
func (b0 Sort_builder) Build() *Sort
Source Files
¶
- pagination.pb.go
- sort.pb.go
Click to show internal directories.
Click to hide internal directories.