Versions in this module Expand all Collapse all v1 v1.11.13-rc.2 Dec 4, 2024 v1.0.0 Dec 4, 2024 Changes in this version + type DBClient struct + func NewDBClient(client pb.DBClient) *DBClient + func (c *DBClient) Clear() error + func (c *DBClient) CommitChangeProof(ctx context.Context, proof *merkledb.ChangeProof) error + func (c *DBClient) CommitRangeProof(ctx context.Context, startKey maybe.Maybe[[]byte], endKey maybe.Maybe[[]byte], ...) error + func (c *DBClient) GetChangeProof(ctx context.Context, startRootID ids.ID, endRootID ids.ID, ...) (*merkledb.ChangeProof, error) + func (c *DBClient) GetMerkleRoot(ctx context.Context) (ids.ID, error) + func (c *DBClient) GetProof(ctx context.Context, key []byte) (*merkledb.Proof, error) + func (c *DBClient) GetRangeProofAtRoot(ctx context.Context, rootID ids.ID, startKey maybe.Maybe[[]byte], ...) (*merkledb.RangeProof, error) + func (c *DBClient) VerifyChangeProof(ctx context.Context, proof *merkledb.ChangeProof, startKey maybe.Maybe[[]byte], ...) error + type DBServer struct + func NewDBServer(db sync.DB) *DBServer + func (s *DBServer) Clear(context.Context, *emptypb.Empty) (*emptypb.Empty, error) + func (s *DBServer) CommitChangeProof(ctx context.Context, req *pb.CommitChangeProofRequest) (*emptypb.Empty, error) + func (s *DBServer) CommitRangeProof(ctx context.Context, req *pb.CommitRangeProofRequest) (*emptypb.Empty, error) + func (s *DBServer) GetChangeProof(ctx context.Context, req *pb.GetChangeProofRequest) (*pb.GetChangeProofResponse, error) + func (s *DBServer) GetMerkleRoot(ctx context.Context, _ *emptypb.Empty) (*pb.GetMerkleRootResponse, error) + func (s *DBServer) GetProof(ctx context.Context, req *pb.GetProofRequest) (*pb.GetProofResponse, error) + func (s *DBServer) GetRangeProof(ctx context.Context, req *pb.GetRangeProofRequest) (*pb.GetRangeProofResponse, error) + func (s *DBServer) VerifyChangeProof(ctx context.Context, req *pb.VerifyChangeProofRequest) (*pb.VerifyChangeProofResponse, error)