json tags on pointers.

This commit is contained in:
fiatjaf
2023-05-04 08:22:17 -03:00
parent 32ca737acf
commit 6fc1627fcc

View File

@@ -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"`
}