mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-16 03:42:34 +02:00
event kinds as int, not uint8.
This commit is contained in:
parent
16b56e22ef
commit
77fa373bab
@ -27,7 +27,7 @@ type Event struct {
|
|||||||
PubKey string `json:"pubkey"`
|
PubKey string `json:"pubkey"`
|
||||||
CreatedAt uint32 `json:"created_at"`
|
CreatedAt uint32 `json:"created_at"`
|
||||||
|
|
||||||
Kind uint8 `json:"kind"`
|
Kind int `json:"kind"`
|
||||||
|
|
||||||
Tags Tags `json:"tags"`
|
Tags Tags `json:"tags"`
|
||||||
Content string `json:"content"`
|
Content string `json:"content"`
|
||||||
|
@ -5,7 +5,7 @@ import "github.com/fiatjaf/go-nostr/event"
|
|||||||
type EventFilter struct {
|
type EventFilter struct {
|
||||||
ID string `json:"id,omitempty"`
|
ID string `json:"id,omitempty"`
|
||||||
Author string `json:"author,omitempty"`
|
Author string `json:"author,omitempty"`
|
||||||
Kind *uint8 `json:"kind,omitempty"`
|
Kind *int `json:"kind,omitempty"`
|
||||||
Authors []string `json:"authors,omitempty"`
|
Authors []string `json:"authors,omitempty"`
|
||||||
TagEvent string `json:"#e,omitempty"`
|
TagEvent string `json:"#e,omitempty"`
|
||||||
TagProfile string `json:"#p,omitempty"`
|
TagProfile string `json:"#p,omitempty"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user