protobuf

package
v1.0.63 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MPL-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSdk        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSdk          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSdk = fmt.Errorf("proto: unexpected end of group")
)
View Source
var SortDirection_name = map[int32]string{
	0: "Asc",
	1: "Desc",
}
View Source
var SortDirection_value = map[string]int32{
	"Asc":  0,
	"Desc": 1,
}

Functions

This section is empty.

Types

type ListParam

type ListParam struct {
	Page     int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
}

按limit分页

func (*ListParam) Descriptor

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

func (*ListParam) GetPage

func (m *ListParam) GetPage() int64

func (*ListParam) GetPageSize

func (m *ListParam) GetPageSize() int64

func (*ListParam) Marshal

func (m *ListParam) Marshal() (dAtA []byte, err error)

func (*ListParam) MarshalTo

func (m *ListParam) MarshalTo(dAtA []byte) (int, error)

func (*ListParam) MarshalToSizedBuffer

func (m *ListParam) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ListParam) ProtoMessage

func (*ListParam) ProtoMessage()

func (*ListParam) Reset

func (m *ListParam) Reset()

func (*ListParam) Size

func (m *ListParam) Size() (n int)

func (*ListParam) String

func (m *ListParam) String() string

func (*ListParam) Unmarshal

func (m *ListParam) Unmarshal(dAtA []byte) error

func (*ListParam) XXX_DiscardUnknown

func (m *ListParam) XXX_DiscardUnknown()

func (*ListParam) XXX_Marshal

func (m *ListParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListParam) XXX_Merge

func (m *ListParam) XXX_Merge(src proto.Message)

func (*ListParam) XXX_Size

func (m *ListParam) XXX_Size() int

func (*ListParam) XXX_Unmarshal

func (m *ListParam) XXX_Unmarshal(b []byte) error

type NextParam added in v1.0.7

type NextParam struct {
	LastPk    int64         `protobuf:"varint,1,opt,name=lastPk,proto3" json:"lastPk,omitempty"`
	PageSize  int64         `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Direction SortDirection `protobuf:"varint,3,opt,name=direction,proto3,enum=hdsdk.protobuf.SortDirection" json:"direction,omitempty"`
}

按last primary key分页

func (*NextParam) Descriptor added in v1.0.7

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

func (*NextParam) GetDirection added in v1.0.7

func (m *NextParam) GetDirection() SortDirection

func (*NextParam) GetLastPk added in v1.0.7

func (m *NextParam) GetLastPk() int64

func (*NextParam) GetPageSize added in v1.0.8

func (m *NextParam) GetPageSize() int64

func (*NextParam) Marshal added in v1.0.7

func (m *NextParam) Marshal() (dAtA []byte, err error)

func (*NextParam) MarshalTo added in v1.0.7

func (m *NextParam) MarshalTo(dAtA []byte) (int, error)

func (*NextParam) MarshalToSizedBuffer added in v1.0.7

func (m *NextParam) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NextParam) ProtoMessage added in v1.0.7

func (*NextParam) ProtoMessage()

func (*NextParam) Reset added in v1.0.7

func (m *NextParam) Reset()

func (*NextParam) Size added in v1.0.7

func (m *NextParam) Size() (n int)

func (*NextParam) String added in v1.0.7

func (m *NextParam) String() string

func (*NextParam) Unmarshal added in v1.0.7

func (m *NextParam) Unmarshal(dAtA []byte) error

func (*NextParam) XXX_DiscardUnknown added in v1.0.7

func (m *NextParam) XXX_DiscardUnknown()

func (*NextParam) XXX_Marshal added in v1.0.7

func (m *NextParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NextParam) XXX_Merge added in v1.0.7

func (m *NextParam) XXX_Merge(src proto.Message)

func (*NextParam) XXX_Size added in v1.0.7

func (m *NextParam) XXX_Size() int

func (*NextParam) XXX_Unmarshal added in v1.0.7

func (m *NextParam) XXX_Unmarshal(b []byte) error

type SortDirection added in v1.0.7

type SortDirection int32

排序方向

const (
	SortDirection_Asc  SortDirection = 0
	SortDirection_Desc SortDirection = 1
)

func (SortDirection) EnumDescriptor added in v1.0.7

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

func (SortDirection) String added in v1.0.7

func (x SortDirection) String() string

Jump to

Keyboard shortcuts

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