well-goknown/vendor/github.com/nbd-wtf/go-nostr/nip77/negentropy/storage.go

14 lines
233 B
Go
Raw Permalink Normal View History

2024-10-29 00:11:29 +00:00
package negentropy
import (
"iter"
)
type Storage interface {
Size() int
Range(begin, end int) iter.Seq2[int, Item]
FindLowerBound(begin, end int, value Bound) int
GetBound(idx int) Bound
Fingerprint(begin, end int) string
}