Documentation
¶
Index ¶
- Variables
- type ChangeProof
- func (*ChangeProof) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeProof) GetEndProof() []*ProofNode
- 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 GetChangeProofRequest
- func (*GetChangeProofRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetChangeProofRequest) GetBytesLimit() uint32
- func (x *GetChangeProofRequest) GetEndKey() *MaybeBytes
- func (x *GetChangeProofRequest) GetEndRootHash() []byte
- func (x *GetChangeProofRequest) GetKeyLimit() uint32
- func (x *GetChangeProofRequest) GetStartKey() *MaybeBytes
- func (x *GetChangeProofRequest) GetStartRootHash() []byte
- func (*GetChangeProofRequest) ProtoMessage()
- func (x *GetChangeProofRequest) ProtoReflect() protoreflect.Message
- func (x *GetChangeProofRequest) Reset()
- func (x *GetChangeProofRequest) String() string
- type GetChangeProofResponse
- func (*GetChangeProofResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetChangeProofResponse) GetChangeProof() []byte
- func (x *GetChangeProofResponse) GetRangeProof() []byte
- func (x *GetChangeProofResponse) GetResponse() isGetChangeProofResponse_Response
- func (*GetChangeProofResponse) ProtoMessage()
- func (x *GetChangeProofResponse) ProtoReflect() protoreflect.Message
- func (x *GetChangeProofResponse) Reset()
- func (x *GetChangeProofResponse) String() string
- type GetChangeProofResponse_ChangeProof
- type GetChangeProofResponse_RangeProof
- type GetRangeProofRequest
- func (*GetRangeProofRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRangeProofRequest) GetBytesLimit() uint32
- func (x *GetRangeProofRequest) GetEndKey() *MaybeBytes
- func (x *GetRangeProofRequest) GetKeyLimit() uint32
- func (x *GetRangeProofRequest) GetRootHash() []byte
- func (x *GetRangeProofRequest) GetStartKey() *MaybeBytes
- func (*GetRangeProofRequest) ProtoMessage()
- func (x *GetRangeProofRequest) ProtoReflect() protoreflect.Message
- func (x *GetRangeProofRequest) Reset()
- func (x *GetRangeProofRequest) String() string
- type Key
- 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() *Key
- 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) GetEndProof() []*ProofNode
- func (x *RangeProof) GetKeyValues() []*KeyValue
- func (x *RangeProof) GetStartProof() []*ProofNode
- func (*RangeProof) ProtoMessage()
- func (x *RangeProof) ProtoReflect() protoreflect.Message
- func (x *RangeProof) Reset()
- func (x *RangeProof) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_sync_sync_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ChangeProof ¶ added in v1.10.3
type ChangeProof struct {
StartProof []*ProofNode `protobuf:"bytes,1,rep,name=start_proof,json=startProof,proto3" json:"start_proof,omitempty"`
EndProof []*ProofNode `protobuf:"bytes,2,rep,name=end_proof,json=endProof,proto3" json:"end_proof,omitempty"`
KeyChanges []*KeyChange `protobuf:"bytes,3,rep,name=key_changes,json=keyChanges,proto3" json:"key_changes,omitempty"`
// contains filtered or unexported fields
}
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) 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 GetChangeProofRequest ¶ added in v1.10.3
type GetChangeProofRequest 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 *MaybeBytes `protobuf:"bytes,3,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"`
EndKey *MaybeBytes `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
}
func (*GetChangeProofRequest) Descriptor
deprecated
added in
v1.10.3
func (*GetChangeProofRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetChangeProofRequest.ProtoReflect.Descriptor instead.
func (*GetChangeProofRequest) GetBytesLimit ¶
func (x *GetChangeProofRequest) GetBytesLimit() uint32
func (*GetChangeProofRequest) GetEndKey ¶ added in v1.10.3
func (x *GetChangeProofRequest) GetEndKey() *MaybeBytes
func (*GetChangeProofRequest) GetEndRootHash ¶ added in v1.10.3
func (x *GetChangeProofRequest) GetEndRootHash() []byte
func (*GetChangeProofRequest) GetKeyLimit ¶ added in v1.10.3
func (x *GetChangeProofRequest) GetKeyLimit() uint32
func (*GetChangeProofRequest) GetStartKey ¶ added in v1.10.3
func (x *GetChangeProofRequest) GetStartKey() *MaybeBytes
func (*GetChangeProofRequest) GetStartRootHash ¶ added in v1.10.3
func (x *GetChangeProofRequest) GetStartRootHash() []byte
func (*GetChangeProofRequest) ProtoMessage ¶ added in v1.10.3
func (*GetChangeProofRequest) ProtoMessage()
func (*GetChangeProofRequest) ProtoReflect ¶ added in v1.10.3
func (x *GetChangeProofRequest) ProtoReflect() protoreflect.Message
func (*GetChangeProofRequest) Reset ¶ added in v1.10.3
func (x *GetChangeProofRequest) Reset()
func (*GetChangeProofRequest) String ¶ added in v1.10.3
func (x *GetChangeProofRequest) String() string
type GetChangeProofResponse ¶ added in v1.10.9
type GetChangeProofResponse struct {
// Types that are valid to be assigned to Response:
//
// *GetChangeProofResponse_ChangeProof
// *GetChangeProofResponse_RangeProof
Response isGetChangeProofResponse_Response `protobuf_oneof:"response"`
// contains filtered or unexported fields
}
func (*GetChangeProofResponse) Descriptor
deprecated
added in
v1.10.9
func (*GetChangeProofResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetChangeProofResponse.ProtoReflect.Descriptor instead.
func (*GetChangeProofResponse) GetChangeProof ¶ added in v1.10.9
func (x *GetChangeProofResponse) GetChangeProof() []byte
func (*GetChangeProofResponse) GetRangeProof ¶
func (x *GetChangeProofResponse) GetRangeProof() []byte
func (*GetChangeProofResponse) GetResponse ¶ added in v1.10.9
func (x *GetChangeProofResponse) GetResponse() isGetChangeProofResponse_Response
func (*GetChangeProofResponse) ProtoMessage ¶ added in v1.10.9
func (*GetChangeProofResponse) ProtoMessage()
func (*GetChangeProofResponse) ProtoReflect ¶ added in v1.10.9
func (x *GetChangeProofResponse) ProtoReflect() protoreflect.Message
func (*GetChangeProofResponse) Reset ¶ added in v1.10.9
func (x *GetChangeProofResponse) Reset()
func (*GetChangeProofResponse) String ¶ added in v1.10.9
func (x *GetChangeProofResponse) String() string
type GetChangeProofResponse_ChangeProof ¶ added in v1.10.9
type GetChangeProofResponse_ChangeProof struct {
ChangeProof []byte `protobuf:"bytes,1,opt,name=change_proof,json=changeProof,proto3,oneof"`
}
type GetChangeProofResponse_RangeProof ¶
type GetChangeProofResponse_RangeProof struct {
RangeProof []byte `protobuf:"bytes,2,opt,name=range_proof,json=rangeProof,proto3,oneof"`
}
type GetRangeProofRequest ¶ added in v1.10.3
type GetRangeProofRequest struct {
RootHash []byte `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
StartKey *MaybeBytes `protobuf:"bytes,2,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"`
EndKey *MaybeBytes `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
}
Range proof responses don't require any extra data, so no message is needed.
func (*GetRangeProofRequest) Descriptor
deprecated
added in
v1.10.3
func (*GetRangeProofRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRangeProofRequest.ProtoReflect.Descriptor instead.
func (*GetRangeProofRequest) GetBytesLimit ¶
func (x *GetRangeProofRequest) GetBytesLimit() uint32
func (*GetRangeProofRequest) GetEndKey ¶ added in v1.10.3
func (x *GetRangeProofRequest) GetEndKey() *MaybeBytes
func (*GetRangeProofRequest) GetKeyLimit ¶ added in v1.10.3
func (x *GetRangeProofRequest) GetKeyLimit() uint32
func (*GetRangeProofRequest) GetRootHash ¶ added in v1.10.3
func (x *GetRangeProofRequest) GetRootHash() []byte
func (*GetRangeProofRequest) GetStartKey ¶ added in v1.10.3
func (x *GetRangeProofRequest) GetStartKey() *MaybeBytes
func (*GetRangeProofRequest) ProtoMessage ¶ added in v1.10.3
func (*GetRangeProofRequest) ProtoMessage()
func (*GetRangeProofRequest) ProtoReflect ¶ added in v1.10.3
func (x *GetRangeProofRequest) ProtoReflect() protoreflect.Message
func (*GetRangeProofRequest) Reset ¶ added in v1.10.3
func (x *GetRangeProofRequest) Reset()
func (*GetRangeProofRequest) String ¶ added in v1.10.3
func (x *GetRangeProofRequest) String() string
type Key ¶ added in v1.10.14
type Key struct {
Length uint64 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Key) Descriptor
deprecated
added in
v1.10.14
func (*Key) ProtoMessage ¶ added in v1.10.14
func (*Key) ProtoMessage()
func (*Key) ProtoReflect ¶ added in v1.10.14
func (x *Key) ProtoReflect() protoreflect.Message
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
}
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
}
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"`
// contains filtered or unexported fields
}
If the message is present, the value is considered to be "something".
func (*MaybeBytes) Descriptor
deprecated
added in
v1.10.3
func (*MaybeBytes) Descriptor() ([]byte, []int)
Deprecated: Use MaybeBytes.ProtoReflect.Descriptor instead.
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 *Key `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 `` /* 144-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*ProofNode) Descriptor
deprecated
added in
v1.10.3
func (*ProofNode) GetChildren ¶ added in v1.10.3
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 {
StartProof []*ProofNode `protobuf:"bytes,1,rep,name=start_proof,json=startProof,proto3" json:"start_proof,omitempty"`
EndProof []*ProofNode `protobuf:"bytes,2,rep,name=end_proof,json=endProof,proto3" json:"end_proof,omitempty"`
KeyValues []*KeyValue `protobuf:"bytes,3,rep,name=key_values,json=keyValues,proto3" json:"key_values,omitempty"`
// contains filtered or unexported fields
}
func (*RangeProof) Descriptor
deprecated
added in
v1.10.3
func (*RangeProof) Descriptor() ([]byte, []int)
Deprecated: Use RangeProof.ProtoReflect.Descriptor instead.
func (*RangeProof) GetEndProof ¶ added in v1.10.10
func (x *RangeProof) GetEndProof() []*ProofNode
func (*RangeProof) GetKeyValues ¶ added in v1.10.3
func (x *RangeProof) GetKeyValues() []*KeyValue
func (*RangeProof) GetStartProof ¶ added in v1.10.10
func (x *RangeProof) GetStartProof() []*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
Click to show internal directories.
Click to hide internal directories.