types

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_types_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Column

type Column struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"`   // column name
	Exp   string `protobuf:"bytes,2,opt,name=exp,proto3" json:"exp"`     // expressions, which default to = when the value is null, have =, !=, >, >=, <, <=, like, in
	Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value"` // column value
	Logic string `protobuf:"bytes,4,opt,name=logic,proto3" json:"logic"` // logical type, defaults to and when value is null, only &(and), ||(or)
	// contains filtered or unexported fields
}

func (*Column) Descriptor deprecated

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

Deprecated: Use Column.ProtoReflect.Descriptor instead.

func (*Column) GetExp

func (x *Column) GetExp() string

func (*Column) GetLogic

func (x *Column) GetLogic() string

func (*Column) GetName

func (x *Column) GetName() string

func (*Column) GetValue

func (x *Column) GetValue() string

func (*Column) ProtoMessage

func (*Column) ProtoMessage()

func (*Column) ProtoReflect

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

func (*Column) Reset

func (x *Column) Reset()

func (*Column) String

func (x *Column) String() string

func (*Column) Validate

func (m *Column) Validate() error

Validate checks the field values on Column with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Column) ValidateAll

func (m *Column) ValidateAll() error

ValidateAll checks the field values on Column with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ColumnMultiError, or nil if none found.

type ColumnMultiError

type ColumnMultiError []error

ColumnMultiError is an error wrapping multiple validation errors returned by Column.ValidateAll() if the designated constraints aren't met.

func (ColumnMultiError) AllErrors

func (m ColumnMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ColumnMultiError) Error

func (m ColumnMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ColumnValidationError

type ColumnValidationError struct {
	// contains filtered or unexported fields
}

ColumnValidationError is the validation error returned by Column.Validate if the designated constraints aren't met.

func (ColumnValidationError) Cause

func (e ColumnValidationError) Cause() error

Cause function returns cause value.

func (ColumnValidationError) Error

func (e ColumnValidationError) Error() string

Error satisfies the builtin error interface

func (ColumnValidationError) ErrorName

func (e ColumnValidationError) ErrorName() string

ErrorName returns error name.

func (ColumnValidationError) Field

func (e ColumnValidationError) Field() string

Field function returns field value.

func (ColumnValidationError) Key

func (e ColumnValidationError) Key() bool

Key function returns key value.

func (ColumnValidationError) Reason

func (e ColumnValidationError) Reason() string

Reason function returns reason value.

type Conditions

type Conditions struct {
	Columns []*Column `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns"` // query conditions
	// contains filtered or unexported fields
}

func (*Conditions) Descriptor deprecated

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

Deprecated: Use Conditions.ProtoReflect.Descriptor instead.

func (*Conditions) GetColumns

func (x *Conditions) GetColumns() []*Column

func (*Conditions) ProtoMessage

func (*Conditions) ProtoMessage()

func (*Conditions) ProtoReflect

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

func (*Conditions) Reset

func (x *Conditions) Reset()

func (*Conditions) String

func (x *Conditions) String() string

func (*Conditions) Validate

func (m *Conditions) Validate() error

Validate checks the field values on Conditions with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Conditions) ValidateAll

func (m *Conditions) ValidateAll() error

ValidateAll checks the field values on Conditions with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConditionsMultiError, or nil if none found.

type ConditionsMultiError

type ConditionsMultiError []error

ConditionsMultiError is an error wrapping multiple validation errors returned by Conditions.ValidateAll() if the designated constraints aren't met.

func (ConditionsMultiError) AllErrors

func (m ConditionsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConditionsMultiError) Error

func (m ConditionsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConditionsValidationError

type ConditionsValidationError struct {
	// contains filtered or unexported fields
}

ConditionsValidationError is the validation error returned by Conditions.Validate if the designated constraints aren't met.

func (ConditionsValidationError) Cause

func (e ConditionsValidationError) Cause() error

Cause function returns cause value.

func (ConditionsValidationError) Error

Error satisfies the builtin error interface

func (ConditionsValidationError) ErrorName

func (e ConditionsValidationError) ErrorName() string

ErrorName returns error name.

func (ConditionsValidationError) Field

Field function returns field value.

func (ConditionsValidationError) Key

Key function returns key value.

func (ConditionsValidationError) Reason

func (e ConditionsValidationError) Reason() string

Reason function returns reason value.

type Params

type Params struct {
	Page    int32     `protobuf:"varint,1,opt,name=page,proto3" json:"page"`      // page number, starting from 0
	Limit   int32     `protobuf:"varint,2,opt,name=limit,proto3" json:"limit"`    // lines per page
	Sort    string    `protobuf:"bytes,3,opt,name=sort,proto3" json:"sort"`       // sorted fields, multi-column sorting separated by commas
	Columns []*Column `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns"` // query conditions
	// contains filtered or unexported fields
}

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetColumns

func (x *Params) GetColumns() []*Column

func (*Params) GetLimit

func (x *Params) GetLimit() int32

func (*Params) GetPage

func (x *Params) GetPage() int32

func (*Params) GetSort

func (x *Params) GetSort() string

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

func (*Params) Validate

func (m *Params) Validate() error

Validate checks the field values on Params with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Params) ValidateAll

func (m *Params) ValidateAll() error

ValidateAll checks the field values on Params with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ParamsMultiError, or nil if none found.

type ParamsMultiError

type ParamsMultiError []error

ParamsMultiError is an error wrapping multiple validation errors returned by Params.ValidateAll() if the designated constraints aren't met.

func (ParamsMultiError) AllErrors

func (m ParamsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ParamsMultiError) Error

func (m ParamsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ParamsValidationError

type ParamsValidationError struct {
	// contains filtered or unexported fields
}

ParamsValidationError is the validation error returned by Params.Validate if the designated constraints aren't met.

func (ParamsValidationError) Cause

func (e ParamsValidationError) Cause() error

Cause function returns cause value.

func (ParamsValidationError) Error

func (e ParamsValidationError) Error() string

Error satisfies the builtin error interface

func (ParamsValidationError) ErrorName

func (e ParamsValidationError) ErrorName() string

ErrorName returns error name.

func (ParamsValidationError) Field

func (e ParamsValidationError) Field() string

Field function returns field value.

func (ParamsValidationError) Key

func (e ParamsValidationError) Key() bool

Key function returns key value.

func (ParamsValidationError) Reason

func (e ParamsValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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