mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-26 13:41:15 +02:00
17 lines
343 B
Go
17 lines
343 B
Go
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
|
|
}
|