Commit Graph

84 Commits

Author SHA1 Message Date
Yasuhiro Matsumoto
db9bd14e12 fix build 2025-02-06 21:37:46 +09:00
Yasuhiro Matsumoto
b217f090a9 fix memory leak 2024-09-24 22:24:36 +09:00
Yasuhiro Matsumoto
01be2797b2 do not use ctx provied from http request 2024-07-23 08:36:04 +09:00
Yasuhiro Matsumoto
abcb4cec62 use WithTimeout 2024-07-23 08:24:23 +09:00
Yasuhiro Matsumoto
70a1daf2a1 notify delete event 2024-07-23 01:43:09 +09:00
Yasuhiro Matsumoto
01d5005481 fix possibly goroutine leak 2024-07-23 00:28:36 +09:00
Yasuhiro Matsumoto
d1bfb5aa78 return OK for deletion 2024-07-17 10:19:35 +09:00
Yasuhiro Matsumoto
1d1d5408d4 add WithSkipEventFunc 2024-07-13 18:09:06 +09:00
Yasuhiro Matsumoto
5cc480c44c handle X-Forwarded-For 2024-02-25 17:47:04 +09:00
Yasuhiro Matsumoto
b96058bf8b use X-Real-Ip if presented 2024-02-25 17:40:24 +09:00
Yasuhiro Matsumoto
5281f6630d fix EventCounter 2024-01-29 21:38:49 +09:00
Yasuhiro Matsumoto
e61e21bcc1 fix build 2023-12-19 11:35:01 +09:00
fiatjaf_
deb4294ae5 verify event id instead of silently reassigning (#105) 2023-11-28 22:41:04 -03:00
bndw
bf5df1248f feat: Add authed pubkey to ReqAccepter
Pass the nip-42 pubkey to the ReqAccepter. This allows a relay to
authenticate REQs.
2023-11-21 17:13:34 -08:00
Yasuhiro Matsumoto
218b6734e8 Building better nip11 relay information. 2023-11-08 23:22:51 +09:00
Yasuhiro Matsumoto
86928e57d1 update deps 2023-11-07 07:58:20 +09:00
Yasuhiro Matsumoto
3c044da533 Merge branch 'master' into eventstore 2023-11-01 22:48:28 +09:00
Yasuhiro Matsumoto
21b15f62a5 fix typos 2023-11-01 22:46:46 +09:00
fiatjaf
58cd643c35 adjustments so it works with eventstore. 2023-10-31 16:28:30 -03:00
fiatjaf
8273e44295 remove storage plugins and move those to eventstore module. 2023-10-31 16:16:38 -03:00
mattn
f1612102e1 Merge pull request #88 from emidev98/master
feat: basic relayer
2023-10-23 00:42:28 +09:00
Yasuhiro Matsumoto
1db1c6d697 add ReqAccepter to handle request filters
fixes #94
2023-10-06 23:08:02 +09:00
Yasuhiro Matsumoto
d63f378ea9 fix context. this must be another context 2023-10-06 08:48:16 +03:00
emidev98
069ebdeefa fix: merge event 2023-10-06 08:48:03 +03:00
Yasuhiro Matsumoto
36835571d6 fix 2023-10-06 08:46:14 +03:00
Yasuhiro Matsumoto
77a834e826 read stop channel 2023-10-06 08:46:14 +03:00
Yasuhiro Matsumoto
977d31c6c6 logging connection informations 2023-10-06 08:46:13 +03:00
Yasuhiro Matsumoto
6b33ff0774 fix context. this must be another context 2023-10-06 12:07:34 +09:00
Yasuhiro Matsumoto
4e412d32a2 use WriteControl 2023-10-03 15:28:21 -03:00
Yasuhiro Matsumoto
90a9680b7d fix 2023-09-28 10:42:15 +09:00
Yasuhiro Matsumoto
1740e67512 read stop channel 2023-09-28 10:39:22 +09:00
Yasuhiro Matsumoto
dbb26f9202 logging connection informations 2023-09-28 08:57:02 +09:00
emidev98
18965da7ce feat: handle latest item from array on event 2023-09-11 17:13:18 +08:00
emidev98
7638d532e0 fix: event handler 2023-09-08 23:15:08 +08:00
mattn
6ead0f0c3c fix groutine leak (#86) 2023-08-17 08:31:03 -03:00
Ben Woodward
1935f62c29 feat: basic per-connection rate limiter (#1) 2023-08-12 21:24:30 -03:00
fiatjaf
0a5624737d pass AUTH information to functions via context. 2023-06-26 20:05:06 -03:00
fiatjaf
dc594ee32b migrate to fasthttp/websocket. 2023-06-23 07:10:59 -03:00
fiatjaf
ebfff13b18 use envelopes everywhere. 2023-06-16 17:48:34 -03:00
Isaque Veras
ee84bf513f feat(AddEvent): add pointer when adding event (#68) 2023-06-12 08:19:07 -03:00
Yasuhiro Matsumoto
f328910ab6 COUNT should not be subscribable 2023-05-18 09:37:14 -03:00
mattn
639c210661 support NIP-45 (#58) 2023-05-17 07:54:56 -03:00
bndw
54001282d9 fix: async save event
Uses a non-request-scoped context for async event handling operations.

Fixes #50
2023-05-03 17:13:42 -03:00
fiatjaf
4e15120111 migrate all built-in storage backends. 2023-05-01 19:41:17 -03:00
fiatjaf
e3d4655dba v2 with breaking changes and a simpler API. 2023-05-01 19:21:09 -03:00
Steve Perkins
a82e5edb0d Adds NIP-33 support for replaceable events. 2023-03-31 11:36:54 -03:00
Gustavo Chain
9aeb352320 advertise nip11 on nip11 handler 2023-02-10 15:28:11 -03:00
Dylan Cant
d7750ad15f added comment 2023-01-19 17:56:28 -03:00
Dylan Cant
82e4174073 added filter handling to query.go and sort "created_by" descending 2023-01-19 17:56:28 -03:00
Dylan Cant
cab0654516 small fixes to NIP-42 parts of handlers.go
also removed "break" commands at ends of cases in switch
statement (these are unnecessary in `go`, cf https://go.dev/tour/flowcontrol/9)
2023-01-16 21:29:35 -05:00