Documentation ¶
Index ¶
- Variables
- type Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetCode() string
- func (x *Error) GetMessage() string
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (x *Error) String() string
- func (m *Error) Validate() error
- func (m *Error) ValidateAll() error
- type ErrorMultiError
- type ErrorValidationError
- type OperateReply
- func (*OperateReply) Descriptor() ([]byte, []int)deprecated
- func (x *OperateReply) GetResponse() *OperateResponse
- func (*OperateReply) ProtoMessage()
- func (x *OperateReply) ProtoReflect() protoreflect.Message
- func (x *OperateReply) Reset()
- func (x *OperateReply) String() string
- func (m *OperateReply) Validate() error
- func (m *OperateReply) ValidateAll() error
- type OperateReplyMultiError
- type OperateReplyValidationError
- func (e OperateReplyValidationError) Cause() error
- func (e OperateReplyValidationError) Error() string
- func (e OperateReplyValidationError) ErrorName() string
- func (e OperateReplyValidationError) Field() string
- func (e OperateReplyValidationError) Key() bool
- func (e OperateReplyValidationError) Reason() string
- type OperateRequest
- func (*OperateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OperateRequest) GetRequestID() string
- func (*OperateRequest) ProtoMessage()
- func (x *OperateRequest) ProtoReflect() protoreflect.Message
- func (x *OperateRequest) Reset()
- func (x *OperateRequest) String() string
- func (m *OperateRequest) Validate() error
- func (m *OperateRequest) ValidateAll() error
- type OperateRequestMultiError
- type OperateRequestValidationError
- func (e OperateRequestValidationError) Cause() error
- func (e OperateRequestValidationError) Error() string
- func (e OperateRequestValidationError) ErrorName() string
- func (e OperateRequestValidationError) Field() string
- func (e OperateRequestValidationError) Key() bool
- func (e OperateRequestValidationError) Reason() string
- type OperateResponse
- func (*OperateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OperateResponse) GetData() string
- func (x *OperateResponse) GetError() *Error
- func (x *OperateResponse) GetRequestID() string
- func (*OperateResponse) ProtoMessage()
- func (x *OperateResponse) ProtoReflect() protoreflect.Message
- func (x *OperateResponse) Reset()
- func (x *OperateResponse) String() string
- func (m *OperateResponse) Validate() error
- func (m *OperateResponse) ValidateAll() error
- type OperateResponseMultiError
- type OperateResponseValidationError
- func (e OperateResponseValidationError) Cause() error
- func (e OperateResponseValidationError) Error() string
- func (e OperateResponseValidationError) ErrorName() string
- func (e OperateResponseValidationError) Field() string
- func (e OperateResponseValidationError) Key() bool
- func (e OperateResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_base_base_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Code string `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
func (*Error) Validate ¶
Validate checks the field values on Error with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Error) ValidateAll ¶
ValidateAll checks the field values on Error with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ErrorMultiError, or nil if none found.
type ErrorMultiError ¶
type ErrorMultiError []error
ErrorMultiError is an error wrapping multiple validation errors returned by Error.ValidateAll() if the designated constraints aren't met.
func (ErrorMultiError) AllErrors ¶
func (m ErrorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ErrorMultiError) Error ¶
func (m ErrorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ErrorValidationError ¶
type ErrorValidationError struct {
// contains filtered or unexported fields
}
ErrorValidationError is the validation error returned by Error.Validate if the designated constraints aren't met.
func (ErrorValidationError) Cause ¶
func (e ErrorValidationError) Cause() error
Cause function returns cause value.
func (ErrorValidationError) Error ¶
func (e ErrorValidationError) Error() string
Error satisfies the builtin error interface
func (ErrorValidationError) ErrorName ¶
func (e ErrorValidationError) ErrorName() string
ErrorName returns error name.
func (ErrorValidationError) Field ¶
func (e ErrorValidationError) Field() string
Field function returns field value.
func (ErrorValidationError) Key ¶
func (e ErrorValidationError) Key() bool
Key function returns key value.
func (ErrorValidationError) Reason ¶
func (e ErrorValidationError) Reason() string
Reason function returns reason value.
type OperateReply ¶
type OperateReply struct { Response *OperateResponse `protobuf:"bytes,1,opt,name=Response,proto3" json:"Response,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func (*OperateReply) Descriptor
deprecated
func (*OperateReply) Descriptor() ([]byte, []int)
Deprecated: Use OperateReply.ProtoReflect.Descriptor instead.
func (*OperateReply) GetResponse ¶
func (x *OperateReply) GetResponse() *OperateResponse
func (*OperateReply) ProtoMessage ¶
func (*OperateReply) ProtoMessage()
func (*OperateReply) ProtoReflect ¶
func (x *OperateReply) ProtoReflect() protoreflect.Message
func (*OperateReply) Reset ¶
func (x *OperateReply) Reset()
func (*OperateReply) String ¶
func (x *OperateReply) String() string
func (*OperateReply) Validate ¶
func (m *OperateReply) Validate() error
Validate checks the field values on OperateReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*OperateReply) ValidateAll ¶
func (m *OperateReply) ValidateAll() error
ValidateAll checks the field values on OperateReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OperateReplyMultiError, or nil if none found.
type OperateReplyMultiError ¶
type OperateReplyMultiError []error
OperateReplyMultiError is an error wrapping multiple validation errors returned by OperateReply.ValidateAll() if the designated constraints aren't met.
func (OperateReplyMultiError) AllErrors ¶
func (m OperateReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OperateReplyMultiError) Error ¶
func (m OperateReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OperateReplyValidationError ¶
type OperateReplyValidationError struct {
// contains filtered or unexported fields
}
OperateReplyValidationError is the validation error returned by OperateReply.Validate if the designated constraints aren't met.
func (OperateReplyValidationError) Cause ¶
func (e OperateReplyValidationError) Cause() error
Cause function returns cause value.
func (OperateReplyValidationError) Error ¶
func (e OperateReplyValidationError) Error() string
Error satisfies the builtin error interface
func (OperateReplyValidationError) ErrorName ¶
func (e OperateReplyValidationError) ErrorName() string
ErrorName returns error name.
func (OperateReplyValidationError) Field ¶
func (e OperateReplyValidationError) Field() string
Field function returns field value.
func (OperateReplyValidationError) Key ¶
func (e OperateReplyValidationError) Key() bool
Key function returns key value.
func (OperateReplyValidationError) Reason ¶
func (e OperateReplyValidationError) Reason() string
Reason function returns reason value.
type OperateRequest ¶
type OperateRequest struct { RequestID string `protobuf:"bytes,1,opt,name=RequestID,proto3" json:"RequestID,omitempty"` // contains filtered or unexported fields }
func (*OperateRequest) Descriptor
deprecated
func (*OperateRequest) Descriptor() ([]byte, []int)
Deprecated: Use OperateRequest.ProtoReflect.Descriptor instead.
func (*OperateRequest) GetRequestID ¶
func (x *OperateRequest) GetRequestID() string
func (*OperateRequest) ProtoMessage ¶
func (*OperateRequest) ProtoMessage()
func (*OperateRequest) ProtoReflect ¶
func (x *OperateRequest) ProtoReflect() protoreflect.Message
func (*OperateRequest) Reset ¶
func (x *OperateRequest) Reset()
func (*OperateRequest) String ¶
func (x *OperateRequest) String() string
func (*OperateRequest) Validate ¶
func (m *OperateRequest) Validate() error
Validate checks the field values on OperateRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*OperateRequest) ValidateAll ¶
func (m *OperateRequest) ValidateAll() error
ValidateAll checks the field values on OperateRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OperateRequestMultiError, or nil if none found.
type OperateRequestMultiError ¶
type OperateRequestMultiError []error
OperateRequestMultiError is an error wrapping multiple validation errors returned by OperateRequest.ValidateAll() if the designated constraints aren't met.
func (OperateRequestMultiError) AllErrors ¶
func (m OperateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OperateRequestMultiError) Error ¶
func (m OperateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OperateRequestValidationError ¶
type OperateRequestValidationError struct {
// contains filtered or unexported fields
}
OperateRequestValidationError is the validation error returned by OperateRequest.Validate if the designated constraints aren't met.
func (OperateRequestValidationError) Cause ¶
func (e OperateRequestValidationError) Cause() error
Cause function returns cause value.
func (OperateRequestValidationError) Error ¶
func (e OperateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (OperateRequestValidationError) ErrorName ¶
func (e OperateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (OperateRequestValidationError) Field ¶
func (e OperateRequestValidationError) Field() string
Field function returns field value.
func (OperateRequestValidationError) Key ¶
func (e OperateRequestValidationError) Key() bool
Key function returns key value.
func (OperateRequestValidationError) Reason ¶
func (e OperateRequestValidationError) Reason() string
Reason function returns reason value.
type OperateResponse ¶
type OperateResponse struct { RequestID string `protobuf:"bytes,1,opt,name=RequestID,proto3" json:"RequestID,omitempty"` // RequestId 所有的POST请求的Response携带此字段 Error *Error `protobuf:"bytes,2,opt,name=Error,proto3,oneof" json:"Error,omitempty"` Data string `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*OperateResponse) Descriptor
deprecated
func (*OperateResponse) Descriptor() ([]byte, []int)
Deprecated: Use OperateResponse.ProtoReflect.Descriptor instead.
func (*OperateResponse) GetData ¶
func (x *OperateResponse) GetData() string
func (*OperateResponse) GetError ¶
func (x *OperateResponse) GetError() *Error
func (*OperateResponse) GetRequestID ¶
func (x *OperateResponse) GetRequestID() string
func (*OperateResponse) ProtoMessage ¶
func (*OperateResponse) ProtoMessage()
func (*OperateResponse) ProtoReflect ¶
func (x *OperateResponse) ProtoReflect() protoreflect.Message
func (*OperateResponse) Reset ¶
func (x *OperateResponse) Reset()
func (*OperateResponse) String ¶
func (x *OperateResponse) String() string
func (*OperateResponse) Validate ¶
func (m *OperateResponse) Validate() error
Validate checks the field values on OperateResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*OperateResponse) ValidateAll ¶
func (m *OperateResponse) ValidateAll() error
ValidateAll checks the field values on OperateResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OperateResponseMultiError, or nil if none found.
type OperateResponseMultiError ¶
type OperateResponseMultiError []error
OperateResponseMultiError is an error wrapping multiple validation errors returned by OperateResponse.ValidateAll() if the designated constraints aren't met.
func (OperateResponseMultiError) AllErrors ¶
func (m OperateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OperateResponseMultiError) Error ¶
func (m OperateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OperateResponseValidationError ¶
type OperateResponseValidationError struct {
// contains filtered or unexported fields
}
OperateResponseValidationError is the validation error returned by OperateResponse.Validate if the designated constraints aren't met.
func (OperateResponseValidationError) Cause ¶
func (e OperateResponseValidationError) Cause() error
Cause function returns cause value.
func (OperateResponseValidationError) Error ¶
func (e OperateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (OperateResponseValidationError) ErrorName ¶
func (e OperateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (OperateResponseValidationError) Field ¶
func (e OperateResponseValidationError) Field() string
Field function returns field value.
func (OperateResponseValidationError) Key ¶
func (e OperateResponseValidationError) Key() bool
Key function returns key value.
func (OperateResponseValidationError) Reason ¶
func (e OperateResponseValidationError) Reason() string
Reason function returns reason value.