func (sto *replicaStorage) EnumerateBlobs(dest chan<- blob.SizedRef, after string, limit int) error { // TODO: option to enumerate from one or from all merged. for // now we'll just do all, even though it's kinda a waste. at // least then we don't miss anything if a certain node is // missing some blobs temporarily return blobserver.MergedEnumerate(dest, sto.replicas, after, limit) }
func (s *storage) EnumerateBlobs(ctx context.Context, dest chan<- blob.SizedRef, after string, limit int) (err error) { return blobserver.MergedEnumerate(ctx, dest, []blobserver.BlobEnumerator{ s.small, enumerator{s}, }, after, limit) }
func (sto *replicaStorage) EnumerateBlobs(ctx *context.Context, dest chan<- blob.SizedRef, after string, limit int) error { return blobserver.MergedEnumerate(ctx, dest, sto.readReplicas, after, limit) }
func (sto *shardStorage) EnumerateBlobs(dest chan<- blob.SizedRef, after string, limit int, wait time.Duration) error { return blobserver.MergedEnumerate(dest, sto.shards, after, limit, wait) }