protobuf

package
v2.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

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

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

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

func (*NextParam) GetDirection

func (m *NextParam) GetDirection() SortDirection

func (*NextParam) GetLastPk

func (m *NextParam) GetLastPk() int64

func (*NextParam) GetPageSize

func (m *NextParam) GetPageSize() int64

func (*NextParam) Marshal

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

func (*NextParam) MarshalTo

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

func (*NextParam) MarshalToSizedBuffer

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

func (*NextParam) ProtoMessage

func (*NextParam) ProtoMessage()

func (*NextParam) Reset

func (m *NextParam) Reset()

func (*NextParam) Size

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

func (*NextParam) String

func (m *NextParam) String() string

func (*NextParam) Unmarshal

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

func (*NextParam) XXX_DiscardUnknown

func (m *NextParam) XXX_DiscardUnknown()

func (*NextParam) XXX_Marshal

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

func (*NextParam) XXX_Merge

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

func (*NextParam) XXX_Size

func (m *NextParam) XXX_Size() int

func (*NextParam) XXX_Unmarshal

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

type RouteItem

type RouteItem struct {
	Id            int64    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	App           string   `protobuf:"bytes,2,opt,name=app,proto3" json:"app,omitempty"`
	ModuleName    string   `protobuf:"bytes,3,opt,name=moduleName,proto3" json:"moduleName,omitempty"`
	ModuleVersion int32    `protobuf:"varint,4,opt,name=moduleVersion,proto3" json:"moduleVersion,omitempty"`
	Handler       string   `protobuf:"bytes,5,opt,name=handler,proto3" json:"handler,omitempty"`
	Endpoint      string   `protobuf:"bytes,6,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	HttpMethod    string   `protobuf:"bytes,7,opt,name=httpMethod,proto3" json:"httpMethod,omitempty"`
	Origin        string   `protobuf:"bytes,8,opt,name=origin,proto3" json:"origin,omitempty"`
	IsPublic      int32    `protobuf:"varint,9,opt,name=isPublic,proto3" json:"isPublic,omitempty"`
	IsRawResponse int32    `protobuf:"varint,10,opt,name=isRawResponse,proto3" json:"isRawResponse,omitempty"`
	Permissions   []string `protobuf:"bytes,11,rep,name=permissions,proto3" json:"permissions,omitempty"`
	Url           string   `protobuf:"bytes,12,opt,name=url,proto3" json:"url,omitempty"`
	Comment       string   `protobuf:"bytes,13,opt,name=comment,proto3" json:"comment,omitempty"`
}

路由项

func (*RouteItem) Descriptor

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

func (*RouteItem) GetApp

func (m *RouteItem) GetApp() string

func (*RouteItem) GetComment

func (m *RouteItem) GetComment() string

func (*RouteItem) GetEndpoint

func (m *RouteItem) GetEndpoint() string

func (*RouteItem) GetHandler

func (m *RouteItem) GetHandler() string

func (*RouteItem) GetHttpMethod

func (m *RouteItem) GetHttpMethod() string

func (*RouteItem) GetId

func (m *RouteItem) GetId() int64

func (*RouteItem) GetIsPublic

func (m *RouteItem) GetIsPublic() int32

func (*RouteItem) GetIsRawResponse

func (m *RouteItem) GetIsRawResponse() int32

func (*RouteItem) GetModuleName

func (m *RouteItem) GetModuleName() string

func (*RouteItem) GetModuleVersion

func (m *RouteItem) GetModuleVersion() int32

func (*RouteItem) GetOrigin

func (m *RouteItem) GetOrigin() string

func (*RouteItem) GetPermissions

func (m *RouteItem) GetPermissions() []string

func (*RouteItem) GetUrl

func (m *RouteItem) GetUrl() string

func (*RouteItem) Marshal

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

func (*RouteItem) MarshalTo

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

func (*RouteItem) MarshalToSizedBuffer

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

func (*RouteItem) ProtoMessage

func (*RouteItem) ProtoMessage()

func (*RouteItem) Reset

func (m *RouteItem) Reset()

func (*RouteItem) Size

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

func (*RouteItem) String

func (m *RouteItem) String() string

func (*RouteItem) Unmarshal

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

func (*RouteItem) XXX_DiscardUnknown

func (m *RouteItem) XXX_DiscardUnknown()

func (*RouteItem) XXX_Marshal

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

func (*RouteItem) XXX_Merge

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

func (*RouteItem) XXX_Size

func (m *RouteItem) XXX_Size() int

func (*RouteItem) XXX_Unmarshal

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

type SortDirection

type SortDirection int32

排序方向

const (
	SortDirection_Asc  SortDirection = 0
	SortDirection_Desc SortDirection = 1
)

func (SortDirection) EnumDescriptor

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

func (SortDirection) String

func (x SortDirection) String() string

Jump to

Keyboard shortcuts

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