sdk/hints: HintsDB.GetDetailedScores()

This commit is contained in:
fiatjaf
2025-04-06 11:47:08 -03:00
parent 05e2018d3a
commit 2e28cc809a
5 changed files with 175 additions and 0 deletions

View File

@@ -2,8 +2,15 @@ package hints
import "github.com/nbd-wtf/go-nostr"
type RelayScores struct {
Relay string
Scores [4]nostr.Timestamp
Sum int64
}
type HintsDB interface {
TopN(pubkey string, n int) []string
Save(pubkey string, relay string, key HintKey, score nostr.Timestamp)
PrintScores()
GetDetailedScores(pubkey string, n int) []RelayScores
}