mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-14 12:24:56 +02:00
json tags on pointers.
This commit is contained in:
19
pointers.go
19
pointers.go
@@ -1,19 +1,20 @@
|
||||
package nostr
|
||||
|
||||
type ProfilePointer struct {
|
||||
PublicKey string
|
||||
Relays []string
|
||||
PublicKey string `json:"pubkey"`
|
||||
Relays []string `json:"relays,omitempty"`
|
||||
}
|
||||
|
||||
type EventPointer struct {
|
||||
ID string
|
||||
Relays []string
|
||||
Author string
|
||||
ID string `json:"id"`
|
||||
Relays []string `json:"relays,omitempty"`
|
||||
Author string `json:"author,omitempty"`
|
||||
Kind int `json:"kind,omitempty"`
|
||||
}
|
||||
|
||||
type EntityPointer struct {
|
||||
PublicKey string
|
||||
Kind int
|
||||
Identifier string
|
||||
Relays []string
|
||||
PublicKey string `json:"pubkey"`
|
||||
Kind int `json:"kind,omitempty"`
|
||||
Identifier string `json:"identifier,omitempty"`
|
||||
Relays []string `json:"relays,omitempty"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user