well-goknown/vendor/github.com/nbd-wtf/go-nostr/nip77/negentropy/storage.go
2024-10-28 20:11:29 -04:00

14 lines
233 B
Go

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
}