json tags on pointers.
This commit is contained in:
19
pointers.go
19
pointers.go
@@ -1,19 +1,20 @@
|
|||||||
package nostr
|
package nostr
|
||||||
|
|
||||||
type ProfilePointer struct {
|
type ProfilePointer struct {
|
||||||
PublicKey string
|
PublicKey string `json:"pubkey"`
|
||||||
Relays []string
|
Relays []string `json:"relays,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type EventPointer struct {
|
type EventPointer struct {
|
||||||
ID string
|
ID string `json:"id"`
|
||||||
Relays []string
|
Relays []string `json:"relays,omitempty"`
|
||||||
Author string
|
Author string `json:"author,omitempty"`
|
||||||
|
Kind int `json:"kind,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type EntityPointer struct {
|
type EntityPointer struct {
|
||||||
PublicKey string
|
PublicKey string `json:"pubkey"`
|
||||||
Kind int
|
Kind int `json:"kind,omitempty"`
|
||||||
Identifier string
|
Identifier string `json:"identifier,omitempty"`
|
||||||
Relays []string
|
Relays []string `json:"relays,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user