Documentation ¶
Index ¶
- Variables
- type PingReq
- func (*PingReq) Descriptor() ([]byte, []int)deprecated
- func (x *PingReq) GetMessage() string
- func (*PingReq) ProtoMessage()
- func (x *PingReq) ProtoReflect() protoreflect.Message
- func (x *PingReq) Reset()
- func (x *PingReq) String() string
- func (m *PingReq) Validate() error
- func (m *PingReq) ValidateAll() error
- type PingReqMultiError
- type PingReqValidationError
- type PingResp
- func (*PingResp) Descriptor() ([]byte, []int)deprecated
- func (x *PingResp) GetCode() int32
- func (x *PingResp) GetData() *PingRespData
- func (x *PingResp) GetMessage() string
- func (x *PingResp) GetMetadata() map[string]string
- func (x *PingResp) GetReason() string
- func (*PingResp) ProtoMessage()
- func (x *PingResp) ProtoReflect() protoreflect.Message
- func (x *PingResp) Reset()
- func (x *PingResp) String() string
- func (m *PingResp) Validate() error
- func (m *PingResp) ValidateAll() error
- type PingRespData
- func (*PingRespData) Descriptor() ([]byte, []int)deprecated
- func (x *PingRespData) GetMessage() string
- func (*PingRespData) ProtoMessage()
- func (x *PingRespData) ProtoReflect() protoreflect.Message
- func (x *PingRespData) Reset()
- func (x *PingRespData) String() string
- func (m *PingRespData) Validate() error
- func (m *PingRespData) ValidateAll() error
- type PingRespDataMultiError
- type PingRespDataValidationError
- func (e PingRespDataValidationError) Cause() error
- func (e PingRespDataValidationError) Error() string
- func (e PingRespDataValidationError) ErrorName() string
- func (e PingRespDataValidationError) Field() string
- func (e PingRespDataValidationError) Key() bool
- func (e PingRespDataValidationError) Reason() string
- type PingRespMultiError
- type PingRespValidationError
Constants ¶
This section is empty.
Variables ¶
var File_api_ping_v1_resources_ping_resource_v1_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PingReq ¶
type PingReq struct { // message 请求消息 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
PingReq ping请求
ping请求
func (*PingReq) Descriptor
deprecated
func (*PingReq) GetMessage ¶
func (*PingReq) ProtoMessage ¶
func (*PingReq) ProtoMessage()
func (*PingReq) ProtoReflect ¶
func (x *PingReq) ProtoReflect() protoreflect.Message
func (*PingReq) Validate ¶ added in v0.2.23
Validate checks the field values on PingReq 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 (*PingReq) ValidateAll ¶ added in v0.2.23
ValidateAll checks the field values on PingReq 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 PingReqMultiError, or nil if none found.
type PingReqMultiError ¶ added in v0.2.23
type PingReqMultiError []error
PingReqMultiError is an error wrapping multiple validation errors returned by PingReq.ValidateAll() if the designated constraints aren't met.
func (PingReqMultiError) AllErrors ¶ added in v0.2.23
func (m PingReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PingReqMultiError) Error ¶ added in v0.2.23
func (m PingReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PingReqValidationError ¶ added in v0.2.23
type PingReqValidationError struct {
// contains filtered or unexported fields
}
PingReqValidationError is the validation error returned by PingReq.Validate if the designated constraints aren't met.
func (PingReqValidationError) Cause ¶ added in v0.2.23
func (e PingReqValidationError) Cause() error
Cause function returns cause value.
func (PingReqValidationError) Error ¶ added in v0.2.23
func (e PingReqValidationError) Error() string
Error satisfies the builtin error interface
func (PingReqValidationError) ErrorName ¶ added in v0.2.23
func (e PingReqValidationError) ErrorName() string
ErrorName returns error name.
func (PingReqValidationError) Field ¶ added in v0.2.23
func (e PingReqValidationError) Field() string
Field function returns field value.
func (PingReqValidationError) Key ¶ added in v0.2.23
func (e PingReqValidationError) Key() bool
Key function returns key value.
func (PingReqValidationError) Reason ¶ added in v0.2.23
func (e PingReqValidationError) Reason() string
Reason function returns reason value.
type PingResp ¶
type PingResp struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ Data *PingRespData `protobuf:"bytes,100,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
PingResp ping响应
ping响应
func (*PingResp) Descriptor
deprecated
func (*PingResp) GetData ¶ added in v0.2.24
func (x *PingResp) GetData() *PingRespData
func (*PingResp) GetMessage ¶
func (*PingResp) GetMetadata ¶ added in v0.2.24
func (*PingResp) ProtoMessage ¶
func (*PingResp) ProtoMessage()
func (*PingResp) ProtoReflect ¶
func (x *PingResp) ProtoReflect() protoreflect.Message
func (*PingResp) Validate ¶ added in v0.2.23
Validate checks the field values on PingResp 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 (*PingResp) ValidateAll ¶ added in v0.2.23
ValidateAll checks the field values on PingResp 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 PingRespMultiError, or nil if none found.
type PingRespData ¶ added in v0.2.24
type PingRespData struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PingRespData) Descriptor
deprecated
added in
v0.2.24
func (*PingRespData) Descriptor() ([]byte, []int)
Deprecated: Use PingRespData.ProtoReflect.Descriptor instead.
func (*PingRespData) GetMessage ¶ added in v0.2.25
func (x *PingRespData) GetMessage() string
func (*PingRespData) ProtoMessage ¶ added in v0.2.24
func (*PingRespData) ProtoMessage()
func (*PingRespData) ProtoReflect ¶ added in v0.2.24
func (x *PingRespData) ProtoReflect() protoreflect.Message
func (*PingRespData) Reset ¶ added in v0.2.24
func (x *PingRespData) Reset()
func (*PingRespData) String ¶ added in v0.2.24
func (x *PingRespData) String() string
func (*PingRespData) Validate ¶ added in v0.2.24
func (m *PingRespData) Validate() error
Validate checks the field values on PingRespData 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 (*PingRespData) ValidateAll ¶ added in v0.2.24
func (m *PingRespData) ValidateAll() error
ValidateAll checks the field values on PingRespData 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 PingRespDataMultiError, or nil if none found.
type PingRespDataMultiError ¶ added in v0.2.24
type PingRespDataMultiError []error
PingRespDataMultiError is an error wrapping multiple validation errors returned by PingRespData.ValidateAll() if the designated constraints aren't met.
func (PingRespDataMultiError) AllErrors ¶ added in v0.2.24
func (m PingRespDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PingRespDataMultiError) Error ¶ added in v0.2.24
func (m PingRespDataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PingRespDataValidationError ¶ added in v0.2.24
type PingRespDataValidationError struct {
// contains filtered or unexported fields
}
PingRespDataValidationError is the validation error returned by PingRespData.Validate if the designated constraints aren't met.
func (PingRespDataValidationError) Cause ¶ added in v0.2.24
func (e PingRespDataValidationError) Cause() error
Cause function returns cause value.
func (PingRespDataValidationError) Error ¶ added in v0.2.24
func (e PingRespDataValidationError) Error() string
Error satisfies the builtin error interface
func (PingRespDataValidationError) ErrorName ¶ added in v0.2.24
func (e PingRespDataValidationError) ErrorName() string
ErrorName returns error name.
func (PingRespDataValidationError) Field ¶ added in v0.2.24
func (e PingRespDataValidationError) Field() string
Field function returns field value.
func (PingRespDataValidationError) Key ¶ added in v0.2.24
func (e PingRespDataValidationError) Key() bool
Key function returns key value.
func (PingRespDataValidationError) Reason ¶ added in v0.2.24
func (e PingRespDataValidationError) Reason() string
Reason function returns reason value.
type PingRespMultiError ¶ added in v0.2.23
type PingRespMultiError []error
PingRespMultiError is an error wrapping multiple validation errors returned by PingResp.ValidateAll() if the designated constraints aren't met.
func (PingRespMultiError) AllErrors ¶ added in v0.2.23
func (m PingRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PingRespMultiError) Error ¶ added in v0.2.23
func (m PingRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PingRespValidationError ¶ added in v0.2.23
type PingRespValidationError struct {
// contains filtered or unexported fields
}
PingRespValidationError is the validation error returned by PingResp.Validate if the designated constraints aren't met.
func (PingRespValidationError) Cause ¶ added in v0.2.23
func (e PingRespValidationError) Cause() error
Cause function returns cause value.
func (PingRespValidationError) Error ¶ added in v0.2.23
func (e PingRespValidationError) Error() string
Error satisfies the builtin error interface
func (PingRespValidationError) ErrorName ¶ added in v0.2.23
func (e PingRespValidationError) ErrorName() string
ErrorName returns error name.
func (PingRespValidationError) Field ¶ added in v0.2.23
func (e PingRespValidationError) Field() string
Field function returns field value.
func (PingRespValidationError) Key ¶ added in v0.2.23
func (e PingRespValidationError) Key() bool
Key function returns key value.
func (PingRespValidationError) Reason ¶ added in v0.2.23
func (e PingRespValidationError) Reason() string
Reason function returns reason value.