Documentation ¶
Index ¶
- Variables
- type ChangeProof
- func (*ChangeProof) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeProof) GetEndProof() []*ProofNode
- func (x *ChangeProof) GetHadRootsInHistory() bool
- func (x *ChangeProof) GetKeyChanges() []*KeyChange
- func (x *ChangeProof) GetStartProof() []*ProofNode
- func (*ChangeProof) ProtoMessage()
- func (x *ChangeProof) ProtoReflect() protoreflect.Message
- func (x *ChangeProof) Reset()
- func (x *ChangeProof) String() string
- type ChangeProofRequest
- func (*ChangeProofRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeProofRequest) GetBytesLimit() uint32
- func (x *ChangeProofRequest) GetEndKey() []byte
- func (x *ChangeProofRequest) GetEndRootHash() []byte
- func (x *ChangeProofRequest) GetKeyLimit() uint32
- func (x *ChangeProofRequest) GetStartKey() []byte
- func (x *ChangeProofRequest) GetStartRootHash() []byte
- func (*ChangeProofRequest) ProtoMessage()
- func (x *ChangeProofRequest) ProtoReflect() protoreflect.Message
- func (x *ChangeProofRequest) Reset()
- func (x *ChangeProofRequest) String() string
- type ChangeProofResponse
- func (*ChangeProofResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeProofResponse) GetChangeProof() *ChangeProof
- func (x *ChangeProofResponse) GetRangeProof() *RangeProof
- func (m *ChangeProofResponse) GetResponse() isChangeProofResponse_Response
- func (*ChangeProofResponse) ProtoMessage()
- func (x *ChangeProofResponse) ProtoReflect() protoreflect.Message
- func (x *ChangeProofResponse) Reset()
- func (x *ChangeProofResponse) String() string
- type ChangeProofResponse_ChangeProof
- type ChangeProofResponse_RangeProof
- type KeyChange
- type KeyValue
- type MaybeBytes
- type ProofNode
- func (*ProofNode) Descriptor() ([]byte, []int)deprecated
- func (x *ProofNode) GetChildren() map[uint32][]byte
- func (x *ProofNode) GetKey() *SerializedPath
- func (x *ProofNode) GetValueOrHash() *MaybeBytes
- func (*ProofNode) ProtoMessage()
- func (x *ProofNode) ProtoReflect() protoreflect.Message
- func (x *ProofNode) Reset()
- func (x *ProofNode) String() string
- type RangeProof
- func (*RangeProof) Descriptor() ([]byte, []int)deprecated
- func (x *RangeProof) GetEnd() []*ProofNode
- func (x *RangeProof) GetKeyValues() []*KeyValue
- func (x *RangeProof) GetStart() []*ProofNode
- func (*RangeProof) ProtoMessage()
- func (x *RangeProof) ProtoReflect() protoreflect.Message
- func (x *RangeProof) Reset()
- func (x *RangeProof) String() string
- type RangeProofRequest
- func (*RangeProofRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RangeProofRequest) GetBytesLimit() uint32
- func (x *RangeProofRequest) GetEndKey() []byte
- func (x *RangeProofRequest) GetKeyLimit() uint32
- func (x *RangeProofRequest) GetRootHash() []byte
- func (x *RangeProofRequest) GetStartKey() []byte
- func (*RangeProofRequest) ProtoMessage()
- func (x *RangeProofRequest) ProtoReflect() protoreflect.Message
- func (x *RangeProofRequest) Reset()
- func (x *RangeProofRequest) String() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetChangeProofRequest() *ChangeProofRequest
- func (m *Request) GetMessage() isRequest_Message
- func (x *Request) GetRangeProofRequest() *RangeProofRequest
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Request_ChangeProofRequest
- type Request_RangeProofRequest
- type SerializedPath
- func (*SerializedPath) Descriptor() ([]byte, []int)deprecated
- func (x *SerializedPath) GetNibbleLength() uint64
- func (x *SerializedPath) GetValue() []byte
- func (*SerializedPath) ProtoMessage()
- func (x *SerializedPath) ProtoReflect() protoreflect.Message
- func (x *SerializedPath) Reset()
- func (x *SerializedPath) String() string
Constants ¶
This section is empty.
Variables ¶
var File_sync_sync_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ChangeProof ¶ added in v1.10.3
type ChangeProof struct { HadRootsInHistory bool `protobuf:"varint,1,opt,name=had_roots_in_history,json=hadRootsInHistory,proto3" json:"had_roots_in_history,omitempty"` // TODO remove StartProof []*ProofNode `protobuf:"bytes,2,rep,name=start_proof,json=startProof,proto3" json:"start_proof,omitempty"` EndProof []*ProofNode `protobuf:"bytes,3,rep,name=end_proof,json=endProof,proto3" json:"end_proof,omitempty"` KeyChanges []*KeyChange `protobuf:"bytes,4,rep,name=key_changes,json=keyChanges,proto3" json:"key_changes,omitempty"` // contains filtered or unexported fields }
ChangeProof is a possible response to a ChangeProofRequest. It only consists of a proof of the smallest changed key, the highest changed key, and the keys that have changed between those. Some keys may be deleted (hence the use of KeyChange instead of KeyValue).
func (*ChangeProof) Descriptor
deprecated
added in
v1.10.3
func (*ChangeProof) Descriptor() ([]byte, []int)
Deprecated: Use ChangeProof.ProtoReflect.Descriptor instead.
func (*ChangeProof) GetEndProof ¶ added in v1.10.3
func (x *ChangeProof) GetEndProof() []*ProofNode
func (*ChangeProof) GetHadRootsInHistory ¶ added in v1.10.3
func (x *ChangeProof) GetHadRootsInHistory() bool
func (*ChangeProof) GetKeyChanges ¶ added in v1.10.3
func (x *ChangeProof) GetKeyChanges() []*KeyChange
func (*ChangeProof) GetStartProof ¶ added in v1.10.3
func (x *ChangeProof) GetStartProof() []*ProofNode
func (*ChangeProof) ProtoMessage ¶ added in v1.10.3
func (*ChangeProof) ProtoMessage()
func (*ChangeProof) ProtoReflect ¶ added in v1.10.3
func (x *ChangeProof) ProtoReflect() protoreflect.Message
func (*ChangeProof) Reset ¶ added in v1.10.3
func (x *ChangeProof) Reset()
func (*ChangeProof) String ¶ added in v1.10.3
func (x *ChangeProof) String() string
type ChangeProofRequest ¶
type ChangeProofRequest struct { StartRootHash []byte `protobuf:"bytes,1,opt,name=start_root_hash,json=startRootHash,proto3" json:"start_root_hash,omitempty"` EndRootHash []byte `protobuf:"bytes,2,opt,name=end_root_hash,json=endRootHash,proto3" json:"end_root_hash,omitempty"` StartKey []byte `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,4,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` KeyLimit uint32 `protobuf:"varint,5,opt,name=key_limit,json=keyLimit,proto3" json:"key_limit,omitempty"` BytesLimit uint32 `protobuf:"varint,6,opt,name=bytes_limit,json=bytesLimit,proto3" json:"bytes_limit,omitempty"` // contains filtered or unexported fields }
A ChangeProofRequest requests the changes between two revisions.
func (*ChangeProofRequest) Descriptor
deprecated
func (*ChangeProofRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChangeProofRequest.ProtoReflect.Descriptor instead.
func (*ChangeProofRequest) GetBytesLimit ¶
func (x *ChangeProofRequest) GetBytesLimit() uint32
func (*ChangeProofRequest) GetEndKey ¶
func (x *ChangeProofRequest) GetEndKey() []byte
func (*ChangeProofRequest) GetEndRootHash ¶
func (x *ChangeProofRequest) GetEndRootHash() []byte
func (*ChangeProofRequest) GetKeyLimit ¶
func (x *ChangeProofRequest) GetKeyLimit() uint32
func (*ChangeProofRequest) GetStartKey ¶
func (x *ChangeProofRequest) GetStartKey() []byte
func (*ChangeProofRequest) GetStartRootHash ¶
func (x *ChangeProofRequest) GetStartRootHash() []byte
func (*ChangeProofRequest) ProtoMessage ¶
func (*ChangeProofRequest) ProtoMessage()
func (*ChangeProofRequest) ProtoReflect ¶
func (x *ChangeProofRequest) ProtoReflect() protoreflect.Message
func (*ChangeProofRequest) Reset ¶
func (x *ChangeProofRequest) Reset()
func (*ChangeProofRequest) String ¶
func (x *ChangeProofRequest) String() string
type ChangeProofResponse ¶
type ChangeProofResponse struct { // Types that are assignable to Response: // // *ChangeProofResponse_ChangeProof // *ChangeProofResponse_RangeProof Response isChangeProofResponse_Response `protobuf_oneof:"response"` // contains filtered or unexported fields }
ChangeProofResponse is the response for a ChangeProofRequest.
func (*ChangeProofResponse) Descriptor
deprecated
func (*ChangeProofResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChangeProofResponse.ProtoReflect.Descriptor instead.
func (*ChangeProofResponse) GetChangeProof ¶
func (x *ChangeProofResponse) GetChangeProof() *ChangeProof
func (*ChangeProofResponse) GetRangeProof ¶
func (x *ChangeProofResponse) GetRangeProof() *RangeProof
func (*ChangeProofResponse) GetResponse ¶
func (m *ChangeProofResponse) GetResponse() isChangeProofResponse_Response
func (*ChangeProofResponse) ProtoMessage ¶
func (*ChangeProofResponse) ProtoMessage()
func (*ChangeProofResponse) ProtoReflect ¶
func (x *ChangeProofResponse) ProtoReflect() protoreflect.Message
func (*ChangeProofResponse) Reset ¶
func (x *ChangeProofResponse) Reset()
func (*ChangeProofResponse) String ¶
func (x *ChangeProofResponse) String() string
type ChangeProofResponse_ChangeProof ¶
type ChangeProofResponse_ChangeProof struct {
ChangeProof *ChangeProof `protobuf:"bytes,1,opt,name=change_proof,json=changeProof,proto3,oneof"`
}
type ChangeProofResponse_RangeProof ¶
type ChangeProofResponse_RangeProof struct {
RangeProof *RangeProof `protobuf:"bytes,2,opt,name=range_proof,json=rangeProof,proto3,oneof"`
}
type KeyChange ¶ added in v1.10.3
type KeyChange struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value *MaybeBytes `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
KeyChange is a change for a key from one revision to another. If the value is None, the key was deleted.
func (*KeyChange) Descriptor
deprecated
added in
v1.10.3
func (*KeyChange) GetValue ¶ added in v1.10.3
func (x *KeyChange) GetValue() *MaybeBytes
func (*KeyChange) ProtoMessage ¶ added in v1.10.3
func (*KeyChange) ProtoMessage()
func (*KeyChange) ProtoReflect ¶ added in v1.10.3
func (x *KeyChange) ProtoReflect() protoreflect.Message
type KeyValue ¶ added in v1.10.3
type KeyValue struct { Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
KeyValue represents a single key and its value.
func (*KeyValue) Descriptor
deprecated
added in
v1.10.3
func (*KeyValue) ProtoMessage ¶ added in v1.10.3
func (*KeyValue) ProtoMessage()
func (*KeyValue) ProtoReflect ¶ added in v1.10.3
func (x *KeyValue) ProtoReflect() protoreflect.Message
type MaybeBytes ¶ added in v1.10.3
type MaybeBytes struct { Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // If false, this is None. IsNothing bool `protobuf:"varint,2,opt,name=is_nothing,json=isNothing,proto3" json:"is_nothing,omitempty"` // contains filtered or unexported fields }
MaybeBytes is an option wrapping bytes.
func (*MaybeBytes) Descriptor
deprecated
added in
v1.10.3
func (*MaybeBytes) Descriptor() ([]byte, []int)
Deprecated: Use MaybeBytes.ProtoReflect.Descriptor instead.
func (*MaybeBytes) GetIsNothing ¶ added in v1.10.3
func (x *MaybeBytes) GetIsNothing() bool
func (*MaybeBytes) GetValue ¶ added in v1.10.3
func (x *MaybeBytes) GetValue() []byte
func (*MaybeBytes) ProtoMessage ¶ added in v1.10.3
func (*MaybeBytes) ProtoMessage()
func (*MaybeBytes) ProtoReflect ¶ added in v1.10.3
func (x *MaybeBytes) ProtoReflect() protoreflect.Message
func (*MaybeBytes) Reset ¶ added in v1.10.3
func (x *MaybeBytes) Reset()
func (*MaybeBytes) String ¶ added in v1.10.3
func (x *MaybeBytes) String() string
type ProofNode ¶ added in v1.10.3
type ProofNode struct { Key *SerializedPath `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` ValueOrHash *MaybeBytes `protobuf:"bytes,2,opt,name=value_or_hash,json=valueOrHash,proto3" json:"value_or_hash,omitempty"` Children map[uint32][]byte `` /* 158-byte string literal not displayed */ // contains filtered or unexported fields }
ProofNode is a node in a merkle proof.
func (*ProofNode) Descriptor
deprecated
added in
v1.10.3
func (*ProofNode) GetChildren ¶ added in v1.10.3
func (*ProofNode) GetKey ¶ added in v1.10.3
func (x *ProofNode) GetKey() *SerializedPath
func (*ProofNode) GetValueOrHash ¶ added in v1.10.3
func (x *ProofNode) GetValueOrHash() *MaybeBytes
func (*ProofNode) ProtoMessage ¶ added in v1.10.3
func (*ProofNode) ProtoMessage()
func (*ProofNode) ProtoReflect ¶ added in v1.10.3
func (x *ProofNode) ProtoReflect() protoreflect.Message
type RangeProof ¶ added in v1.10.3
type RangeProof struct { Start []*ProofNode `protobuf:"bytes,1,rep,name=start,proto3" json:"start,omitempty"` End []*ProofNode `protobuf:"bytes,2,rep,name=end,proto3" json:"end,omitempty"` KeyValues []*KeyValue `protobuf:"bytes,3,rep,name=key_values,json=keyValues,proto3" json:"key_values,omitempty"` // contains filtered or unexported fields }
RangeProof is the response to a RangeProofRequest.
func (*RangeProof) Descriptor
deprecated
added in
v1.10.3
func (*RangeProof) Descriptor() ([]byte, []int)
Deprecated: Use RangeProof.ProtoReflect.Descriptor instead.
func (*RangeProof) GetEnd ¶ added in v1.10.3
func (x *RangeProof) GetEnd() []*ProofNode
func (*RangeProof) GetKeyValues ¶ added in v1.10.3
func (x *RangeProof) GetKeyValues() []*KeyValue
func (*RangeProof) GetStart ¶ added in v1.10.3
func (x *RangeProof) GetStart() []*ProofNode
func (*RangeProof) ProtoMessage ¶ added in v1.10.3
func (*RangeProof) ProtoMessage()
func (*RangeProof) ProtoReflect ¶ added in v1.10.3
func (x *RangeProof) ProtoReflect() protoreflect.Message
func (*RangeProof) Reset ¶ added in v1.10.3
func (x *RangeProof) Reset()
func (*RangeProof) String ¶ added in v1.10.3
func (x *RangeProof) String() string
type RangeProofRequest ¶
type RangeProofRequest struct { RootHash []byte `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"` StartKey []byte `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"` EndKey []byte `protobuf:"bytes,3,opt,name=end_key,json=endKey,proto3" json:"end_key,omitempty"` KeyLimit uint32 `protobuf:"varint,4,opt,name=key_limit,json=keyLimit,proto3" json:"key_limit,omitempty"` BytesLimit uint32 `protobuf:"varint,5,opt,name=bytes_limit,json=bytesLimit,proto3" json:"bytes_limit,omitempty"` // contains filtered or unexported fields }
A RangeProofRequest requests the key-value pairs in a given key range at a specific revision.
func (*RangeProofRequest) Descriptor
deprecated
func (*RangeProofRequest) Descriptor() ([]byte, []int)
Deprecated: Use RangeProofRequest.ProtoReflect.Descriptor instead.
func (*RangeProofRequest) GetBytesLimit ¶
func (x *RangeProofRequest) GetBytesLimit() uint32
func (*RangeProofRequest) GetEndKey ¶
func (x *RangeProofRequest) GetEndKey() []byte
func (*RangeProofRequest) GetKeyLimit ¶
func (x *RangeProofRequest) GetKeyLimit() uint32
func (*RangeProofRequest) GetRootHash ¶
func (x *RangeProofRequest) GetRootHash() []byte
func (*RangeProofRequest) GetStartKey ¶
func (x *RangeProofRequest) GetStartKey() []byte
func (*RangeProofRequest) ProtoMessage ¶
func (*RangeProofRequest) ProtoMessage()
func (*RangeProofRequest) ProtoReflect ¶
func (x *RangeProofRequest) ProtoReflect() protoreflect.Message
func (*RangeProofRequest) Reset ¶
func (x *RangeProofRequest) Reset()
func (*RangeProofRequest) String ¶
func (x *RangeProofRequest) String() string
type Request ¶
type Request struct { // Types that are assignable to Message: // // *Request_RangeProofRequest // *Request_ChangeProofRequest Message isRequest_Message `protobuf_oneof:"message"` // contains filtered or unexported fields }
Request represents a request for information during syncing.
func (*Request) Descriptor
deprecated
func (*Request) GetChangeProofRequest ¶
func (x *Request) GetChangeProofRequest() *ChangeProofRequest
func (*Request) GetMessage ¶
func (m *Request) GetMessage() isRequest_Message
func (*Request) GetRangeProofRequest ¶
func (x *Request) GetRangeProofRequest() *RangeProofRequest
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Request_ChangeProofRequest ¶
type Request_ChangeProofRequest struct {
ChangeProofRequest *ChangeProofRequest `protobuf:"bytes,2,opt,name=change_proof_request,json=changeProofRequest,proto3,oneof"`
}
type Request_RangeProofRequest ¶
type Request_RangeProofRequest struct {
RangeProofRequest *RangeProofRequest `protobuf:"bytes,1,opt,name=range_proof_request,json=rangeProofRequest,proto3,oneof"`
}
type SerializedPath ¶ added in v1.10.3
type SerializedPath struct { NibbleLength uint64 `protobuf:"varint,1,opt,name=nibble_length,json=nibbleLength,proto3" json:"nibble_length,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
SerializedPath is the serialized representation of a path.
func (*SerializedPath) Descriptor
deprecated
added in
v1.10.3
func (*SerializedPath) Descriptor() ([]byte, []int)
Deprecated: Use SerializedPath.ProtoReflect.Descriptor instead.
func (*SerializedPath) GetNibbleLength ¶ added in v1.10.3
func (x *SerializedPath) GetNibbleLength() uint64
func (*SerializedPath) GetValue ¶ added in v1.10.3
func (x *SerializedPath) GetValue() []byte
func (*SerializedPath) ProtoMessage ¶ added in v1.10.3
func (*SerializedPath) ProtoMessage()
func (*SerializedPath) ProtoReflect ¶ added in v1.10.3
func (x *SerializedPath) ProtoReflect() protoreflect.Message
func (*SerializedPath) Reset ¶ added in v1.10.3
func (x *SerializedPath) Reset()
func (*SerializedPath) String ¶ added in v1.10.3
func (x *SerializedPath) String() string