sync

package
v1.10.10-rc.4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DB_GetMerkleRoot_FullMethodName     = "/sync.DB/GetMerkleRoot"
	DB_GetProof_FullMethodName          = "/sync.DB/GetProof"
	DB_GetChangeProof_FullMethodName    = "/sync.DB/GetChangeProof"
	DB_VerifyChangeProof_FullMethodName = "/sync.DB/VerifyChangeProof"
	DB_CommitChangeProof_FullMethodName = "/sync.DB/CommitChangeProof"
	DB_GetRangeProof_FullMethodName     = "/sync.DB/GetRangeProof"
	DB_CommitRangeProof_FullMethodName  = "/sync.DB/CommitRangeProof"
)

Variables

View Source
var DB_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sync.DB",
	HandlerType: (*DBServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMerkleRoot",
			Handler:    _DB_GetMerkleRoot_Handler,
		},
		{
			MethodName: "GetProof",
			Handler:    _DB_GetProof_Handler,
		},
		{
			MethodName: "GetChangeProof",
			Handler:    _DB_GetChangeProof_Handler,
		},
		{
			MethodName: "VerifyChangeProof",
			Handler:    _DB_VerifyChangeProof_Handler,
		},
		{
			MethodName: "CommitChangeProof",
			Handler:    _DB_CommitChangeProof_Handler,
		},
		{
			MethodName: "GetRangeProof",
			Handler:    _DB_GetRangeProof_Handler,
		},
		{
			MethodName: "CommitRangeProof",
			Handler:    _DB_CommitRangeProof_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "sync/sync.proto",
}

DB_ServiceDesc is the grpc.ServiceDesc for DB service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_sync_sync_proto protoreflect.FileDescriptor

Functions

func RegisterDBServer added in v1.10.4

func RegisterDBServer(s grpc.ServiceRegistrar, srv DBServer)

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 CommitChangeProofRequest added in v1.10.3

type CommitChangeProofRequest struct {
	Proof *ChangeProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitChangeProofRequest) Descriptor deprecated added in v1.10.3

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

Deprecated: Use CommitChangeProofRequest.ProtoReflect.Descriptor instead.

func (*CommitChangeProofRequest) GetProof added in v1.10.3

func (x *CommitChangeProofRequest) GetProof() *ChangeProof

func (*CommitChangeProofRequest) ProtoMessage added in v1.10.3

func (*CommitChangeProofRequest) ProtoMessage()

func (*CommitChangeProofRequest) ProtoReflect added in v1.10.3

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

func (*CommitChangeProofRequest) Reset added in v1.10.3

func (x *CommitChangeProofRequest) Reset()

func (*CommitChangeProofRequest) String added in v1.10.3

func (x *CommitChangeProofRequest) String() string

type CommitRangeProofRequest added in v1.10.3

type CommitRangeProofRequest struct {
	StartKey   *MaybeBytes `protobuf:"bytes,1,opt,name=start_key,json=startKey,proto3" json:"start_key,omitempty"`
	RangeProof *RangeProof `protobuf:"bytes,2,opt,name=range_proof,json=rangeProof,proto3" json:"range_proof,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitRangeProofRequest) Descriptor deprecated added in v1.10.3

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

Deprecated: Use CommitRangeProofRequest.ProtoReflect.Descriptor instead.

func (*CommitRangeProofRequest) GetRangeProof added in v1.10.3

func (x *CommitRangeProofRequest) GetRangeProof() *RangeProof

func (*CommitRangeProofRequest) GetStartKey added in v1.10.3

func (x *CommitRangeProofRequest) GetStartKey() *MaybeBytes

func (*CommitRangeProofRequest) ProtoMessage added in v1.10.3

func (*CommitRangeProofRequest) ProtoMessage()

func (*CommitRangeProofRequest) ProtoReflect added in v1.10.3

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

func (*CommitRangeProofRequest) Reset added in v1.10.3

func (x *CommitRangeProofRequest) Reset()

func (*CommitRangeProofRequest) String added in v1.10.3

func (x *CommitRangeProofRequest) String() string

type DBClient added in v1.10.4

type DBClient interface {
	GetMerkleRoot(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMerkleRootResponse, error)
	GetProof(ctx context.Context, in *GetProofRequest, opts ...grpc.CallOption) (*GetProofResponse, error)
	GetChangeProof(ctx context.Context, in *GetChangeProofRequest, opts ...grpc.CallOption) (*GetChangeProofResponse, error)
	VerifyChangeProof(ctx context.Context, in *VerifyChangeProofRequest, opts ...grpc.CallOption) (*VerifyChangeProofResponse, error)
	CommitChangeProof(ctx context.Context, in *CommitChangeProofRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetRangeProof(ctx context.Context, in *GetRangeProofRequest, opts ...grpc.CallOption) (*GetRangeProofResponse, error)
	CommitRangeProof(ctx context.Context, in *CommitRangeProofRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

DBClient is the client API for DB 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 NewDBClient added in v1.10.4

func NewDBClient(cc grpc.ClientConnInterface) DBClient

type DBServer added in v1.10.4

DBServer is the server API for DB service. All implementations must embed UnimplementedDBServer for forward compatibility

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"`
	// 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) 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 assignable to Response:
	//
	//	*GetChangeProofResponse_ChangeProof
	//	*GetChangeProofResponse_RootNotPresent
	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() *ChangeProof

func (*GetChangeProofResponse) GetResponse added in v1.10.9

func (m *GetChangeProofResponse) GetResponse() isGetChangeProofResponse_Response

func (*GetChangeProofResponse) GetRootNotPresent added in v1.10.9

func (x *GetChangeProofResponse) GetRootNotPresent() bool

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 *ChangeProof `protobuf:"bytes,1,opt,name=change_proof,json=changeProof,proto3,oneof"`
}

