25 Commits

Author SHA1 Message Date
fiatjaf
72d9aac9b1 replace all ocurrences of encoding/json with json-iterator so we get rid of HTML escaping and hopefully get faster too. 2024-12-03 00:49:27 -03:00
fiatjaf
7fc2f88e79 filter theoretical limits. 2024-11-03 15:54:31 -03:00
fiatjaf
f57d93ac78 after getting an EOSE we should stop checking since/until. 2024-09-06 19:37:34 -03:00
fiatjaf
b00bf363c8 remove annotations from filter.
closes https://github.com/nbd-wtf/go-nostr/issues/128
2024-05-25 07:34:37 -03:00
fiatjaf
907cfd7846 Filter.LimitZero 2024-03-29 08:08:29 -03:00
fiatjaf
9c4ea87d0b
use stdlib "slices". 2024-02-08 16:33:39 -03:00
fiatjaf
b6ec7327ef
easyjson on filter.String() 2023-11-28 15:14:35 -03:00
fiatjaf
f5cd0c1140
Filter.Clone() 2023-11-06 18:50:55 -03:00
fiatjaf
abb66db97e
fix filter tests. 2023-08-06 20:03:05 -03:00
fiatjaf
017816e3dc
stop supporting prefix matches. 2023-08-05 10:12:57 -03:00
fiatjaf
2695854e56
fixing json filter json + marshaling filter tags. 2023-04-16 16:22:32 -03:00
fiatjaf
c42059f4b4
tests run (but not pass) and fine-tuning (specially tag filters) on filter_easyjson.go 2023-04-16 16:16:16 -03:00
fiatjaf
0a3e898c2f
using easyjson. 2023-04-16 15:56:50 -03:00
fiatjaf
de7179437e
helpers.go -> utils.go and lowercase util functions. 2023-02-27 16:30:48 -03:00
Steve Perkins
77c625e341 nip50: add filter.search field 2023-02-15 18:37:36 -03:00
fiatjaf
67d8f26d8a
some stringifiers. 2022-11-26 09:25:31 -03:00
fiatjaf
f98f54d3be
use generic functions for dealing with lists. 2022-11-08 07:15:08 -03:00
fiatjaf
329b8d44d2
move stuff back from nostr package to top level.
because otherwise the path must be specified as github.com/fiatjaf/go-nostr/nostr, which is annoying.
2022-11-04 08:22:13 -03:00
BitcoinCoderBob
9549c3624a
nostr package, readme updates accordingly, matching example program (#14) 2022-10-12 17:24:30 -03:00
fiatjaf
2f84ddf5f5 add limit field to filter. 2022-07-24 19:53:10 -03:00
fiatjaf
795863d2dd alias TagMap to map[string]StringList. 2022-02-09 20:25:23 -03:00
fiatjaf
5266482b2a support prefix search for ids and authors (nip01 update). 2022-02-08 16:44:33 -03:00
fiatjaf
86853004ef change parsing so NIP12 can work, rename types. 2022-02-08 16:27:33 -03:00
fiatjaf
5cdcdfc66f rename Equal -> FilterEqual. 2022-01-02 09:06:33 -03:00
fiatjaf
d131e8460e move everything to the same directory. 2022-01-02 08:44:18 -03:00