paginator

package module
v1.9.0 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

README

Löffel Software GmbH - Go Paginator

Build Status codecov

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 added in v1.9.0

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

Deprecated: Use Paginator.ProtoReflect.Descriptor instead.

func (*Paginator) GetLimit

func (x *Paginator) GetLimit() uint64

func (*Paginator) GetPage added in v1.9.0

func (x *Paginator) GetPage() uint64

func (*Paginator) GetTotal

func (x *Paginator) GetTotal() uint64

func (*Paginator) Offset

func (x *Paginator) Offset() uint64

func (*Paginator) ProtoMessage added in v1.9.0

func (*Paginator) ProtoMessage()

func (*Paginator) ProtoReflect added in v1.9.0

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

func (*Paginator) Reset added in v1.9.0

func (x *Paginator) Reset()

func (*Paginator) String added in v1.9.0

func (x *Paginator) String() string

func (*Paginator) Validate added in v1.9.0

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 added in v1.9.0

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 added in v1.9.0

func (e PaginatorValidationError) Cause() error

Cause function returns cause value.

func (PaginatorValidationError) Error added in v1.9.0

func (e PaginatorValidationError) Error() string

Error satisfies the builtin error interface

func (PaginatorValidationError) ErrorName added in v1.9.0

func (e PaginatorValidationError) ErrorName() string

ErrorName returns error name.

func (PaginatorValidationError) Field added in v1.9.0

func (e PaginatorValidationError) Field() string

Field function returns field value.

func (PaginatorValidationError) Key added in v1.9.0

Key function returns key value.

func (PaginatorValidationError) Reason added in v1.9.0

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