protobuf

package
v0.0.0-...-367b6cc Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ListParameters_Order_name = map[int32]string{
		0: "ASC",
		1: "DESC",
	}
	ListParameters_Order_value = map[string]int32{
		"ASC":  0,
		"DESC": 1,
	}
)

Enum value maps for ListParameters_Order.

View Source
var File_protobuf_read_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ListParameters

type ListParameters struct {
	Sorting      map[string]ListParameters_Order `` /* 206-byte string literal not displayed */
	TotalItems   uint64                          `protobuf:"varint,2,opt,name=total_items,json=totalItems,proto3" json:"total_items,omitempty"`
	ItemsPerPage uint64                          `protobuf:"varint,3,opt,name=items_per_page,json=itemsPerPage,proto3" json:"items_per_page,omitempty"`
	CurrentPage  uint64                          `protobuf:"varint,4,opt,name=current_page,json=currentPage,proto3" json:"current_page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListParameters) CalculateFromOffset

func (x *ListParameters) CalculateFromOffset() uint64

func (*ListParameters) Descriptor deprecated

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

Deprecated: Use ListParameters.ProtoReflect.Descriptor instead.

func (*ListParameters) EnsureItemsPerPage

func (x *ListParameters) EnsureItemsPerPage(maximum uint64) uint64

func (*ListParameters) GetCurrentPage

func (x *ListParameters) GetCurrentPage() uint64

func (*ListParameters) GetItemsPerPage

func (x *ListParameters) GetItemsPerPage() uint64

func (*ListParameters) GetSorting

func (x *ListParameters) GetSorting() map[string]ListParameters_Order

func (*ListParameters) GetTotalItems

func (x *ListParameters) GetTotalItems() uint64

func (*ListParameters) ProtoMessage

func (*ListParameters) ProtoMessage()

func (*ListParameters) ProtoReflect

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

func (*ListParameters) Reset

func (x *ListParameters) Reset()

func (*ListParameters) String

func (x *ListParameters) String() string

type ListParameters_Order

type ListParameters_Order int32
const (
	ListParameters_ASC  ListParameters_Order = 0
	ListParameters_DESC ListParameters_Order = 1
)

func (ListParameters_Order) Descriptor

func (ListParameters_Order) Enum

func (ListParameters_Order) EnumDescriptor deprecated

func (ListParameters_Order) EnumDescriptor() ([]byte, []int)

Deprecated: Use ListParameters_Order.Descriptor instead.

func (ListParameters_Order) Number

func (ListParameters_Order) String

func (x ListParameters_Order) String() string

func (ListParameters_Order) Type

Jump to

Keyboard shortcuts

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