v1

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_core_consensus_raft_v1_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type JoinRequest

type JoinRequest struct {
	NodeId      string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id" bun:"node_id" yaml:"node_id" csv:"node_id" pg:"node_id"`
	RaftAddress string `` /* 160-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*JoinRequest) Descriptor deprecated

func (*JoinRequest) Descriptor() ([]byte, []int)

Deprecated: Use JoinRequest.ProtoReflect.Descriptor instead.

func (*JoinRequest) GetNodeId

func (x *JoinRequest) GetNodeId() string

func (*JoinRequest) GetRaftAddress

func (x *JoinRequest) GetRaftAddress() string

func (*JoinRequest) ProtoMessage

func (*JoinRequest) ProtoMessage()

func (*JoinRequest) ProtoReflect

func (x *JoinRequest) ProtoReflect() protoreflect.Message

func (*JoinRequest) Reset

func (x *JoinRequest) Reset()

func (*JoinRequest) String

func (x *JoinRequest) String() string

func (*JoinRequest) Validate

func (m *JoinRequest) Validate() error

Validate checks the field values on JoinRequest 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 (*JoinRequest) ValidateAll

func (m *JoinRequest) ValidateAll() error

ValidateAll checks the field values on JoinRequest 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 JoinRequestMultiError, or nil if none found.

type JoinRequestMultiError

type JoinRequestMultiError []error

JoinRequestMultiError is an error wrapping multiple validation errors returned by JoinRequest.ValidateAll() if the designated constraints aren't met.

func (JoinRequestMultiError) AllErrors

func (m JoinRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JoinRequestMultiError) Error

func (m JoinRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type JoinRequestValidationError

type JoinRequestValidationError struct {
	// contains filtered or unexported fields
}

JoinRequestValidationError is the validation error returned by JoinRequest.Validate if the designated constraints aren't met.

func (JoinRequestValidationError) Cause

Cause function returns cause value.

func (JoinRequestValidationError) Error

Error satisfies the builtin error interface

func (JoinRequestValidationError) ErrorName

func (e JoinRequestValidationError) ErrorName() string

ErrorName returns error name.

func (JoinRequestValidationError) Field

Field function returns field value.

func (JoinRequestValidationError) Key

Key function returns key value.

func (JoinRequestValidationError) Reason

Reason function returns reason value.

type JoinResponse

type JoinResponse struct {
	NodeId      string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id" pg:"node_id" bun:"node_id" yaml:"node_id" csv:"node_id"`
	RaftAddress string `` /* 160-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*JoinResponse) Descriptor deprecated

func (*JoinResponse) Descriptor() ([]byte, []int)

Deprecated: Use JoinResponse.ProtoReflect.Descriptor instead.

func (*JoinResponse) GetNodeId

func (x *JoinResponse) GetNodeId() string

func (*JoinResponse) GetRaftAddress

func (x *JoinResponse) GetRaftAddress() string

func (*JoinResponse) ProtoMessage

func (*JoinResponse) ProtoMessage()

func (*JoinResponse) ProtoReflect

func (x *JoinResponse) ProtoReflect() protoreflect.Message

func (*JoinResponse) Reset

func (x *JoinResponse) Reset()

func (*JoinResponse) String

func (x *JoinResponse) String() string

func (*JoinResponse) Validate

func (m *JoinResponse) Validate() error

Validate checks the field values on JoinResponse 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 (*JoinResponse) ValidateAll

func (m *JoinResponse) ValidateAll() error

ValidateAll checks the field values on JoinResponse 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 JoinResponseMultiError, or nil if none found.

type JoinResponseMultiError

type JoinResponseMultiError []error

JoinResponseMultiError is an error wrapping multiple validation errors returned by JoinResponse.ValidateAll() if the designated constraints aren't met.

func (JoinResponseMultiError) AllErrors

func (m JoinResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JoinResponseMultiError) Error

func (m JoinResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type JoinResponseValidationError

type JoinResponseValidationError struct {
	// contains filtered or unexported fields
}

JoinResponseValidationError is the validation error returned by JoinResponse.Validate if the designated constraints aren't met.

func (JoinResponseValidationError) Cause

Cause function returns cause value.

func (JoinResponseValidationError) Error

Error satisfies the builtin error interface

func (JoinResponseValidationError) ErrorName

func (e JoinResponseValidationError) ErrorName() string

ErrorName returns error name.

func (JoinResponseValidationError) Field

Field function returns field value.

func (JoinResponseValidationError) Key

Key function returns key value.

func (JoinResponseValidationError) Reason

Reason function returns reason value.

type RemoveRequest

type RemoveRequest struct {
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id" pg:"node_id" bun:"node_id" yaml:"node_id" csv:"node_id"`
	// contains filtered or unexported fields
}

func (*RemoveRequest) Descriptor deprecated

func (*RemoveRequest) Descriptor() ([]byte, []int)

Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.

func (*RemoveRequest) GetNodeId

func (x *RemoveRequest) GetNodeId() string

func (*RemoveRequest) ProtoMessage

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) ProtoReflect

func (x *RemoveRequest) ProtoReflect() protoreflect.Message

func (*RemoveRequest) Reset

func (x *RemoveRequest) Reset()

func (*RemoveRequest) String

func (x *RemoveRequest) String() string

func (*RemoveRequest) Validate

func (m *RemoveRequest) Validate() error

Validate checks the field values on RemoveRequest 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 (*RemoveRequest) ValidateAll

func (m *RemoveRequest) ValidateAll() error

ValidateAll checks the field values on RemoveRequest 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 RemoveRequestMultiError, or nil if none found.

type RemoveRequestMultiError

type RemoveRequestMultiError []error

RemoveRequestMultiError is an error wrapping multiple validation errors returned by RemoveRequest.ValidateAll() if the designated constraints aren't met.

func (RemoveRequestMultiError) AllErrors

func (m RemoveRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoveRequestMultiError) Error

func (m RemoveRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RemoveRequestValidationError

type RemoveRequestValidationError struct {
	// contains filtered or unexported fields
}

RemoveRequestValidationError is the validation error returned by RemoveRequest.Validate if the designated constraints aren't met.

func (RemoveRequestValidationError) Cause

Cause function returns cause value.

func (RemoveRequestValidationError) Error

Error satisfies the builtin error interface

func (RemoveRequestValidationError) ErrorName

func (e RemoveRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RemoveRequestValidationError) Field

Field function returns field value.

func (RemoveRequestValidationError) Key

Key function returns key value.

func (RemoveRequestValidationError) Reason

Reason function returns reason value.

type RemoveResponse

type RemoveResponse struct {
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id" pg:"node_id" bun:"node_id" yaml:"node_id" csv:"node_id"`
	// contains filtered or unexported fields
}

func (*RemoveResponse) Descriptor deprecated

func (*RemoveResponse) Descriptor() ([]byte, []int)

Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead.

func (*RemoveResponse) GetNodeId

func (x *RemoveResponse) GetNodeId() string

func (*RemoveResponse) ProtoMessage

func (*RemoveResponse) ProtoMessage()

func (*RemoveResponse) ProtoReflect

func (x *RemoveResponse) ProtoReflect() protoreflect.Message

func (*RemoveResponse) Reset

func (x *RemoveResponse) Reset()

func (*RemoveResponse) String

func (x *RemoveResponse) String() string

func (*RemoveResponse) Validate

func (m *RemoveResponse) Validate() error

Validate checks the field values on RemoveResponse 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 (*RemoveResponse) ValidateAll

func (m *RemoveResponse) ValidateAll() error

ValidateAll checks the field values on RemoveResponse 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 RemoveResponseMultiError, or nil if none found.

type RemoveResponseMultiError

type RemoveResponseMultiError []error

RemoveResponseMultiError is an error wrapping multiple validation errors returned by RemoveResponse.ValidateAll() if the designated constraints aren't met.

func (RemoveResponseMultiError) AllErrors

func (m RemoveResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RemoveResponseMultiError) Error

func (m RemoveResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RemoveResponseValidationError

type RemoveResponseValidationError struct {
	// contains filtered or unexported fields
}

RemoveResponseValidationError is the validation error returned by RemoveResponse.Validate if the designated constraints aren't met.

func (RemoveResponseValidationError) Cause

Cause function returns cause value.

func (RemoveResponseValidationError) Error

Error satisfies the builtin error interface

func (RemoveResponseValidationError) ErrorName

func (e RemoveResponseValidationError) ErrorName() string

ErrorName returns error name.

func (RemoveResponseValidationError) Field

Field function returns field value.

func (RemoveResponseValidationError) Key

Key function returns key value.

func (RemoveResponseValidationError) Reason

Reason function returns reason value.

type Stats

type Stats struct {
	Stats map[string]string `` /* 189-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Stats) Descriptor deprecated

func (*Stats) Descriptor() ([]byte, []int)

Deprecated: Use Stats.ProtoReflect.Descriptor instead.

func (*Stats) GetStats

func (x *Stats) GetStats() map[string]string

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) ProtoReflect

func (x *Stats) ProtoReflect() protoreflect.Message

func (*Stats) Reset

func (x *Stats) Reset()

func (*Stats) String

func (x *Stats) String() string

func (*Stats) Validate

func (m *Stats) Validate() error

Validate checks the field values on Stats 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 (*Stats) ValidateAll

func (m *Stats) ValidateAll() error

ValidateAll checks the field values on Stats 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 StatsMultiError, or nil if none found.

type StatsMultiError

type StatsMultiError []error

StatsMultiError is an error wrapping multiple validation errors returned by Stats.ValidateAll() if the designated constraints aren't met.

func (StatsMultiError) AllErrors

func (m StatsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatsMultiError) Error

func (m StatsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StatsRequest

type StatsRequest struct {
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id" csv:"node_id" pg:"node_id" bun:"node_id" yaml:"node_id"`
	// contains filtered or unexported fields
}

func (*StatsRequest) Descriptor deprecated

func (*StatsRequest) Descriptor() ([]byte, []int)

Deprecated: Use StatsRequest.ProtoReflect.Descriptor instead.

func (*StatsRequest) GetNodeId

func (x *StatsRequest) GetNodeId() string

func (*StatsRequest) ProtoMessage

func (*StatsRequest) ProtoMessage()

func (*StatsRequest) ProtoReflect

func (x *StatsRequest) ProtoReflect() protoreflect.Message

func (*StatsRequest) Reset

func (x *StatsRequest) Reset()

func (*StatsRequest) String

func (x *StatsRequest) String() string

func (*StatsRequest) Validate

func (m *StatsRequest) Validate() error

Validate checks the field values on StatsRequest 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 (*StatsRequest) ValidateAll

func (m *StatsRequest) ValidateAll() error

ValidateAll checks the field values on StatsRequest 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 StatsRequestMultiError, or nil if none found.

type StatsRequestMultiError

type StatsRequestMultiError []error

StatsRequestMultiError is an error wrapping multiple validation errors returned by StatsRequest.ValidateAll() if the designated constraints aren't met.

func (StatsRequestMultiError) AllErrors

func (m StatsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatsRequestMultiError) Error

func (m StatsRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StatsRequestValidationError

type StatsRequestValidationError struct {
	// contains filtered or unexported fields
}

StatsRequestValidationError is the validation error returned by StatsRequest.Validate if the designated constraints aren't met.

func (StatsRequestValidationError) Cause

Cause function returns cause value.

func (StatsRequestValidationError) Error

Error satisfies the builtin error interface

func (StatsRequestValidationError) ErrorName

func (e StatsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (StatsRequestValidationError) Field

Field function returns field value.

func (StatsRequestValidationError) Key

Key function returns key value.

func (StatsRequestValidationError) Reason

Reason function returns reason value.

type StatsResponse

type StatsResponse struct {
	NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id" pg:"node_id" bun:"node_id" yaml:"node_id" csv:"node_id"`
	Stats  *Stats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats" csv:"stats" pg:"stats" bun:"stats" yaml:"stats"`
	// contains filtered or unexported fields
}

func (*StatsResponse) Descriptor deprecated

func (*StatsResponse) Descriptor() ([]byte, []int)

Deprecated: Use StatsResponse.ProtoReflect.Descriptor instead.

func (*StatsResponse) GetNodeId

func (x *StatsResponse) GetNodeId() string

func (*StatsResponse) GetStats

func (x *StatsResponse) GetStats() *Stats

func (*StatsResponse) ProtoMessage

func (*StatsResponse) ProtoMessage()

func (*StatsResponse) ProtoReflect

func (x *StatsResponse) ProtoReflect() protoreflect.Message

func (*StatsResponse) Reset

func (x *StatsResponse) Reset()

func (*StatsResponse) String

func (x *StatsResponse) String() string

func (*StatsResponse) Validate

func (m *StatsResponse) Validate() error

Validate checks the field values on StatsResponse 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 (*StatsResponse) ValidateAll

func (m *StatsResponse) ValidateAll() error

ValidateAll checks the field values on StatsResponse 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 StatsResponseMultiError, or nil if none found.

type StatsResponseMultiError

type StatsResponseMultiError []error

StatsResponseMultiError is an error wrapping multiple validation errors returned by StatsResponse.ValidateAll() if the designated constraints aren't met.

func (StatsResponseMultiError) AllErrors

func (m StatsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StatsResponseMultiError) Error

func (m StatsResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StatsResponseValidationError

type StatsResponseValidationError struct {
	// contains filtered or unexported fields
}

StatsResponseValidationError is the validation error returned by StatsResponse.Validate if the designated constraints aren't met.

func (StatsResponseValidationError) Cause

Cause function returns cause value.

func (StatsResponseValidationError) Error

Error satisfies the builtin error interface

func (StatsResponseValidationError) ErrorName

func (e StatsResponseValidationError) ErrorName() string

ErrorName returns error name.

func (StatsResponseValidationError) Field

Field function returns field value.

func (StatsResponseValidationError) Key

Key function returns key value.

func (StatsResponseValidationError) Reason

Reason function returns reason value.

type StatsValidationError

type StatsValidationError struct {
	// contains filtered or unexported fields
}

StatsValidationError is the validation error returned by Stats.Validate if the designated constraints aren't met.

func (StatsValidationError) Cause

func (e StatsValidationError) Cause() error

Cause function returns cause value.

func (StatsValidationError) Error

func (e StatsValidationError) Error() string

Error satisfies the builtin error interface

func (StatsValidationError) ErrorName

func (e StatsValidationError) ErrorName() string

ErrorName returns error name.

func (StatsValidationError) Field

func (e StatsValidationError) Field() string

Field function returns field value.

func (StatsValidationError) Key

func (e StatsValidationError) Key() bool

Key function returns key value.

func (StatsValidationError) Reason

func (e StatsValidationError) Reason() string

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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