v1

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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

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

Cause function returns cause value.

func (CommandPayloadValidationError) Error

Error satisfies the builtin error interface

func (CommandPayloadValidationError) ErrorName

func (e CommandPayloadValidationError) ErrorName() string

ErrorName returns error name.

func (CommandPayloadValidationError) Field

Field function returns field value.

func (CommandPayloadValidationError) Key

Key function returns key value.

func (CommandPayloadValidationError) Reason

Reason function returns reason value.

type Operation

type Operation int32
const (
	Operation_NULL_OPERATION Operation = 0
	Operation_SET            Operation = 1
	Operation_DELETE         Operation = 2
)

func (Operation) Descriptor

func (Operation) Descriptor() protoreflect.EnumDescriptor

func (Operation) Enum

func (x Operation) Enum() *Operation

func (Operation) EnumDescriptor deprecated

func (Operation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Operation.Descriptor instead.

func (Operation) Number

func (x Operation) Number() protoreflect.EnumNumber

func (Operation) String

func (x Operation) String() string

func (Operation) Type

Jump to

Keyboard shortcuts

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