mirror of
https://github.com/0ceanSlim/grain.git
synced 2024-11-21 16:17:13 +00:00
added bson to event type
This commit is contained in:
parent
6704ead115
commit
7430b674f0
@ -1,11 +1,11 @@
|
||||
package relay
|
||||
|
||||
type Event struct {
|
||||
ID string `json:"id"`
|
||||
PubKey string `json:"pubkey"`
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
Kind int `json:"kind"`
|
||||
Tags [][]string `json:"tags"`
|
||||
Content string `json:"content"`
|
||||
Sig string `json:"sig"`
|
||||
}
|
||||
ID string `json:"id" bson:"id"`
|
||||
PubKey string `json:"pubkey" bson:"pubkey"`
|
||||
CreatedAt int64 `json:"created_at" bson:"created_at"`
|
||||
Kind int `json:"kind" bson:"kind"`
|
||||
Tags [][]string `json:"tags" bson:"tags"`
|
||||
Content string `json:"content" bson:"content"`
|
||||
Sig string `json:"sig" bson:"sig"`
|
||||
}
|
Loading…
Reference in New Issue
Block a user