khatru/blossom: ListAllBlobs() and OwnersForBlob()

This commit is contained in:
fiatjaf
2026-06-03 18:28:17 -03:00
parent 395c960955
commit 5a135f5b86
3 changed files with 46 additions and 0 deletions
+3
View File
@@ -13,6 +13,9 @@ type BlobIndex interface {
List(ctx context.Context, pubkey nostr.PubKey) iter.Seq[blossom.BlobDescriptor]
Get(ctx context.Context, sha256 string) (*blossom.BlobDescriptor, error)
Delete(ctx context.Context, sha256 string, pubkey nostr.PubKey) error
ListAllBlobs(ctx context.Context) iter.Seq2[nostr.PubKey, blossom.BlobDescriptor]
OwnersForBlob(ctx context.Context, sha256 string) []nostr.PubKey
}
var (