type GetChangeProofResponse_RootNotPresent added in v1.10.9

type GetChangeProofResponse_RootNotPresent struct {
	// True iff server errored with merkledb.ErrInsufficientHistory.
	RootNotPresent bool `protobuf:"varint,2,opt,name=root_not_present,json=rootNotPresent,proto3,oneof"`
}

type GetMerkleRootResponse added in v1.10.3

type GetMerkleRootResponse struct {
	RootHash []byte `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMerkleRootResponse) Descriptor deprecated added in v1.10.3

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

Deprecated: Use GetMerkleRootResponse.ProtoReflect.Descriptor instead.

func (*GetMerkleRootResponse) GetRootHash added in v1.10.3

func (x *GetMerkleRootResponse) GetRootHash() []byte

func (*GetMerkleRootResponse) ProtoMessage added in v1.10.3

func (*GetMerkleRootResponse) ProtoMessage()

func (*GetMerkleRootResponse) ProtoReflect added in v1.10.3

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

func (*GetMerkleRootResponse) Reset added in v1.10.3

func (x *GetMerkleRootResponse) Reset()

func (*GetMerkleRootResponse) String added in v1.10.3

func (x *GetMerkleRootResponse) String() string

type GetProofRequest added in v1.10.3

type GetProofRequest struct {
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProofRequest) Descriptor deprecated added in v1.10.3

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

Deprecated: Use GetProofRequest.ProtoReflect.Descriptor instead.

func (*GetProofRequest) GetKey added in v1.10.3

func (x *GetProofRequest) GetKey() []byte

func (*GetProofRequest) ProtoMessage added in v1.10.3

func (*GetProofRequest) ProtoMessage()

func (*GetProofRequest) ProtoReflect added in v1.10.3

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

func (*GetProofRequest) Reset added in v1.10.3

func (x *GetProofRequest) Reset()

func (*GetProofRequest) String added in v1.10.3

func (x *GetProofRequest) String() string

type GetProofResponse added in v1.10.3

type GetProofResponse struct {
	Proof *Proof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProofResponse) Descriptor deprecated added in v1.10.3

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

Deprecated: Use GetProofResponse.ProtoReflect.Descriptor instead.

func (*GetProofResponse) GetProof added in v1.10.3

func (x *GetProofResponse) GetProof() *Proof

func (*GetProofResponse) ProtoMessage added in v1.10.3

func (*GetProofResponse) ProtoMessage()

func (*GetProofResponse) ProtoReflect added in v1.10.3

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

func (*GetProofResponse) Reset added in v1.10.3

func (x *GetProofResponse) Reset()

func (*GetProofResponse) String added in v1.10.3

func (x *GetProofResponse) String() string

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"`
	// contains filtered or unexported fields
}

func (*GetRangeProofRequest) Descriptor deprecated added in v1.10.3

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

Deprecated: Use GetRangeProofRequest.ProtoReflect.Descriptor instead.

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 GetRangeProofResponse added in v1.10.3

