Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSync ¶
type DataSync struct {
Sync
}
DataSync represents a data synchronizer, which implements the Sync interface
func NewDataSync ¶
NewDataSync creates a new instance of DataSync
type Sync ¶
type Sync interface { // GetTopHash returns the local top checksum GetTopHash(ctx context.Context) (string, error) // GetBucketHashes returns local checksums of all buckets GetBucketHashes(ctx context.Context) (map[uint32]string, error) // GetAssetsOfBucket retrieves assets of a bucket either from local or remote storage GetAssetsOfBucket(ctx context.Context, bucketNumber uint32, isRemote bool) ([]cid.Cid, error) DeleteAsset(root cid.Cid) error AddLostAsset(root cid.Cid) error }
Sync defines the synchronization interface
Click to show internal directories.
Click to hide internal directories.