proto

package
v0.0.0-...-dd56834 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

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

Cause function returns cause value.

func (TransportMessageValidationError) Error

Error satisfies the builtin error interface

func (TransportMessageValidationError) ErrorName

ErrorName returns error name.

func (TransportMessageValidationError) Field

Field function returns field value.

func (TransportMessageValidationError) Key

Key function returns key value.

func (TransportMessageValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL