query

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 6 Imported by: 5

Documentation

Index

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 FromQueryParameters interface {
	FromQueryParameters([]string) error
}

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

Deprecated: Use Sort.ProtoReflect.Descriptor instead.

func (*Sort) GetKey

func (x *Sort) GetKey() []*SortKey

func (*Sort) ProtoMessage

func (*Sort) ProtoMessage()

func (*Sort) ProtoReflect

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

func (*Sort) Reset

func (x *Sort) Reset()

func (*Sort) String

func (x *Sort) String() string

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

Deprecated: Use SortKey.ProtoReflect.Descriptor instead.

func (*SortKey) GetAsc added in v1.2.0

func (x *SortKey) GetAsc() string

func (*SortKey) GetDesc added in v1.2.0

func (x *SortKey) GetDesc() string

func (*SortKey) GetKey added in v1.2.0

func (m *SortKey) GetKey() isSortKey_Key

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

func (*SortKey) Reset added in v1.2.0

func (x *SortKey) Reset()

func (*SortKey) String added in v1.2.0

func (x *SortKey) String() string

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"`
}

Jump to

Keyboard shortcuts

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