update examples.

This commit is contained in:
fiatjaf
2023-11-18 10:37:07 -03:00
parent 8fd6436ac8
commit 0a62169e14
2 changed files with 8 additions and 8 deletions

View File

@@ -31,10 +31,10 @@ func main() {
relay := khatru.NewRelay() relay := khatru.NewRelay()
// set up some basic properties (will be returned on the NIP-11 endpoint) // set up some basic properties (will be returned on the NIP-11 endpoint)
relay.Name = "my relay" relay.Info.Name = "my relay"
relay.PubKey = "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" relay.Info.PubKey = "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"
relay.Description = "this is my custom relay" relay.Info.Description = "this is my custom relay"
relay.IconURL = "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fliquipedia.net%2Fcommons%2Fimages%2F3%2F35%2FSCProbe.jpg&f=1&nofb=1&ipt=0cbbfef25bce41da63d910e86c3c343e6c3b9d63194ca9755351bb7c2efa3359&ipo=images" relay.Info.IconURL = "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fliquipedia.net%2Fcommons%2Fimages%2F3%2F35%2FSCProbe.jpg&f=1&nofb=1&ipt=0cbbfef25bce41da63d910e86c3c343e6c3b9d63194ca9755351bb7c2efa3359&ipo=images"
// you must bring your own storage scheme -- if you want to have any // you must bring your own storage scheme -- if you want to have any
store := make(map[string]*nostr.Event, 120) store := make(map[string]*nostr.Event, 120)

View File

@@ -15,10 +15,10 @@ func main() {
relay := khatru.NewRelay() relay := khatru.NewRelay()
// set up some basic properties (will be returned on the NIP-11 endpoint) // set up some basic properties (will be returned on the NIP-11 endpoint)
relay.Name = "my relay" relay.Info.Name = "my relay"
relay.PubKey = "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" relay.Info.PubKey = "79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"
relay.Description = "this is my custom relay" relay.Info.Description = "this is my custom relay"
relay.IconURL = "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fliquipedia.net%2Fcommons%2Fimages%2F3%2F35%2FSCProbe.jpg&f=1&nofb=1&ipt=0cbbfef25bce41da63d910e86c3c343e6c3b9d63194ca9755351bb7c2efa3359&ipo=images" relay.Info.Icon = "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fliquipedia.net%2Fcommons%2Fimages%2F3%2F35%2FSCProbe.jpg&f=1&nofb=1&ipt=0cbbfef25bce41da63d910e86c3c343e6c3b9d63194ca9755351bb7c2efa3359&ipo=images"
// you must bring your own storage scheme -- if you want to have any // you must bring your own storage scheme -- if you want to have any
store := make(map[string]*nostr.Event, 120) store := make(map[string]*nostr.Event, 120)