Documentation ¶
Index ¶
- Variables
- type DefaultResponse
- func (*DefaultResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DefaultResponse) GetData() *anypb.Any
- func (x *DefaultResponse) GetMessage() string
- func (x *DefaultResponse) GetStatus() ResultStatus
- func (*DefaultResponse) ProtoMessage()
- func (x *DefaultResponse) ProtoReflect() protoreflect.Message
- func (x *DefaultResponse) Reset()
- func (x *DefaultResponse) String() string
- type Page
- type PageRequest
- func (*PageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageRequest) GetPage() *Page
- func (m *PageRequest) GetPageRequest() isPageRequest_PageRequest
- func (x *PageRequest) GetPageToken() string
- func (*PageRequest) ProtoMessage()
- func (x *PageRequest) ProtoReflect() protoreflect.Message
- func (x *PageRequest) Reset()
- func (x *PageRequest) String() string
- type PageRequest_Page
- type PageRequest_PageToken
- type PageResponse
- func (*PageResponse) Descriptor() ([]byte, []int)deprecated
- func (m *PageResponse) GetPageResponse() isPageResponse_PageResponse
- func (x *PageResponse) GetPageResult() *PageResult
- func (x *PageResponse) GetPageToken() string
- func (*PageResponse) ProtoMessage()
- func (x *PageResponse) ProtoReflect() protoreflect.Message
- func (x *PageResponse) Reset()
- func (x *PageResponse) String() string
- type PageResponse_PageResult
- type PageResponse_PageToken
- type PageResult
- func (*PageResult) Descriptor() ([]byte, []int)deprecated
- func (x *PageResult) GetPageNo() int64
- func (x *PageResult) GetPageSize() int64
- func (x *PageResult) GetTotal() int64
- func (*PageResult) ProtoMessage()
- func (x *PageResult) ProtoReflect() protoreflect.Message
- func (x *PageResult) Reset()
- func (x *PageResult) String() string
- type ResultStatus
- func (ResultStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ResultStatus) Enum() *ResultStatus
- func (ResultStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ResultStatus) Number() protoreflect.EnumNumber
- func (x ResultStatus) String() string
- func (ResultStatus) Type() protoreflect.EnumType
- type Sort
- type SortField
- type StringList
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ResultStatus_name = map[int32]string{ 0: "Error", 1: "OK", 2: "Warning", 3: "NotFound", } ResultStatus_value = map[string]int32{ "Error": 0, "OK": 1, "Warning": 2, "NotFound": 3, } )
Enum value maps for ResultStatus.
View Source
var File_defaultResponse_proto protoreflect.FileDescriptor
View Source
var File_page_proto protoreflect.FileDescriptor
View Source
var File_sort_proto protoreflect.FileDescriptor
View Source
var File_stringlist_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DefaultResponse ¶
type DefaultResponse struct { Status ResultStatus `protobuf:"varint,1,opt,name=status,proto3,enum=genericproto.ResultStatus" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"` // contains filtered or unexported fields }
func (*DefaultResponse) Descriptor
deprecated
func (*DefaultResponse) Descriptor() ([]byte, []int)
Deprecated: Use DefaultResponse.ProtoReflect.Descriptor instead.
func (*DefaultResponse) GetData ¶
func (x *DefaultResponse) GetData() *anypb.Any
func (*DefaultResponse) GetMessage ¶
func (x *DefaultResponse) GetMessage() string
func (*DefaultResponse) GetStatus ¶
func (x *DefaultResponse) GetStatus() ResultStatus
func (*DefaultResponse) ProtoMessage ¶
func (*DefaultResponse) ProtoMessage()
func (*DefaultResponse) ProtoReflect ¶
func (x *DefaultResponse) ProtoReflect() protoreflect.Message
func (*DefaultResponse) Reset ¶
func (x *DefaultResponse) Reset()
func (*DefaultResponse) String ¶
func (x *DefaultResponse) String() string
type Page ¶
type Page struct { PageSize int64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` PageNo int64 `protobuf:"varint,3,opt,name=pageNo,proto3" json:"pageNo,omitempty"` // contains filtered or unexported fields }
func (*Page) Descriptor
deprecated
func (*Page) GetPageSize ¶
func (*Page) ProtoMessage ¶
func (*Page) ProtoMessage()
func (*Page) ProtoReflect ¶
func (x *Page) ProtoReflect() protoreflect.Message
type PageRequest ¶
type PageRequest struct { // Types that are assignable to PageRequest: // // *PageRequest_Page // *PageRequest_PageToken PageRequest isPageRequest_PageRequest `protobuf_oneof:"pageRequest"` // contains filtered or unexported fields }
func (*PageRequest) Descriptor
deprecated
func (*PageRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageRequest.ProtoReflect.Descriptor instead.
func (*PageRequest) GetPage ¶
func (x *PageRequest) GetPage() *Page
func (*PageRequest) GetPageRequest ¶
func (m *PageRequest) GetPageRequest() isPageRequest_PageRequest
func (*PageRequest) GetPageToken ¶
func (x *PageRequest) GetPageToken() string
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
type PageRequest_Page ¶
type PageRequest_Page struct {
Page *Page `protobuf:"bytes,1,opt,name=page,proto3,oneof"`
}
type PageRequest_PageToken ¶
type PageRequest_PageToken struct {
PageToken string `protobuf:"bytes,2,opt,name=PageToken,proto3,oneof"`
}
type PageResponse ¶
type PageResponse struct { // Types that are assignable to PageResponse: // // *PageResponse_PageResult // *PageResponse_PageToken PageResponse isPageResponse_PageResponse `protobuf_oneof:"pageResponse"` // contains filtered or unexported fields }
func (*PageResponse) Descriptor
deprecated
func (*PageResponse) Descriptor() ([]byte, []int)
Deprecated: Use PageResponse.ProtoReflect.Descriptor instead.
func (*PageResponse) GetPageResponse ¶
func (m *PageResponse) GetPageResponse() isPageResponse_PageResponse
func (*PageResponse) GetPageResult ¶
func (x *PageResponse) GetPageResult() *PageResult
func (*PageResponse) GetPageToken ¶
func (x *PageResponse) GetPageToken() string
func (*PageResponse) ProtoMessage ¶
func (*PageResponse) ProtoMessage()
func (*PageResponse) ProtoReflect ¶
func (x *PageResponse) ProtoReflect() protoreflect.Message
func (*PageResponse) Reset ¶
func (x *PageResponse) Reset()
func (*PageResponse) String ¶
func (x *PageResponse) String() string
type PageResponse_PageResult ¶
type PageResponse_PageResult struct {
PageResult *PageResult `protobuf:"bytes,1,opt,name=pageResult,proto3,oneof"`
}
type PageResponse_PageToken ¶
type PageResponse_PageToken struct {
PageToken string `protobuf:"bytes,2,opt,name=PageToken,proto3,oneof"`
}
type PageResult ¶
type PageResult struct { PageSize int64 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` PageNo int64 `protobuf:"varint,2,opt,name=pageNo,proto3" json:"pageNo,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*PageResult) Descriptor
deprecated
func (*PageResult) Descriptor() ([]byte, []int)
Deprecated: Use PageResult.ProtoReflect.Descriptor instead.
func (*PageResult) GetPageNo ¶
func (x *PageResult) GetPageNo() int64
func (*PageResult) GetPageSize ¶
func (x *PageResult) GetPageSize() int64
func (*PageResult) GetTotal ¶
func (x *PageResult) GetTotal() int64
func (*PageResult) ProtoMessage ¶
func (*PageResult) ProtoMessage()
func (*PageResult) ProtoReflect ¶
func (x *PageResult) ProtoReflect() protoreflect.Message
func (*PageResult) Reset ¶
func (x *PageResult) Reset()
func (*PageResult) String ¶
func (x *PageResult) String() string
type ResultStatus ¶
type ResultStatus int32
const ( ResultStatus_Error ResultStatus = 0 ResultStatus_OK ResultStatus = 1 ResultStatus_Warning ResultStatus = 2 ResultStatus_NotFound ResultStatus = 3 )
func (ResultStatus) Descriptor ¶
func (ResultStatus) Descriptor() protoreflect.EnumDescriptor
func (ResultStatus) Enum ¶
func (x ResultStatus) Enum() *ResultStatus
func (ResultStatus) EnumDescriptor
deprecated
func (ResultStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ResultStatus.Descriptor instead.
func (ResultStatus) Number ¶
func (x ResultStatus) Number() protoreflect.EnumNumber
func (ResultStatus) String ¶
func (x ResultStatus) String() string
func (ResultStatus) Type ¶
func (ResultStatus) Type() protoreflect.EnumType
type Sort ¶
type Sort struct { Sort []*SortField `protobuf:"bytes,1,rep,name=sort,proto3" json:"sort,omitempty"` // contains filtered or unexported fields }
func (*Sort) Descriptor
deprecated
func (*Sort) ProtoMessage ¶
func (*Sort) ProtoMessage()
func (*Sort) ProtoReflect ¶
func (x *Sort) ProtoReflect() protoreflect.Message
type SortField ¶
type SortField struct { Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` Ascending bool `protobuf:"varint,2,opt,name=ascending,proto3" json:"ascending,omitempty"` // contains filtered or unexported fields }
func (*SortField) Descriptor
deprecated
func (*SortField) GetAscending ¶
func (*SortField) ProtoMessage ¶
func (*SortField) ProtoMessage()
func (*SortField) ProtoReflect ¶
func (x *SortField) ProtoReflect() protoreflect.Message
type StringList ¶ added in v2.0.2
type StringList struct { Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*StringList) Descriptor
deprecated
added in
v2.0.2
func (*StringList) Descriptor() ([]byte, []int)
Deprecated: Use StringList.ProtoReflect.Descriptor instead.
func (*StringList) GetValues ¶ added in v2.0.2
func (x *StringList) GetValues() []string
func (*StringList) ProtoMessage ¶ added in v2.0.2
func (*StringList) ProtoMessage()
func (*StringList) ProtoReflect ¶ added in v2.0.2
func (x *StringList) ProtoReflect() protoreflect.Message
func (*StringList) Reset ¶ added in v2.0.2
func (x *StringList) Reset()
func (*StringList) String ¶ added in v2.0.2
func (x *StringList) String() string
Click to show internal directories.
Click to hide internal directories.