repository

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 (
	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_github_com_Compogo_db_client_repository_comparable_proto protoreflect.FileDescriptor
View Source
var File_github_com_Compogo_db_client_repository_models_proto protoreflect.FileDescriptor
View Source
var File_github_com_Compogo_db_client_repository_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

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=compogo.database.repository.Comparable" json:"Comparable,omitempty"`
	// contains filtered or unexported fields
}

func (*Filter) Descriptor deprecated

func (*Filter) Descriptor() ([]byte, []int)

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetColumnName

func (x *Filter) GetColumnName() string

func (*Filter) GetComparable

func (x *Filter) GetComparable() Comparable

func (*Filter) GetValue

func (x *Filter) GetValue() string

func (*Filter) ProtoMessage

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect

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

func (*Filter) Reset

func (x *Filter) Reset()

func (*Filter) String

func (x *Filter) String() string

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

Deprecated: Use Page.ProtoReflect.Descriptor instead.

func (*Page) GetLimit

func (x *Page) GetLimit() uint32

func (*Page) GetNumber

func (x *Page) GetNumber() uint64

func (*Page) ProtoMessage

func (*Page) ProtoMessage()

func (*Page) ProtoReflect

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

func (*Page) Reset

func (x *Page) Reset()

func (*Page) String

func (x *Page) String() string

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetFilters

func (x *Request) GetFilters() []*Filter

func (*Request) GetPage

func (x *Request) GetPage() *Page

func (*Request) GetSorts

func (x *Request) GetSorts() []*Sort

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

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=compogo.database.repository.SortDirection" json:"Direction,omitempty"`
	// contains filtered or unexported fields
}

func (*Sort) Descriptor deprecated

func (*Sort) Descriptor() ([]byte, []int)

Deprecated: Use Sort.ProtoReflect.Descriptor instead.

func (*Sort) GetColumnName

func (x *Sort) GetColumnName() string

func (*Sort) GetDirection

func (x *Sort) GetDirection() SortDirection

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 SortDirection

type SortDirection int32
const (
	SortDirection_ASC  SortDirection = 0
	SortDirection_DESC SortDirection = 1
)

func (SortDirection) Descriptor

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 (SortDirection) String

func (x SortDirection) String() string

func (SortDirection) Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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