Documentation ¶
Index ¶
- Variables
- type TransportMessage
- func (*TransportMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TransportMessage) GetData() []byte
- func (*TransportMessage) ProtoMessage()
- func (x *TransportMessage) ProtoReflect() protoreflect.Message
- func (x *TransportMessage) Reset()
- func (x *TransportMessage) String() string
- func (m *TransportMessage) Validate() error
- func (m *TransportMessage) ValidateAll() error
- type TransportMessageMultiError
- type TransportMessageValidationError
- func (e TransportMessageValidationError) Cause() error
- func (e TransportMessageValidationError) Error() string
- func (e TransportMessageValidationError) ErrorName() string
- func (e TransportMessageValidationError) Field() string
- func (e TransportMessageValidationError) Key() bool
- func (e TransportMessageValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_consensus_komerbft_proto_transport_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type TransportMessage ¶
type TransportMessage struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*TransportMessage) Descriptor
deprecated
func (*TransportMessage) Descriptor() ([]byte, []int)
Deprecated: Use TransportMessage.ProtoReflect.Descriptor instead.
func (*TransportMessage) GetData ¶
func (x *TransportMessage) GetData() []byte
func (*TransportMessage) ProtoMessage ¶
func (*TransportMessage) ProtoMessage()
func (*TransportMessage) ProtoReflect ¶
func (x *TransportMessage) ProtoReflect() protoreflect.Message
func (*TransportMessage) Reset ¶
func (x *TransportMessage) Reset()
func (*TransportMessage) String ¶
func (x *TransportMessage) String() string
func (*TransportMessage) Validate ¶
func (m *TransportMessage) Validate() error
Validate checks the field values on TransportMessage 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 (*TransportMessage) ValidateAll ¶
func (m *TransportMessage) ValidateAll() error
ValidateAll checks the field values on TransportMessage 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 TransportMessageMultiError, or nil if none found.
type TransportMessageMultiError ¶
type TransportMessageMultiError []error
TransportMessageMultiError is an error wrapping multiple validation errors returned by TransportMessage.ValidateAll() if the designated constraints aren't met.
func (TransportMessageMultiError) AllErrors ¶
func (m TransportMessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TransportMessageMultiError) Error ¶
func (m TransportMessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TransportMessageValidationError ¶
type TransportMessageValidationError struct {
// contains filtered or unexported fields
}
TransportMessageValidationError is the validation error returned by TransportMessage.Validate if the designated constraints aren't met.
func (TransportMessageValidationError) Cause ¶
func (e TransportMessageValidationError) Cause() error
Cause function returns cause value.
func (TransportMessageValidationError) Error ¶
func (e TransportMessageValidationError) Error() string
Error satisfies the builtin error interface
func (TransportMessageValidationError) ErrorName ¶
func (e TransportMessageValidationError) ErrorName() string
ErrorName returns error name.
func (TransportMessageValidationError) Field ¶
func (e TransportMessageValidationError) Field() string
Field function returns field value.
func (TransportMessageValidationError) Key ¶
func (e TransportMessageValidationError) Key() bool
Key function returns key value.
func (TransportMessageValidationError) Reason ¶
func (e TransportMessageValidationError) Reason() string
Reason function returns reason value.