a bunch of [32]byte conversions. still more needed.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package hints
|
||||
|
||||
import "github.com/nbd-wtf/go-nostr"
|
||||
import (
|
||||
"fiatjaf.com/nostr"
|
||||
)
|
||||
|
||||
type RelayScores struct {
|
||||
Relay string
|
||||
@@ -9,8 +11,8 @@ type RelayScores struct {
|
||||
}
|
||||
|
||||
type HintsDB interface {
|
||||
TopN(pubkey string, n int) []string
|
||||
Save(pubkey string, relay string, key HintKey, score nostr.Timestamp)
|
||||
TopN(pubkey nostr.PubKey, n int) []string
|
||||
Save(pubkey nostr.PubKey, relay string, key HintKey, score nostr.Timestamp)
|
||||
PrintScores()
|
||||
GetDetailedScores(pubkey string, n int) []RelayScores
|
||||
GetDetailedScores(pubkey nostr.PubKey, n int) []RelayScores
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user