Documentation ¶
Index ¶
- Variables
- func RegisterIbftOperatorServer(s grpc.ServiceRegistrar, srv IbftOperatorServer)
- type Candidate
- func (*Candidate) Descriptor() ([]byte, []int)deprecated
- func (x *Candidate) GetAddress() string
- func (x *Candidate) GetAuth() bool
- func (x *Candidate) GetBlsPubkey() []byte
- func (*Candidate) ProtoMessage()
- func (x *Candidate) ProtoReflect() protoreflect.Message
- func (x *Candidate) Reset()
- func (x *Candidate) String() string
- func (m *Candidate) Validate() error
- func (m *Candidate) ValidateAll() error
- type CandidateMultiError
- type CandidateValidationError
- type CandidatesResp
- func (*CandidatesResp) Descriptor() ([]byte, []int)deprecated
- func (x *CandidatesResp) GetCandidates() []*Candidate
- func (*CandidatesResp) ProtoMessage()
- func (x *CandidatesResp) ProtoReflect() protoreflect.Message
- func (x *CandidatesResp) Reset()
- func (x *CandidatesResp) String() string
- func (m *CandidatesResp) Validate() error
- func (m *CandidatesResp) ValidateAll() error
- type CandidatesRespMultiError
- type CandidatesRespValidationError
- func (e CandidatesRespValidationError) Cause() error
- func (e CandidatesRespValidationError) Error() string
- func (e CandidatesRespValidationError) ErrorName() string
- func (e CandidatesRespValidationError) Field() string
- func (e CandidatesRespValidationError) Key() bool
- func (e CandidatesRespValidationError) Reason() string
- type IbftOperatorClient
- type IbftOperatorServer
- type IbftStatusResp
- func (*IbftStatusResp) Descriptor() ([]byte, []int)deprecated
- func (x *IbftStatusResp) GetKey() string
- func (*IbftStatusResp) ProtoMessage()
- func (x *IbftStatusResp) ProtoReflect() protoreflect.Message
- func (x *IbftStatusResp) Reset()
- func (x *IbftStatusResp) String() string
- func (m *IbftStatusResp) Validate() error
- func (m *IbftStatusResp) ValidateAll() error
- type IbftStatusRespMultiError
- type IbftStatusRespValidationError
- func (e IbftStatusRespValidationError) Cause() error
- func (e IbftStatusRespValidationError) Error() string
- func (e IbftStatusRespValidationError) ErrorName() string
- func (e IbftStatusRespValidationError) Field() string
- func (e IbftStatusRespValidationError) Key() bool
- func (e IbftStatusRespValidationError) Reason() string
- type ProposeReq
- func (*ProposeReq) Descriptor() ([]byte, []int)deprecated
- func (x *ProposeReq) GetAddress() string
- func (x *ProposeReq) GetAuth() bool
- func (*ProposeReq) ProtoMessage()
- func (x *ProposeReq) ProtoReflect() protoreflect.Message
- func (x *ProposeReq) Reset()
- func (x *ProposeReq) String() string
- func (m *ProposeReq) Validate() error
- func (m *ProposeReq) ValidateAll() error
- type ProposeReqMultiError
- type ProposeReqValidationError
- type Snapshot
- func (*Snapshot) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot) GetHash() string
- func (x *Snapshot) GetNumber() uint64
- func (x *Snapshot) GetValidators() []*Snapshot_Validator
- func (x *Snapshot) GetVotes() []*Snapshot_Vote
- func (*Snapshot) ProtoMessage()
- func (x *Snapshot) ProtoReflect() protoreflect.Message
- func (x *Snapshot) Reset()
- func (x *Snapshot) String() string
- func (m *Snapshot) Validate() error
- func (m *Snapshot) ValidateAll() error
- type SnapshotMultiError
- type SnapshotReq
- func (*SnapshotReq) Descriptor() ([]byte, []int)deprecated
- func (x *SnapshotReq) GetLatest() bool
- func (x *SnapshotReq) GetNumber() uint64
- func (*SnapshotReq) ProtoMessage()
- func (x *SnapshotReq) ProtoReflect() protoreflect.Message
- func (x *SnapshotReq) Reset()
- func (x *SnapshotReq) String() string
- func (m *SnapshotReq) Validate() error
- func (m *SnapshotReq) ValidateAll() error
- type SnapshotReqMultiError
- type SnapshotReqValidationError
- func (e SnapshotReqValidationError) Cause() error
- func (e SnapshotReqValidationError) Error() string
- func (e SnapshotReqValidationError) ErrorName() string
- func (e SnapshotReqValidationError) Field() string
- func (e SnapshotReqValidationError) Key() bool
- func (e SnapshotReqValidationError) Reason() string
- type SnapshotValidationError
- type Snapshot_Validator
- func (*Snapshot_Validator) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot_Validator) GetAddress() string
- func (x *Snapshot_Validator) GetData() []byte
- func (x *Snapshot_Validator) GetType() string
- func (*Snapshot_Validator) ProtoMessage()
- func (x *Snapshot_Validator) ProtoReflect() protoreflect.Message
- func (x *Snapshot_Validator) Reset()
- func (x *Snapshot_Validator) String() string
- func (m *Snapshot_Validator) Validate() error
- func (m *Snapshot_Validator) ValidateAll() error
- type Snapshot_ValidatorMultiError
- type Snapshot_ValidatorValidationError
- func (e Snapshot_ValidatorValidationError) Cause() error
- func (e Snapshot_ValidatorValidationError) Error() string
- func (e Snapshot_ValidatorValidationError) ErrorName() string
- func (e Snapshot_ValidatorValidationError) Field() string
- func (e Snapshot_ValidatorValidationError) Key() bool
- func (e Snapshot_ValidatorValidationError) Reason() string
- type Snapshot_Vote
- func (*Snapshot_Vote) Descriptor() ([]byte, []int)deprecated
- func (x *Snapshot_Vote) GetAuth() bool
- func (x *Snapshot_Vote) GetProposed() string
- func (x *Snapshot_Vote) GetValidator() string
- func (*Snapshot_Vote) ProtoMessage()
- func (x *Snapshot_Vote) ProtoReflect() protoreflect.Message
- func (x *Snapshot_Vote) Reset()
- func (x *Snapshot_Vote) String() string
- func (m *Snapshot_Vote) Validate() error
- func (m *Snapshot_Vote) ValidateAll() error
- type Snapshot_VoteMultiError
- type Snapshot_VoteValidationError
- func (e Snapshot_VoteValidationError) Cause() error
- func (e Snapshot_VoteValidationError) Error() string
- func (e Snapshot_VoteValidationError) ErrorName() string
- func (e Snapshot_VoteValidationError) Field() string
- func (e Snapshot_VoteValidationError) Key() bool
- func (e Snapshot_VoteValidationError) Reason() string
- type UnimplementedIbftOperatorServer
- func (UnimplementedIbftOperatorServer) Candidates(context.Context, *emptypb.Empty) (*CandidatesResp, error)
- func (UnimplementedIbftOperatorServer) GetSnapshot(context.Context, *SnapshotReq) (*Snapshot, error)
- func (UnimplementedIbftOperatorServer) Propose(context.Context, *Candidate) (*emptypb.Empty, error)
- func (UnimplementedIbftOperatorServer) Status(context.Context, *emptypb.Empty) (*IbftStatusResp, error)
- type UnsafeIbftOperatorServer
Constants ¶
This section is empty.
Variables ¶
var File_consensus_ibft_proto_ibft_operator_proto protoreflect.FileDescriptor
var IbftOperator_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.IbftOperator", HandlerType: (*IbftOperatorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetSnapshot", Handler: _IbftOperator_GetSnapshot_Handler, }, { MethodName: "Propose", Handler: _IbftOperator_Propose_Handler, }, { MethodName: "Candidates", Handler: _IbftOperator_Candidates_Handler, }, { MethodName: "Status", Handler: _IbftOperator_Status_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "consensus/ibft/proto/ibft_operator.proto", }
IbftOperator_ServiceDesc is the grpc.ServiceDesc for IbftOperator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIbftOperatorServer ¶
func RegisterIbftOperatorServer(s grpc.ServiceRegistrar, srv IbftOperatorServer)
Types ¶
type Candidate ¶
type Candidate struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` BlsPubkey []byte `protobuf:"bytes,2,opt,name=bls_pubkey,json=blsPubkey,proto3" json:"bls_pubkey,omitempty"` Auth bool `protobuf:"varint,3,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*Candidate) Descriptor
deprecated
func (*Candidate) GetAddress ¶
func (*Candidate) GetBlsPubkey ¶ added in v0.6.0
func (*Candidate) ProtoMessage ¶
func (*Candidate) ProtoMessage()
func (*Candidate) ProtoReflect ¶
func (x *Candidate) ProtoReflect() protoreflect.Message
func (*Candidate) Validate ¶ added in v0.8.0
Validate checks the field values on Candidate 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 (*Candidate) ValidateAll ¶ added in v0.8.0
ValidateAll checks the field values on Candidate 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 CandidateMultiError, or nil if none found.
type CandidateMultiError ¶ added in v0.8.0
type CandidateMultiError []error
CandidateMultiError is an error wrapping multiple validation errors returned by Candidate.ValidateAll() if the designated constraints aren't met.
func (CandidateMultiError) AllErrors ¶ added in v0.8.0
func (m CandidateMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CandidateMultiError) Error ¶ added in v0.8.0
func (m CandidateMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CandidateValidationError ¶ added in v0.8.0
type CandidateValidationError struct {
// contains filtered or unexported fields
}
CandidateValidationError is the validation error returned by Candidate.Validate if the designated constraints aren't met.
func (CandidateValidationError) Cause ¶ added in v0.8.0
func (e CandidateValidationError) Cause() error
Cause function returns cause value.
func (CandidateValidationError) Error ¶ added in v0.8.0
func (e CandidateValidationError) Error() string
Error satisfies the builtin error interface
func (CandidateValidationError) ErrorName ¶ added in v0.8.0
func (e CandidateValidationError) ErrorName() string
ErrorName returns error name.
func (CandidateValidationError) Field ¶ added in v0.8.0
func (e CandidateValidationError) Field() string
Field function returns field value.
func (CandidateValidationError) Key ¶ added in v0.8.0
func (e CandidateValidationError) Key() bool
Key function returns key value.
func (CandidateValidationError) Reason ¶ added in v0.8.0
func (e CandidateValidationError) Reason() string
Reason function returns reason value.
type CandidatesResp ¶
type CandidatesResp struct { Candidates []*Candidate `protobuf:"bytes,1,rep,name=candidates,proto3" json:"candidates,omitempty"` // contains filtered or unexported fields }
func (*CandidatesResp) Descriptor
deprecated
func (*CandidatesResp) Descriptor() ([]byte, []int)
Deprecated: Use CandidatesResp.ProtoReflect.Descriptor instead.
func (*CandidatesResp) GetCandidates ¶
func (x *CandidatesResp) GetCandidates() []*Candidate
func (*CandidatesResp) ProtoMessage ¶
func (*CandidatesResp) ProtoMessage()
func (*CandidatesResp) ProtoReflect ¶
func (x *CandidatesResp) ProtoReflect() protoreflect.Message
func (*CandidatesResp) Reset ¶
func (x *CandidatesResp) Reset()
func (*CandidatesResp) String ¶
func (x *CandidatesResp) String() string
func (*CandidatesResp) Validate ¶ added in v0.8.0
func (m *CandidatesResp) Validate() error
Validate checks the field values on CandidatesResp 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 (*CandidatesResp) ValidateAll ¶ added in v0.8.0
func (m *CandidatesResp) ValidateAll() error
ValidateAll checks the field values on CandidatesResp 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 CandidatesRespMultiError, or nil if none found.
type CandidatesRespMultiError ¶ added in v0.8.0
type CandidatesRespMultiError []error
CandidatesRespMultiError is an error wrapping multiple validation errors returned by CandidatesResp.ValidateAll() if the designated constraints aren't met.
func (CandidatesRespMultiError) AllErrors ¶ added in v0.8.0
func (m CandidatesRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CandidatesRespMultiError) Error ¶ added in v0.8.0
func (m CandidatesRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CandidatesRespValidationError ¶ added in v0.8.0
type CandidatesRespValidationError struct {
// contains filtered or unexported fields
}
CandidatesRespValidationError is the validation error returned by CandidatesResp.Validate if the designated constraints aren't met.
func (CandidatesRespValidationError) Cause ¶ added in v0.8.0
func (e CandidatesRespValidationError) Cause() error
Cause function returns cause value.
func (CandidatesRespValidationError) Error ¶ added in v0.8.0
func (e CandidatesRespValidationError) Error() string
Error satisfies the builtin error interface
func (CandidatesRespValidationError) ErrorName ¶ added in v0.8.0
func (e CandidatesRespValidationError) ErrorName() string
ErrorName returns error name.
func (CandidatesRespValidationError) Field ¶ added in v0.8.0
func (e CandidatesRespValidationError) Field() string
Field function returns field value.
func (CandidatesRespValidationError) Key ¶ added in v0.8.0
func (e CandidatesRespValidationError) Key() bool
Key function returns key value.
func (CandidatesRespValidationError) Reason ¶ added in v0.8.0
func (e CandidatesRespValidationError) Reason() string
Reason function returns reason value.
type IbftOperatorClient ¶
type IbftOperatorClient interface { GetSnapshot(ctx context.Context, in *SnapshotReq, opts ...grpc.CallOption) (*Snapshot, error) Propose(ctx context.Context, in *Candidate, opts ...grpc.CallOption) (*emptypb.Empty, error) Candidates(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CandidatesResp, error) Status(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IbftStatusResp, error) }
IbftOperatorClient is the client API for IbftOperator service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewIbftOperatorClient ¶
func NewIbftOperatorClient(cc grpc.ClientConnInterface) IbftOperatorClient
type IbftOperatorServer ¶
type IbftOperatorServer interface { GetSnapshot(context.Context, *SnapshotReq) (*Snapshot, error) Propose(context.Context, *Candidate) (*emptypb.Empty, error) Candidates(context.Context, *emptypb.Empty) (*CandidatesResp, error) Status(context.Context, *emptypb.Empty) (*IbftStatusResp, error) // contains filtered or unexported methods }
IbftOperatorServer is the server API for IbftOperator service. All implementations must embed UnimplementedIbftOperatorServer for forward compatibility
type IbftStatusResp ¶
type IbftStatusResp struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*IbftStatusResp) Descriptor
deprecated
func (*IbftStatusResp) Descriptor() ([]byte, []int)
Deprecated: Use IbftStatusResp.ProtoReflect.Descriptor instead.
func (*IbftStatusResp) GetKey ¶
func (x *IbftStatusResp) GetKey() string
func (*IbftStatusResp) ProtoMessage ¶
func (*IbftStatusResp) ProtoMessage()
func (*IbftStatusResp) ProtoReflect ¶
func (x *IbftStatusResp) ProtoReflect() protoreflect.Message
func (*IbftStatusResp) Reset ¶
func (x *IbftStatusResp) Reset()
func (*IbftStatusResp) String ¶
func (x *IbftStatusResp) String() string
func (*IbftStatusResp) Validate ¶ added in v0.8.0
func (m *IbftStatusResp) Validate() error
Validate checks the field values on IbftStatusResp 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 (*IbftStatusResp) ValidateAll ¶ added in v0.8.0
func (m *IbftStatusResp) ValidateAll() error
ValidateAll checks the field values on IbftStatusResp 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 IbftStatusRespMultiError, or nil if none found.
type IbftStatusRespMultiError ¶ added in v0.8.0
type IbftStatusRespMultiError []error
IbftStatusRespMultiError is an error wrapping multiple validation errors returned by IbftStatusResp.ValidateAll() if the designated constraints aren't met.
func (IbftStatusRespMultiError) AllErrors ¶ added in v0.8.0
func (m IbftStatusRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (IbftStatusRespMultiError) Error ¶ added in v0.8.0
func (m IbftStatusRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type IbftStatusRespValidationError ¶ added in v0.8.0
type IbftStatusRespValidationError struct {
// contains filtered or unexported fields
}
IbftStatusRespValidationError is the validation error returned by IbftStatusResp.Validate if the designated constraints aren't met.
func (IbftStatusRespValidationError) Cause ¶ added in v0.8.0
func (e IbftStatusRespValidationError) Cause() error
Cause function returns cause value.
func (IbftStatusRespValidationError) Error ¶ added in v0.8.0
func (e IbftStatusRespValidationError) Error() string
Error satisfies the builtin error interface
func (IbftStatusRespValidationError) ErrorName ¶ added in v0.8.0
func (e IbftStatusRespValidationError) ErrorName() string
ErrorName returns error name.
func (IbftStatusRespValidationError) Field ¶ added in v0.8.0
func (e IbftStatusRespValidationError) Field() string
Field function returns field value.
func (IbftStatusRespValidationError) Key ¶ added in v0.8.0
func (e IbftStatusRespValidationError) Key() bool
Key function returns key value.
func (IbftStatusRespValidationError) Reason ¶ added in v0.8.0
func (e IbftStatusRespValidationError) Reason() string
Reason function returns reason value.
type ProposeReq ¶
type ProposeReq struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Auth bool `protobuf:"varint,2,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*ProposeReq) Descriptor
deprecated
func (*ProposeReq) Descriptor() ([]byte, []int)
Deprecated: Use ProposeReq.ProtoReflect.Descriptor instead.
func (*ProposeReq) GetAddress ¶
func (x *ProposeReq) GetAddress() string
func (*ProposeReq) GetAuth ¶
func (x *ProposeReq) GetAuth() bool
func (*ProposeReq) ProtoMessage ¶
func (*ProposeReq) ProtoMessage()
func (*ProposeReq) ProtoReflect ¶
func (x *ProposeReq) ProtoReflect() protoreflect.Message
func (*ProposeReq) Reset ¶
func (x *ProposeReq) Reset()
func (*ProposeReq) String ¶
func (x *ProposeReq) String() string
func (*ProposeReq) Validate ¶ added in v0.8.0
func (m *ProposeReq) Validate() error
Validate checks the field values on ProposeReq 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 (*ProposeReq) ValidateAll ¶ added in v0.8.0
func (m *ProposeReq) ValidateAll() error
ValidateAll checks the field values on ProposeReq 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 ProposeReqMultiError, or nil if none found.
type ProposeReqMultiError ¶ added in v0.8.0
type ProposeReqMultiError []error
ProposeReqMultiError is an error wrapping multiple validation errors returned by ProposeReq.ValidateAll() if the designated constraints aren't met.
func (ProposeReqMultiError) AllErrors ¶ added in v0.8.0
func (m ProposeReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ProposeReqMultiError) Error ¶ added in v0.8.0
func (m ProposeReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ProposeReqValidationError ¶ added in v0.8.0
type ProposeReqValidationError struct {
// contains filtered or unexported fields
}
ProposeReqValidationError is the validation error returned by ProposeReq.Validate if the designated constraints aren't met.
func (ProposeReqValidationError) Cause ¶ added in v0.8.0
func (e ProposeReqValidationError) Cause() error
Cause function returns cause value.
func (ProposeReqValidationError) Error ¶ added in v0.8.0
func (e ProposeReqValidationError) Error() string
Error satisfies the builtin error interface
func (ProposeReqValidationError) ErrorName ¶ added in v0.8.0
func (e ProposeReqValidationError) ErrorName() string
ErrorName returns error name.
func (ProposeReqValidationError) Field ¶ added in v0.8.0
func (e ProposeReqValidationError) Field() string
Field function returns field value.
func (ProposeReqValidationError) Key ¶ added in v0.8.0
func (e ProposeReqValidationError) Key() bool
Key function returns key value.
func (ProposeReqValidationError) Reason ¶ added in v0.8.0
func (e ProposeReqValidationError) Reason() string
Reason function returns reason value.
type Snapshot ¶
type Snapshot struct { Validators []*Snapshot_Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` Hash string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"` Votes []*Snapshot_Vote `protobuf:"bytes,4,rep,name=votes,proto3" json:"votes,omitempty"` // contains filtered or unexported fields }
func (*Snapshot) Descriptor
deprecated
func (*Snapshot) GetValidators ¶
func (x *Snapshot) GetValidators() []*Snapshot_Validator
func (*Snapshot) GetVotes ¶
func (x *Snapshot) GetVotes() []*Snapshot_Vote
func (*Snapshot) ProtoMessage ¶
func (*Snapshot) ProtoMessage()
func (*Snapshot) ProtoReflect ¶
func (x *Snapshot) ProtoReflect() protoreflect.Message
func (*Snapshot) Validate ¶ added in v0.8.0
Validate checks the field values on Snapshot 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 (*Snapshot) ValidateAll ¶ added in v0.8.0
ValidateAll checks the field values on Snapshot 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 SnapshotMultiError, or nil if none found.
type SnapshotMultiError ¶ added in v0.8.0
type SnapshotMultiError []error
SnapshotMultiError is an error wrapping multiple validation errors returned by Snapshot.ValidateAll() if the designated constraints aren't met.
func (SnapshotMultiError) AllErrors ¶ added in v0.8.0
func (m SnapshotMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SnapshotMultiError) Error ¶ added in v0.8.0
func (m SnapshotMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SnapshotReq ¶
type SnapshotReq struct { Latest bool `protobuf:"varint,1,opt,name=latest,proto3" json:"latest,omitempty"` Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
func (*SnapshotReq) Descriptor
deprecated
func (*SnapshotReq) Descriptor() ([]byte, []int)
Deprecated: Use SnapshotReq.ProtoReflect.Descriptor instead.
func (*SnapshotReq) GetLatest ¶
func (x *SnapshotReq) GetLatest() bool
func (*SnapshotReq) GetNumber ¶
func (x *SnapshotReq) GetNumber() uint64
func (*SnapshotReq) ProtoMessage ¶
func (*SnapshotReq) ProtoMessage()
func (*SnapshotReq) ProtoReflect ¶
func (x *SnapshotReq) ProtoReflect() protoreflect.Message
func (*SnapshotReq) Reset ¶
func (x *SnapshotReq) Reset()
func (*SnapshotReq) String ¶
func (x *SnapshotReq) String() string
func (*SnapshotReq) Validate ¶ added in v0.8.0
func (m *SnapshotReq) Validate() error
Validate checks the field values on SnapshotReq 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 (*SnapshotReq) ValidateAll ¶ added in v0.8.0
func (m *SnapshotReq) ValidateAll() error
ValidateAll checks the field values on SnapshotReq 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 SnapshotReqMultiError, or nil if none found.
type SnapshotReqMultiError ¶ added in v0.8.0
type SnapshotReqMultiError []error
SnapshotReqMultiError is an error wrapping multiple validation errors returned by SnapshotReq.ValidateAll() if the designated constraints aren't met.
func (SnapshotReqMultiError) AllErrors ¶ added in v0.8.0
func (m SnapshotReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SnapshotReqMultiError) Error ¶ added in v0.8.0
func (m SnapshotReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SnapshotReqValidationError ¶ added in v0.8.0
type SnapshotReqValidationError struct {
// contains filtered or unexported fields
}
SnapshotReqValidationError is the validation error returned by SnapshotReq.Validate if the designated constraints aren't met.
func (SnapshotReqValidationError) Cause ¶ added in v0.8.0
func (e SnapshotReqValidationError) Cause() error
Cause function returns cause value.
func (SnapshotReqValidationError) Error ¶ added in v0.8.0
func (e SnapshotReqValidationError) Error() string
Error satisfies the builtin error interface
func (SnapshotReqValidationError) ErrorName ¶ added in v0.8.0
func (e SnapshotReqValidationError) ErrorName() string
ErrorName returns error name.
func (SnapshotReqValidationError) Field ¶ added in v0.8.0
func (e SnapshotReqValidationError) Field() string
Field function returns field value.
func (SnapshotReqValidationError) Key ¶ added in v0.8.0
func (e SnapshotReqValidationError) Key() bool
Key function returns key value.
func (SnapshotReqValidationError) Reason ¶ added in v0.8.0
func (e SnapshotReqValidationError) Reason() string
Reason function returns reason value.
type SnapshotValidationError ¶ added in v0.8.0
type SnapshotValidationError struct {
// contains filtered or unexported fields
}
SnapshotValidationError is the validation error returned by Snapshot.Validate if the designated constraints aren't met.
func (SnapshotValidationError) Cause ¶ added in v0.8.0
func (e SnapshotValidationError) Cause() error
Cause function returns cause value.
func (SnapshotValidationError) Error ¶ added in v0.8.0
func (e SnapshotValidationError) Error() string
Error satisfies the builtin error interface
func (SnapshotValidationError) ErrorName ¶ added in v0.8.0
func (e SnapshotValidationError) ErrorName() string
ErrorName returns error name.
func (SnapshotValidationError) Field ¶ added in v0.8.0
func (e SnapshotValidationError) Field() string
Field function returns field value.
func (SnapshotValidationError) Key ¶ added in v0.8.0
func (e SnapshotValidationError) Key() bool
Key function returns key value.
func (SnapshotValidationError) Reason ¶ added in v0.8.0
func (e SnapshotValidationError) Reason() string
Reason function returns reason value.
type Snapshot_Validator ¶
type Snapshot_Validator struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Snapshot_Validator) Descriptor
deprecated
func (*Snapshot_Validator) Descriptor() ([]byte, []int)
Deprecated: Use Snapshot_Validator.ProtoReflect.Descriptor instead.
func (*Snapshot_Validator) GetAddress ¶
func (x *Snapshot_Validator) GetAddress() string
func (*Snapshot_Validator) GetData ¶ added in v0.6.0
func (x *Snapshot_Validator) GetData() []byte
func (*Snapshot_Validator) GetType ¶ added in v0.6.0
func (x *Snapshot_Validator) GetType() string
func (*Snapshot_Validator) ProtoMessage ¶
func (*Snapshot_Validator) ProtoMessage()
func (*Snapshot_Validator) ProtoReflect ¶
func (x *Snapshot_Validator) ProtoReflect() protoreflect.Message
func (*Snapshot_Validator) Reset ¶
func (x *Snapshot_Validator) Reset()
func (*Snapshot_Validator) String ¶
func (x *Snapshot_Validator) String() string
func (*Snapshot_Validator) Validate ¶ added in v0.8.0
func (m *Snapshot_Validator) Validate() error
Validate checks the field values on Snapshot_Validator 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 (*Snapshot_Validator) ValidateAll ¶ added in v0.8.0
func (m *Snapshot_Validator) ValidateAll() error
ValidateAll checks the field values on Snapshot_Validator 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 Snapshot_ValidatorMultiError, or nil if none found.
type Snapshot_ValidatorMultiError ¶ added in v0.8.0
type Snapshot_ValidatorMultiError []error
Snapshot_ValidatorMultiError is an error wrapping multiple validation errors returned by Snapshot_Validator.ValidateAll() if the designated constraints aren't met.
func (Snapshot_ValidatorMultiError) AllErrors ¶ added in v0.8.0
func (m Snapshot_ValidatorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Snapshot_ValidatorMultiError) Error ¶ added in v0.8.0
func (m Snapshot_ValidatorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Snapshot_ValidatorValidationError ¶ added in v0.8.0
type Snapshot_ValidatorValidationError struct {
// contains filtered or unexported fields
}
Snapshot_ValidatorValidationError is the validation error returned by Snapshot_Validator.Validate if the designated constraints aren't met.
func (Snapshot_ValidatorValidationError) Cause ¶ added in v0.8.0
func (e Snapshot_ValidatorValidationError) Cause() error
Cause function returns cause value.
func (Snapshot_ValidatorValidationError) Error ¶ added in v0.8.0
func (e Snapshot_ValidatorValidationError) Error() string
Error satisfies the builtin error interface
func (Snapshot_ValidatorValidationError) ErrorName ¶ added in v0.8.0
func (e Snapshot_ValidatorValidationError) ErrorName() string
ErrorName returns error name.
func (Snapshot_ValidatorValidationError) Field ¶ added in v0.8.0
func (e Snapshot_ValidatorValidationError) Field() string
Field function returns field value.
func (Snapshot_ValidatorValidationError) Key ¶ added in v0.8.0
func (e Snapshot_ValidatorValidationError) Key() bool
Key function returns key value.
func (Snapshot_ValidatorValidationError) Reason ¶ added in v0.8.0
func (e Snapshot_ValidatorValidationError) Reason() string
Reason function returns reason value.
type Snapshot_Vote ¶
type Snapshot_Vote struct { Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` Proposed string `protobuf:"bytes,2,opt,name=proposed,proto3" json:"proposed,omitempty"` Auth bool `protobuf:"varint,3,opt,name=auth,proto3" json:"auth,omitempty"` // contains filtered or unexported fields }
func (*Snapshot_Vote) Descriptor
deprecated
func (*Snapshot_Vote) Descriptor() ([]byte, []int)
Deprecated: Use Snapshot_Vote.ProtoReflect.Descriptor instead.
func (*Snapshot_Vote) GetAuth ¶
func (x *Snapshot_Vote) GetAuth() bool
func (*Snapshot_Vote) GetProposed ¶
func (x *Snapshot_Vote) GetProposed() string
func (*Snapshot_Vote) GetValidator ¶
func (x *Snapshot_Vote) GetValidator() string
func (*Snapshot_Vote) ProtoMessage ¶
func (*Snapshot_Vote) ProtoMessage()
func (*Snapshot_Vote) ProtoReflect ¶
func (x *Snapshot_Vote) ProtoReflect() protoreflect.Message
func (*Snapshot_Vote) Reset ¶
func (x *Snapshot_Vote) Reset()
func (*Snapshot_Vote) String ¶
func (x *Snapshot_Vote) String() string
func (*Snapshot_Vote) Validate ¶ added in v0.8.0
func (m *Snapshot_Vote) Validate() error
Validate checks the field values on Snapshot_Vote 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 (*Snapshot_Vote) ValidateAll ¶ added in v0.8.0
func (m *Snapshot_Vote) ValidateAll() error
ValidateAll checks the field values on Snapshot_Vote 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 Snapshot_VoteMultiError, or nil if none found.
type Snapshot_VoteMultiError ¶ added in v0.8.0
type Snapshot_VoteMultiError []error
Snapshot_VoteMultiError is an error wrapping multiple validation errors returned by Snapshot_Vote.ValidateAll() if the designated constraints aren't met.
func (Snapshot_VoteMultiError) AllErrors ¶ added in v0.8.0
func (m Snapshot_VoteMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Snapshot_VoteMultiError) Error ¶ added in v0.8.0
func (m Snapshot_VoteMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Snapshot_VoteValidationError ¶ added in v0.8.0
type Snapshot_VoteValidationError struct {
// contains filtered or unexported fields
}
Snapshot_VoteValidationError is the validation error returned by Snapshot_Vote.Validate if the designated constraints aren't met.
func (Snapshot_VoteValidationError) Cause ¶ added in v0.8.0
func (e Snapshot_VoteValidationError) Cause() error
Cause function returns cause value.
func (Snapshot_VoteValidationError) Error ¶ added in v0.8.0
func (e Snapshot_VoteValidationError) Error() string
Error satisfies the builtin error interface
func (Snapshot_VoteValidationError) ErrorName ¶ added in v0.8.0
func (e Snapshot_VoteValidationError) ErrorName() string
ErrorName returns error name.
func (Snapshot_VoteValidationError) Field ¶ added in v0.8.0
func (e Snapshot_VoteValidationError) Field() string
Field function returns field value.
func (Snapshot_VoteValidationError) Key ¶ added in v0.8.0
func (e Snapshot_VoteValidationError) Key() bool
Key function returns key value.
func (Snapshot_VoteValidationError) Reason ¶ added in v0.8.0
func (e Snapshot_VoteValidationError) Reason() string
Reason function returns reason value.
type UnimplementedIbftOperatorServer ¶
type UnimplementedIbftOperatorServer struct { }
UnimplementedIbftOperatorServer must be embedded to have forward compatible implementations.
func (UnimplementedIbftOperatorServer) Candidates ¶
func (UnimplementedIbftOperatorServer) Candidates(context.Context, *emptypb.Empty) (*CandidatesResp, error)
func (UnimplementedIbftOperatorServer) GetSnapshot ¶
func (UnimplementedIbftOperatorServer) GetSnapshot(context.Context, *SnapshotReq) (*Snapshot, error)
func (UnimplementedIbftOperatorServer) Status ¶
func (UnimplementedIbftOperatorServer) Status(context.Context, *emptypb.Empty) (*IbftStatusResp, error)
type UnsafeIbftOperatorServer ¶
type UnsafeIbftOperatorServer interface {
// contains filtered or unexported methods
}
UnsafeIbftOperatorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IbftOperatorServer will result in compilation errors.