sdk/hints: sqlite backend and tests.

This commit is contained in:
fiatjaf
2024-09-16 22:23:55 -03:00
parent 4c9ab850a5
commit 2c09338ecb
11 changed files with 380 additions and 34 deletions

View File

@ -5,4 +5,5 @@ import "github.com/nbd-wtf/go-nostr"
type HintsDB interface {
TopN(pubkey string, n int) []string
Save(pubkey string, relay string, key HintKey, score nostr.Timestamp)
PrintScores()
}