Documentation ¶
Index ¶
- Variables
- type CommandPayload
- func (*CommandPayload) Descriptor() ([]byte, []int)deprecated
- func (x *CommandPayload) GetKey() string
- func (x *CommandPayload) GetOperation() Operation
- func (x *CommandPayload) GetValue() *anypb.Any
- func (*CommandPayload) ProtoMessage()
- func (x *CommandPayload) ProtoReflect() protoreflect.Message
- func (x *CommandPayload) Reset()
- func (x *CommandPayload) String() string
- func (m *CommandPayload) Validate() error
- func (m *CommandPayload) ValidateAll() error
- type CommandPayloadMultiError
- type CommandPayloadValidationError
- func (e CommandPayloadValidationError) Cause() error
- func (e CommandPayloadValidationError) Error() string
- func (e CommandPayloadValidationError) ErrorName() string
- func (e CommandPayloadValidationError) Field() string
- func (e CommandPayloadValidationError) Key() bool
- func (e CommandPayloadValidationError) Reason() string
- type Operation
Constants ¶
This section is empty.
Variables ¶
var ( Operation_name = map[int32]string{ 0: "NULL_OPERATION", 1: "SET", 2: "DELETE", } Operation_value = map[string]int32{ "NULL_OPERATION": 0, "SET": 1, "DELETE": 2, } )
Enum value maps for Operation.
var File_core_consensus_fsm_v1_fsm_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CommandPayload ¶
type CommandPayload struct { Operation Operation `` /* 163-byte string literal not displayed */ Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key" pg:"key" bun:"key" yaml:"key" csv:"key"` Value *anypb.Any `protobuf:"bytes,3,opt,name=value,proto3" json:"value" csv:"value" pg:"value" bun:"value" yaml:"value"` // contains filtered or unexported fields }
func (*CommandPayload) Descriptor
deprecated
func (*CommandPayload) Descriptor() ([]byte, []int)
Deprecated: Use CommandPayload.ProtoReflect.Descriptor instead.
func (*CommandPayload) GetKey ¶
func (x *CommandPayload) GetKey() string
func (*CommandPayload) GetOperation ¶
func (x *CommandPayload) GetOperation() Operation
func (*CommandPayload) GetValue ¶
func (x *CommandPayload) GetValue() *anypb.Any
func (*CommandPayload) ProtoMessage ¶
func (*CommandPayload) ProtoMessage()
func (*CommandPayload) ProtoReflect ¶
func (x *CommandPayload) ProtoReflect() protoreflect.Message
func (*CommandPayload) Reset ¶
func (x *CommandPayload) Reset()
func (*CommandPayload) String ¶
func (x *CommandPayload) String() string
func (*CommandPayload) Validate ¶
func (m *CommandPayload) Validate() error
Validate checks the field values on CommandPayload 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 (*CommandPayload) ValidateAll ¶
func (m *CommandPayload) ValidateAll() error
ValidateAll checks the field values on CommandPayload 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 CommandPayloadMultiError, or nil if none found.
type CommandPayloadMultiError ¶
type CommandPayloadMultiError []error
CommandPayloadMultiError is an error wrapping multiple validation errors returned by CommandPayload.ValidateAll() if the designated constraints aren't met.
func (CommandPayloadMultiError) AllErrors ¶
func (m CommandPayloadMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CommandPayloadMultiError) Error ¶
func (m CommandPayloadMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CommandPayloadValidationError ¶
type CommandPayloadValidationError struct {
// contains filtered or unexported fields
}
CommandPayloadValidationError is the validation error returned by CommandPayload.Validate if the designated constraints aren't met.
func (CommandPayloadValidationError) Cause ¶
func (e CommandPayloadValidationError) Cause() error
Cause function returns cause value.
func (CommandPayloadValidationError) Error ¶
func (e CommandPayloadValidationError) Error() string
Error satisfies the builtin error interface
func (CommandPayloadValidationError) ErrorName ¶
func (e CommandPayloadValidationError) ErrorName() string
ErrorName returns error name.
func (CommandPayloadValidationError) Field ¶
func (e CommandPayloadValidationError) Field() string
Field function returns field value.
func (CommandPayloadValidationError) Key ¶
func (e CommandPayloadValidationError) Key() bool
Key function returns key value.
func (CommandPayloadValidationError) Reason ¶
func (e CommandPayloadValidationError) Reason() string
Reason function returns reason value.
type Operation ¶
type Operation int32
func (Operation) Descriptor ¶
func (Operation) Descriptor() protoreflect.EnumDescriptor
func (Operation) EnumDescriptor
deprecated
func (Operation) Number ¶
func (x Operation) Number() protoreflect.EnumNumber
func (Operation) Type ¶
func (Operation) Type() protoreflect.EnumType