paginator

package module
v0.0.0-...-18fd09c Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_paginator_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Paginator

type Paginator struct {
	Page  uint64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	Total uint64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*Paginator) Descriptor deprecated

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

Deprecated: Use Paginator.ProtoReflect.Descriptor instead.

func (*Paginator) GetLimit

func (x *Paginator) GetLimit() uint64

func (*Paginator) GetPage

func (x *Paginator) GetPage() uint64

func (*Paginator) GetTotal

func (x *Paginator) GetTotal() uint64

func (*Paginator) Offset

func (x *Paginator) Offset() uint64

func (*Paginator) ProtoMessage

func (*Paginator) ProtoMessage()

func (*Paginator) ProtoReflect

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

func (*Paginator) Reset

func (x *Paginator) Reset()

func (*Paginator) String

func (x *Paginator) String() string

func (*Paginator) Validate

func (m *Paginator) Validate() error

Validate checks the field values on Paginator with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type PaginatorValidationError

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

PaginatorValidationError is the validation error returned by Paginator.Validate if the designated constraints aren't met.

func (PaginatorValidationError) Cause

func (e PaginatorValidationError) Cause() error

Cause function returns cause value.

func (PaginatorValidationError) Error

func (e PaginatorValidationError) Error() string

Error satisfies the builtin error interface

func (PaginatorValidationError) ErrorName

func (e PaginatorValidationError) ErrorName() string

ErrorName returns error name.

func (PaginatorValidationError) Field

func (e PaginatorValidationError) Field() string

Field function returns field value.

func (PaginatorValidationError) Key

Key function returns key value.

func (PaginatorValidationError) Reason

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