Documentation
¶
Index ¶
- Variables
- type BunQueryBuilder
- type FromQueryParameters
- type Pagination
- func (x *Pagination) BunQueryBuilder(q bun.QueryBuilder) bun.QueryBuilder
- func (x *Pagination) CalcLimitOffset() (limit, offset int)
- func (*Pagination) Descriptor() ([]byte, []int)deprecated
- 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) String() string
- type Sort
- type SortKey
- func (*SortKey) Descriptor() ([]byte, []int)deprecated
- func (x *SortKey) GetAsc() string
- func (x *SortKey) GetDesc() string
- func (m *SortKey) GetKey() isSortKey_Key
- func (*SortKey) ProtoMessage()
- func (x *SortKey) ProtoReflect() protoreflect.Message
- func (x *SortKey) Reset()
- func (x *SortKey) String() string
- type SortKey_Asc
- type SortKey_Desc
Constants ¶
This section is empty.
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 BunQueryBuilder ¶ added in v1.2.0
type BunQueryBuilder interface {
BunQueryBuilder(bun.QueryBuilder) bun.QueryBuilder
}
type FromQueryParameters ¶ added in v1.2.0
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) BunQueryBuilder ¶ added in v1.2.0
func (x *Pagination) BunQueryBuilder(q bun.QueryBuilder) bun.QueryBuilder
func (*Pagination) CalcLimitOffset ¶ added in v1.2.0
func (x *Pagination) CalcLimitOffset() (limit, offset int)
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
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) String ¶
func (x *Pagination) String() string
type Sort ¶
type Sort struct { Key []*SortKey `protobuf:"bytes,1,rep,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*Sort) BunQueryBuilder ¶ added in v1.2.0
func (x *Sort) BunQueryBuilder(q bun.QueryBuilder) bun.QueryBuilder
func (*Sort) Descriptor
deprecated
func (*Sort) ProtoMessage ¶
func (*Sort) ProtoMessage()
func (*Sort) ProtoReflect ¶
func (x *Sort) ProtoReflect() protoreflect.Message
type SortKey ¶ added in v1.2.0
type SortKey struct { // Types that are assignable to Key: // // *SortKey_Asc // *SortKey_Desc Key isSortKey_Key `protobuf_oneof:"key"` // contains filtered or unexported fields }
func (*SortKey) Descriptor
deprecated
added in
v1.2.0
func (*SortKey) ProtoMessage ¶ added in v1.2.0
func (*SortKey) ProtoMessage()
func (*SortKey) ProtoReflect ¶ added in v1.2.0
func (x *SortKey) ProtoReflect() protoreflect.Message
type SortKey_Asc ¶ added in v1.2.0
type SortKey_Asc struct {
Asc string `protobuf:"bytes,1,opt,name=asc,proto3,oneof"`
}
type SortKey_Desc ¶ added in v1.2.0
type SortKey_Desc struct {
Desc string `protobuf:"bytes,2,opt,name=desc,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.