mirror of
https://github.com/fiatjaf/khatru.git
synced 2025-09-17 16:53:32 +02:00
update examples.
This commit is contained in:
@@ -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)
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user