remove annotations from filter.

closes https://github.com/nbd-wtf/go-nostr/issues/128
This commit is contained in:
fiatjaf 2024-05-25 07:34:34 -03:00
parent 8897cc36e4
commit b00bf363c8

View File

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