Documentation
¶
Index ¶
- Variables
- type Comparable
- type Filter
- func (*Filter) Descriptor() ([]byte, []int)deprecated
- func (x *Filter) GetColumnName() string
- func (x *Filter) GetComparable() Comparable
- func (x *Filter) GetValue() string
- func (*Filter) ProtoMessage()
- func (x *Filter) ProtoReflect() protoreflect.Message
- func (x *Filter) Reset()
- func (x *Filter) String() string
- type Page
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetFilters() []*Filter
- func (x *Request) GetPage() *Page
- func (x *Request) GetSorts() []*Sort
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Sort
- type SortDirection
- func (SortDirection) Descriptor() protoreflect.EnumDescriptor
- func (x SortDirection) Enum() *SortDirection
- func (SortDirection) EnumDescriptor() ([]byte, []int)deprecated
- func (x SortDirection) Number() protoreflect.EnumNumber
- func (x SortDirection) String() string
- func (SortDirection) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Comparable_name = map[int32]string{ 0: "Eq", 1: "Neq", 2: "Gt", 3: "Gte", 4: "Lt", 5: "Lte", 6: "LIKE", 7: "IN", } Comparable_value = map[string]int32{ "Eq": 0, "Neq": 1, "Gt": 2, "Gte": 3, "Lt": 4, "Lte": 5, "LIKE": 6, "IN": 7, } )
Enum value maps for Comparable.
View Source
var ( SortDirectionToProtoSortDirection = linker.NewLinker[repository.SortDirection, SortDirection]( linker.NewLink(repository.ASC, SortDirection_ASC), linker.NewLink(repository.DESC, SortDirection_DESC), ) ProtoSortDirectionToSortDirection = linker.NewLinker[SortDirection, repository.SortDirection]( linker.NewLink(SortDirection_ASC, repository.ASC), linker.NewLink(SortDirection_DESC, repository.DESC), ) ComparableToProtoComparable = linker.NewLinker[repository.Comparable, Comparable]( linker.NewLink(repository.Eq, Comparable_Eq), linker.NewLink(repository.Neq, Comparable_Neq), linker.NewLink(repository.Gt, Comparable_Gt), linker.NewLink(repository.Gte, Comparable_Gte), linker.NewLink(repository.Lt, Comparable_Lt), linker.NewLink(repository.Lte, Comparable_Lte), linker.NewLink(repository.LIKE, Comparable_LIKE), linker.NewLink(repository.IN, Comparable_IN), ) ProtoComparableToComparable = linker.NewLinker[Comparable, repository.Comparable]( linker.NewLink(Comparable_Eq, repository.Eq), linker.NewLink(Comparable_Neq, repository.Neq), linker.NewLink(Comparable_Gt, repository.Gt), linker.NewLink(Comparable_Gte, repository.Gte), linker.NewLink(Comparable_Lt, repository.Lt), linker.NewLink(Comparable_Lte, repository.Lte), linker.NewLink(Comparable_LIKE, repository.LIKE), linker.NewLink(Comparable_IN, repository.IN), ) )
View Source
var ( SortDirection_name = map[int32]string{ 0: "ASC", 1: "DESC", } SortDirection_value = map[string]int32{ "ASC": 0, "DESC": 1, } )
Enum value maps for SortDirection.
View Source
var File_db_client_proto_comparable_proto protoreflect.FileDescriptor
View Source
var File_db_client_proto_models_proto protoreflect.FileDescriptor
View Source
var File_db_client_proto_sort_direction_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Comparable ¶
type Comparable int32
const ( Comparable_Eq Comparable = 0 Comparable_Neq Comparable = 1 Comparable_Gt Comparable = 2 Comparable_Gte Comparable = 3 Comparable_Lt Comparable = 4 Comparable_Lte Comparable = 5 Comparable_LIKE Comparable = 6 Comparable_IN Comparable = 7 )
func (Comparable) Descriptor ¶
func (Comparable) Descriptor() protoreflect.EnumDescriptor
func (Comparable) Enum ¶
func (x Comparable) Enum() *Comparable
func (Comparable) EnumDescriptor
deprecated
func (Comparable) EnumDescriptor() ([]byte, []int)
Deprecated: Use Comparable.Descriptor instead.
func (Comparable) Number ¶
func (x Comparable) Number() protoreflect.EnumNumber
func (Comparable) String ¶
func (x Comparable) String() string
func (Comparable) Type ¶
func (Comparable) Type() protoreflect.EnumType
type Filter ¶
type Filter struct {
ColumnName string `protobuf:"bytes,1,opt,name=ColumnName,proto3" json:"ColumnName,omitempty"`
Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
Comparable Comparable `protobuf:"varint,3,opt,name=Comparable,proto3,enum=database.Comparable" json:"Comparable,omitempty"`
// contains filtered or unexported fields
}
func (*Filter) Descriptor
deprecated
func (*Filter) GetColumnName ¶
func (*Filter) GetComparable ¶
func (x *Filter) GetComparable() Comparable
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) ProtoReflect ¶
func (x *Filter) ProtoReflect() protoreflect.Message
type Page ¶
type Page struct {
Number uint64 `protobuf:"varint,1,opt,name=Number,proto3" json:"Number,omitempty"`
Limit uint32 `protobuf:"varint,2,opt,name=Limit,proto3" json:"Limit,omitempty"`
// contains filtered or unexported fields
}
func (*Page) Descriptor
deprecated
func (*Page) ProtoMessage ¶
func (*Page) ProtoMessage()
func (*Page) ProtoReflect ¶
func (x *Page) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct {
Page *Page `protobuf:"bytes,1,opt,name=Page,proto3" json:"Page,omitempty"`
Sorts []*Sort `protobuf:"bytes,2,rep,name=Sorts,proto3" json:"Sorts,omitempty"`
Filters []*Filter `protobuf:"bytes,3,rep,name=Filters,proto3" json:"Filters,omitempty"`
// contains filtered or unexported fields
}
func (*Request) Descriptor
deprecated
func (*Request) GetFilters ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Sort ¶
type Sort struct {
ColumnName string `protobuf:"bytes,1,opt,name=ColumnName,proto3" json:"ColumnName,omitempty"`
Direction SortDirection `protobuf:"varint,2,opt,name=Direction,proto3,enum=database.SortDirection" json:"Direction,omitempty"`
// contains filtered or unexported fields
}
func (*Sort) Descriptor
deprecated
func (*Sort) GetColumnName ¶
func (*Sort) GetDirection ¶
func (x *Sort) GetDirection() SortDirection
func (*Sort) ProtoMessage ¶
func (*Sort) ProtoMessage()
func (*Sort) ProtoReflect ¶
func (x *Sort) ProtoReflect() protoreflect.Message
type SortDirection ¶
type SortDirection int32
const ( SortDirection_ASC SortDirection = 0 SortDirection_DESC SortDirection = 1 )
func (SortDirection) Descriptor ¶
func (SortDirection) Descriptor() protoreflect.EnumDescriptor
func (SortDirection) Enum ¶
func (x SortDirection) Enum() *SortDirection
func (SortDirection) EnumDescriptor
deprecated
func (SortDirection) EnumDescriptor() ([]byte, []int)
Deprecated: Use SortDirection.Descriptor instead.
func (SortDirection) Number ¶
func (x SortDirection) Number() protoreflect.EnumNumber
func (SortDirection) String ¶
func (x SortDirection) String() string
func (SortDirection) Type ¶
func (SortDirection) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.