mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-02 11:10:09 +02:00
remove annotations from filter.
closes https://github.com/nbd-wtf/go-nostr/issues/128
This commit is contained in:
parent
8897cc36e4
commit
b00bf363c8
16
filter.go
16
filter.go
@ -10,14 +10,14 @@ import (
|
|||||||
type Filters []Filter
|
type Filters []Filter
|
||||||
|
|
||||||
type Filter struct {
|
type Filter struct {
|
||||||
IDs []string `json:"ids,omitempty"`
|
IDs []string
|
||||||
Kinds []int `json:"kinds,omitempty"`
|
Kinds []int
|
||||||
Authors []string `json:"authors,omitempty"`
|
Authors []string
|
||||||
Tags TagMap `json:"-,omitempty"`
|
Tags TagMap
|
||||||
Since *Timestamp `json:"since,omitempty"`
|
Since *Timestamp
|
||||||
Until *Timestamp `json:"until,omitempty"`
|
Until *Timestamp
|
||||||
Limit int `json:"limit,omitempty"`
|
Limit int
|
||||||
Search string `json:"search,omitempty"`
|
Search string
|
||||||
|
|
||||||
// LimitZero is or must be set when there is a "limit":0 in the filter, and not when "limit" is just omitted
|
// LimitZero is or must be set when there is a "limit":0 in the filter, and not when "limit" is just omitted
|
||||||
LimitZero bool `json:"-"`
|
LimitZero bool `json:"-"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user