api

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OrderDirection_name = map[int32]string{
		0: "ORDER_ASC",
		1: "ORDER_DESC",
	}
	OrderDirection_value = map[string]int32{
		"ORDER_ASC":  0,
		"ORDER_DESC": 1,
	}
)

Enum value maps for OrderDirection.

View Source
var File_pagination_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type OrderDirection

type OrderDirection int32
const (
	OrderDirection_ORDER_ASC  OrderDirection = 0
	OrderDirection_ORDER_DESC OrderDirection = 1
)

func (OrderDirection) Descriptor

func (OrderDirection) Enum

func (x OrderDirection) Enum() *OrderDirection

func (OrderDirection) EnumDescriptor deprecated

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

Deprecated: Use OrderDirection.Descriptor instead.

func (OrderDirection) Number

func (OrderDirection) String

func (x OrderDirection) String() string

func (OrderDirection) Type

type PageInfo

type PageInfo struct {
	StartCursor string `protobuf:"bytes,1,opt,name=startCursor,proto3" json:"startCursor,omitempty"`
	EndCursor   string `protobuf:"bytes,2,opt,name=endCursor,proto3" json:"endCursor,omitempty"`
	Items       int32  `protobuf:"varint,3,opt,name=items,proto3" json:"items,omitempty"`
	Total       int32  `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
	HasMore     bool   `protobuf:"varint,5,opt,name=hasMore,proto3" json:"hasMore,omitempty"`
	// contains filtered or unexported fields
}

func (*PageInfo) Descriptor deprecated

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

Deprecated: Use PageInfo.ProtoReflect.Descriptor instead.

func (*PageInfo) GetEndCursor

func (x *PageInfo) GetEndCursor() string

func (*PageInfo) GetHasMore

func (x *PageInfo) GetHasMore() bool

func (*PageInfo) GetItems

func (x *PageInfo) GetItems() int32

func (*PageInfo) GetStartCursor

func (x *PageInfo) GetStartCursor() string

func (*PageInfo) GetTotal

func (x *PageInfo) GetTotal() int32

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

type PageRequest

type PageRequest struct {
	Cursor   string `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"`
	PageSize int32  `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// default for backwards is false
	Backwards bool `protobuf:"varint,3,opt,name=backwards,proto3" json:"backwards,omitempty"`
	// contains filtered or unexported fields
}

func (*PageRequest) Descriptor deprecated

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

Deprecated: Use PageRequest.ProtoReflect.Descriptor instead.

func (*PageRequest) GetBackwards

func (x *PageRequest) GetBackwards() bool

func (*PageRequest) GetCursor

func (x *PageRequest) GetCursor() string

func (*PageRequest) GetPageSize

func (x *PageRequest) GetPageSize() int32

func (*PageRequest) ProtoMessage

func (*PageRequest) ProtoMessage()

func (*PageRequest) ProtoReflect

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

func (*PageRequest) Reset

func (x *PageRequest) Reset()

func (*PageRequest) String

func (x *PageRequest) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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