v1

package
v0.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_base_v1_pageinfo_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type PageInfo

type PageInfo struct {
	PageIndex int64 `protobuf:"varint,1,opt,name=pageIndex,proto3" json:"pageIndex,omitempty"`
	PageSize  int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Total     int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*PageInfo) Descriptor deprecated

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

Deprecated: Use PageInfo.ProtoReflect.Descriptor instead.

func (*PageInfo) GetPageIndex

func (x *PageInfo) GetPageIndex() int64

func (*PageInfo) GetPageSize

func (x *PageInfo) GetPageSize() int64

func (*PageInfo) GetTotal

func (x *PageInfo) GetTotal() int64

func (*PageInfo) ProtoMessage

func (*PageInfo) ProtoMessage()

func (*PageInfo) ProtoReflect

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

func (*PageInfo) Reset

func (x *PageInfo) Reset()

func (*PageInfo) String

func (x *PageInfo) String() string

func (*PageInfo) Validate

func (m *PageInfo) Validate() error

Validate checks the field values on PageInfo 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 (*PageInfo) ValidateAll

func (m *PageInfo) ValidateAll() error

ValidateAll checks the field values on PageInfo 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 PageInfoMultiError, or nil if none found.

type PageInfoMultiError

type PageInfoMultiError []error

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

func (PageInfoMultiError) AllErrors

func (m PageInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageInfoMultiError) Error

func (m PageInfoMultiError) Error() string

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

type PageInfoValidationError

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

PageInfoValidationError is the validation error returned by PageInfo.Validate if the designated constraints aren't met.

func (PageInfoValidationError) Cause

func (e PageInfoValidationError) Cause() error

Cause function returns cause value.

func (PageInfoValidationError) Error

func (e PageInfoValidationError) Error() string

Error satisfies the builtin error interface

func (PageInfoValidationError) ErrorName

func (e PageInfoValidationError) ErrorName() string

ErrorName returns error name.

func (PageInfoValidationError) Field

func (e PageInfoValidationError) Field() string

Field function returns field value.

func (PageInfoValidationError) Key

func (e PageInfoValidationError) Key() bool

Key function returns key value.

func (PageInfoValidationError) Reason

func (e PageInfoValidationError) 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