type GetRangeProofResponse struct {
	Proof *RangeProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRangeProofResponse) Descriptor deprecated added in v1.10.3

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

Deprecated: Use GetRangeProofResponse.ProtoReflect.Descriptor instead.

func (*GetRangeProofResponse) GetProof added in v1.10.3

func (x *GetRangeProofResponse) GetProof() *RangeProof

func (*GetRangeProofResponse) ProtoMessage added in v1.10.3

func (*GetRangeProofResponse) ProtoMessage()

func (*GetRangeProofResponse) ProtoReflect added in v1.10.3

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

func (*GetRangeProofResponse) Reset added in v1.10.3

func (x *GetRangeProofResponse) Reset()

func (*GetRangeProofResponse) String added in v1.10.3

func (x *GetRangeProofResponse) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use KeyChange.ProtoReflect.Descriptor instead.

func (*KeyChange) GetKey added in v1.10.3

func (x *KeyChange) GetKey() []byte

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

func (*KeyChange) Reset added in v1.10.3

func (x *KeyChange) Reset()

func (*KeyChange) String added in v1.10.3

func (x *KeyChange) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use KeyValue.ProtoReflect.Descriptor instead.

func (*KeyValue) GetKey added in v1.10.3

func (x *KeyValue) GetKey() []byte

func (*KeyValue) GetValue added in v1.10.3

func (x *KeyValue) GetValue() []byte

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

func (*KeyValue) Reset added in v1.10.3

func (x *KeyValue) Reset()

func (*KeyValue) String added in v1.10.3

func (x *KeyValue) String() string

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.
	// Otherwise this is Some.
	IsNothing bool `protobuf:"varint,2,opt,name=is_nothing,json=isNothing,proto3" json:"is_nothing,omitempty"`
	// contains filtered or unexported fields
}

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 Proof added in v1.10.3

type Proof 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"`
	Proof []*ProofNode `protobuf:"bytes,3,rep,name=proof,proto3" json:"proof,omitempty"`
	// contains filtered or unexported fields
}

func (*Proof) Descriptor deprecated added in v1.10.3

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

Deprecated: Use Proof.ProtoReflect.Descriptor instead.

func (*Proof) GetKey added in v1.10.3

func (x *Proof) GetKey() []byte

func (*Proof) GetProof added in v1.10.3

func (x *Proof) GetProof() []*ProofNode

func (*Proof) GetValue added in v1.10.3

func (x *Proof) GetValue() *MaybeBytes

func (*Proof) ProtoMessage added in v1.10.3

func (*Proof) ProtoMessage()

func (*Proof) ProtoReflect added in v1.10.3

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

func (*Proof) Reset added in v1.10.3

func (x *Proof) Reset()

func (*Proof) String added in v1.10.3

func (x *Proof) 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
}

func (*ProofNode) Descriptor deprecated added in v1.10.3

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

Deprecated: Use ProofNode.ProtoReflect.Descriptor instead.

func (*ProofNode) GetChildren added in v1.10.3

func (x *ProofNode) GetChildren() map[uint32][]byte

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

func (*ProofNode) Reset added in v1.10.3

func (x *ProofNode) Reset()

func (*ProofNode) String added in v1.10.3

func (x *ProofNode) String() string

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
}

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 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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetChangeProofRequest

func (x *Request) GetChangeProofRequest() *SyncGetChangeProofRequest

func (*Request) GetMessage

func (m *Request) GetMessage() isRequest_Message

func (*Request) GetRangeProofRequest

func (x *Request) GetRangeProofRequest() *SyncGetRangeProofRequest

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Request_ChangeProofRequest

type Request_ChangeProofRequest struct {
	ChangeProofRequest *SyncGetChangeProofRequest `protobuf:"bytes,2,opt,name=change_proof_request,json=changeProofRequest,proto3,oneof"`
}

type Request_RangeProofRequest

