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) GetMessage() 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 PingRespMultiError
- type PingRespValidationError
Constants ¶
This section is empty.
Variables ¶
var File_api_test_service_v1_resources_test_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 request
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 ¶
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 ¶
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 ¶
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 ¶
func (m PingReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PingReqMultiError) Error ¶
func (m PingReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PingReqValidationError ¶
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 ¶
func (e PingReqValidationError) Cause() error
Cause function returns cause value.
func (PingReqValidationError) Error ¶
func (e PingReqValidationError) Error() string
Error satisfies the builtin error interface
func (PingReqValidationError) ErrorName ¶
func (e PingReqValidationError) ErrorName() string
ErrorName returns error name.
func (PingReqValidationError) Field ¶
func (e PingReqValidationError) Field() string
Field function returns field value.
func (PingReqValidationError) Key ¶
func (e PingReqValidationError) Key() bool
Key function returns key value.
func (PingReqValidationError) Reason ¶
func (e PingReqValidationError) Reason() string
Reason function returns reason value.
type PingResp ¶
type PingResp struct { // message Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
PingResp reply
func (*PingResp) Descriptor
deprecated
func (*PingResp) GetMessage ¶
func (*PingResp) ProtoMessage ¶
func (*PingResp) ProtoMessage()
func (*PingResp) ProtoReflect ¶
func (x *PingResp) ProtoReflect() protoreflect.Message
func (*PingResp) Validate ¶
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 ¶
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 PingRespMultiError ¶
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 ¶
func (m PingRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PingRespMultiError) Error ¶
func (m PingRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PingRespValidationError ¶
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 ¶
func (e PingRespValidationError) Cause() error
Cause function returns cause value.
func (PingRespValidationError) Error ¶
func (e PingRespValidationError) Error() string
Error satisfies the builtin error interface
func (PingRespValidationError) ErrorName ¶
func (e PingRespValidationError) ErrorName() string
ErrorName returns error name.
func (PingRespValidationError) Field ¶
func (e PingRespValidationError) Field() string
Field function returns field value.
func (PingRespValidationError) Key ¶
func (e PingRespValidationError) Key() bool
Key function returns key value.
func (PingRespValidationError) Reason ¶
func (e PingRespValidationError) Reason() string
Reason function returns reason value.