blossom: add an alternative BlobIndex implementation in memory.

This commit is contained in:
fiatjaf
2025-11-18 15:36:35 -03:00
parent 078e9b4cc2
commit f5fb294efa
2 changed files with 93 additions and 1 deletions

View File

@@ -24,4 +24,7 @@ type BlobIndex interface {
Delete(ctx context.Context, sha256 string, pubkey nostr.PubKey) error
}
var _ BlobIndex = (*EventStoreBlobIndexWrapper)(nil)
var (
_ BlobIndex = (*EventStoreBlobIndexWrapper)(nil)
_ BlobIndex = (*MemoryBlobIndex)(nil)
)