type Request_RangeProofRequest struct {
	RangeProofRequest *SyncGetRangeProofRequest `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
}

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

type SyncGetChangeProofRequest added in v1.10.3

type SyncGetChangeProofRequest 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
}

For use in sync client, which has a restriction on the size of the response. GetChangeProof in the DB service doesn't.

func (*SyncGetChangeProofRequest) Descriptor deprecated added in v1.10.3

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

Deprecated: Use SyncGetChangeProofRequest.ProtoReflect.Descriptor instead.

func (*SyncGetChangeProofRequest) GetBytesLimit added in v1.10.3

func (x *SyncGetChangeProofRequest) GetBytesLimit() uint32

func (*SyncGetChangeProofRequest) GetEndKey added in v1.10.3

func (x *SyncGetChangeProofRequest) GetEndKey() *MaybeBytes

func (*SyncGetChangeProofRequest) GetEndRootHash added in v1.10.3

func (x *SyncGetChangeProofRequest) GetEndRootHash() []byte

func (*SyncGetChangeProofRequest) GetKeyLimit added in v1.10.3

func (x *SyncGetChangeProofRequest) GetKeyLimit() uint32

func (*SyncGetChangeProofRequest) GetStartKey added in v1.10.3

func (x *SyncGetChangeProofRequest) GetStartKey() *MaybeBytes

func (*SyncGetChangeProofRequest) GetStartRootHash added in v1.10.3

func (x *SyncGetChangeProofRequest) GetStartRootHash() []byte

func (*SyncGetChangeProofRequest) ProtoMessage added in v1.10.3

func (*SyncGetChangeProofRequest) ProtoMessage()

func (*SyncGetChangeProofRequest) ProtoReflect added in v1.10.3

func (*SyncGetChangeProofRequest) Reset added in v1.10.3

func (x *SyncGetChangeProofRequest) Reset()

func (*SyncGetChangeProofRequest) String added in v1.10.3

func (x *SyncGetChangeProofRequest) String() string

type SyncGetChangeProofResponse added in v1.10.3

type SyncGetChangeProofResponse struct {

	// Types that are assignable to Response:
	//
	//	*SyncGetChangeProofResponse_ChangeProof
	//	*SyncGetChangeProofResponse_RangeProof
	Response isSyncGetChangeProofResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func (*SyncGetChangeProofResponse) Descriptor deprecated added in v1.10.3

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

Deprecated: Use SyncGetChangeProofResponse.ProtoReflect.Descriptor instead.

func (*SyncGetChangeProofResponse) GetChangeProof added in v1.10.3

func (x *SyncGetChangeProofResponse) GetChangeProof() *ChangeProof

func (*SyncGetChangeProofResponse) GetRangeProof added in v1.10.3

func (x *SyncGetChangeProofResponse) GetRangeProof() *RangeProof

func (*SyncGetChangeProofResponse) GetResponse added in v1.10.3

func (m *SyncGetChangeProofResponse) GetResponse() isSyncGetChangeProofResponse_Response

func (*SyncGetChangeProofResponse) ProtoMessage added in v1.10.3

func (*SyncGetChangeProofResponse) ProtoMessage()

func (*SyncGetChangeProofResponse) ProtoReflect added in v1.10.3

func (*SyncGetChangeProofResponse) Reset added in v1.10.3

func (x *SyncGetChangeProofResponse) Reset()

func (*SyncGetChangeProofResponse) String added in v1.10.3

func (x *SyncGetChangeProofResponse) String() string

type SyncGetChangeProofResponse_ChangeProof added in v1.10.3

type SyncGetChangeProofResponse_ChangeProof struct {
	ChangeProof *ChangeProof `protobuf:"bytes,1,opt,name=change_proof,json=changeProof,proto3,oneof"`
}

type SyncGetChangeProofResponse_RangeProof added in v1.10.3

type SyncGetChangeProofResponse_RangeProof struct {
	RangeProof *RangeProof `protobuf:"bytes,2,opt,name=range_proof,json=rangeProof,proto3,oneof"`
}

type SyncGetRangeProofRequest added in v1.10.3

type SyncGetRangeProofRequest 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
}

For use in sync client, which has a restriction on the size of the response. GetRangeProof in the DB service doesn't.

func (*SyncGetRangeProofRequest) Descriptor deprecated added in v1.10.3

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

Deprecated: Use SyncGetRangeProofRequest.ProtoReflect.Descriptor instead.

func (*SyncGetRangeProofRequest) GetBytesLimit added in v1.10.3

func (x *SyncGetRangeProofRequest) GetBytesLimit() uint32

func (*SyncGetRangeProofRequest) GetEndKey added in v1.10.3

func (x *SyncGetRangeProofRequest) GetEndKey() *MaybeBytes

func (*SyncGetRangeProofRequest) GetKeyLimit added in v1.10.3

func (x *SyncGetRangeProofRequest) GetKeyLimit() uint32

func (*SyncGetRangeProofRequest) GetRootHash added in v1.10.3

func (x *SyncGetRangeProofRequest) GetRootHash() []byte

func (*SyncGetRangeProofRequest) GetStartKey added in v1.10.3

func (x *SyncGetRangeProofRequest) GetStartKey() *MaybeBytes

func (*SyncGetRangeProofRequest) ProtoMessage added in v1.10.3

func (*SyncGetRangeProofRequest) ProtoMessage()

func (*SyncGetRangeProofRequest) ProtoReflect added in v1.10.3

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

func (*SyncGetRangeProofRequest) Reset added in v1.10.3

func (x *SyncGetRangeProofRequest) Reset()

func (*SyncGetRangeProofRequest) String added in v1.10.3

func (x *SyncGetRangeProofRequest) String() string

type UnimplementedDBServer added in v1.10.4

type UnimplementedDBServer struct {
}

UnimplementedDBServer must be embedded to have forward compatible implementations.

func (UnimplementedDBServer) CommitChangeProof added in v1.10.4

func (UnimplementedDBServer) CommitRangeProof added in v1.10.4

func (UnimplementedDBServer) GetChangeProof added in v1.10.4

func (UnimplementedDBServer) GetMerkleRoot added in v1.10.4

func (UnimplementedDBServer) GetProof added in v1.10.4

func (UnimplementedDBServer) GetRangeProof added in v1.10.4

func (UnimplementedDBServer) VerifyChangeProof added in v1.10.4

type UnsafeDBServer added in v1.10.4

type UnsafeDBServer interface {
	// contains filtered or unexported methods
}

UnsafeDBServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DBServer will result in compilation errors.

type VerifyChangeProofRequest added in v1.10.3

type VerifyChangeProofRequest struct {
	Proof            *ChangeProof `protobuf:"bytes,1,opt,name=proof,proto3" json:"proof,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"`
	ExpectedRootHash []byte       `protobuf:"bytes,4,opt,name=expected_root_hash,json=expectedRootHash,proto3" json:"expected_root_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyChangeProofRequest) Descriptor deprecated added in v1.10.3

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

Deprecated: Use VerifyChangeProofRequest.ProtoReflect.Descriptor instead.

func (*VerifyChangeProofRequest) GetEndKey added in v1.10.3

func (x *VerifyChangeProofRequest) GetEndKey() *MaybeBytes

func (*VerifyChangeProofRequest) GetExpectedRootHash added in v1.10.3

func (x *VerifyChangeProofRequest) GetExpectedRootHash() []byte

func (*VerifyChangeProofRequest) GetProof added in v1.10.3

func (x *VerifyChangeProofRequest) GetProof() *ChangeProof

func (*VerifyChangeProofRequest) GetStartKey added in v1.10.3

func (x *VerifyChangeProofRequest) GetStartKey() *MaybeBytes

func (*VerifyChangeProofRequest) ProtoMessage added in v1.10.3

func (*VerifyChangeProofRequest) ProtoMessage()

func (*VerifyChangeProofRequest) ProtoReflect added in v1.10.3

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

func (*VerifyChangeProofRequest) Reset added in v1.10.3

func (x *VerifyChangeProofRequest) Reset()

func (*VerifyChangeProofRequest) String added in v1.10.3

func (x *VerifyChangeProofRequest) String() string

type VerifyChangeProofResponse added in v1.10.3

type VerifyChangeProofResponse struct {

	// If empty, there was no error.
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyChangeProofResponse) Descriptor deprecated added in v1.10.3

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

Deprecated: Use VerifyChangeProofResponse.ProtoReflect.Descriptor instead.

func (*VerifyChangeProofResponse) GetError added in v1.10.3

func (x *VerifyChangeProofResponse) GetError() string

func (*VerifyChangeProofResponse) ProtoMessage added in v1.10.3

func (*VerifyChangeProofResponse) ProtoMessage()

func (*VerifyChangeProofResponse) ProtoReflect added in v1.10.3

func (*VerifyChangeProofResponse) Reset added in v1.10.3

func (x *VerifyChangeProofResponse) Reset()

func (*VerifyChangeProofResponse) String added in v1.10.3

func (x *VerifyChangeProofResponse) String() string

Jump to

Keyboard shortcuts

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