Commit Graph

44 Commits

Author SHA1 Message Date
Joel Wetzell
457ff83c23 add more convenience methods for start/stopping modules on router 2026-02-07 12:48:27 -06:00
Joel Wetzell
9ba3a88e8c add removeModule function to router 2026-02-07 09:53:48 -06:00
Joel Wetzell
8f5091cf9b load router from context in mock module 2026-02-05 20:20:00 -06:00
Joel Wetzell
b095419b6e switch module instances to map on id 2026-02-05 20:02:03 -06:00
Joel Wetzell
b959b88527 split out module and route creation in router and router output only does one module 2026-02-05 19:31:31 -06:00
Joel Wetzell
a920f34926 rework route and processing spans 2026-02-04 19:01:18 -06:00
Joel Wetzell
4dac1faae0 add basic opentelemetry 2026-02-04 19:01:18 -06:00
Joel Wetzell
c75a2327d5 add check to prevent empty module Id 2026-02-02 12:51:56 -06:00
Joel Wetzell
0c777a8874 move router context to run methods 2026-01-16 18:50:40 -06:00
Joel Wetzell
59f00c1a32 process routes concurrently 2025-12-28 20:42:11 -06:00
Joel Wetzell
6d3cf6692f fix route output with nil payload 2025-12-28 12:42:20 -06:00
Joel Wetzell
f97f9b9fc9 propagate a ctx all the way from input to output of a route 2025-12-28 12:21:58 -06:00
Joel Wetzell
12de947f3d cleanup logging 2025-12-28 11:47:02 -06:00
Joel Wetzell
a994286402 fix error handling/short-circuiting in multi route matching 2025-12-28 11:30:37 -06:00
Joel Wetzell
ed4c14e82b rework route to just process payload 2025-12-28 08:24:12 -06:00
Joel Wetzell
8ffc7d02a5 stuff values into context 2025-12-27 22:59:30 -06:00
Joel Wetzell
17106b5096 add more debug logging to router 2025-12-26 10:38:33 -06:00
Joel Wetzell
df9ffdda9e add debug log about waiting for modules to close 2025-12-26 10:24:31 -06:00
Joel Wetzell
479cf41ea0 use WaitGroup Go function 2025-12-26 10:24:15 -06:00
Joel Wetzell
6968539c59 cleanup logging in router 2025-12-26 10:19:29 -06:00
Joel Wetzell
ff1949ce69 use errors.New when not formatting 2025-12-23 15:00:30 -06:00
Joel Wetzell
b4149df00a setup slog inside cmd with debug and json flag 2025-12-19 22:27:05 -06:00
Joel Wetzell
a5deea6447 move route and module into internal 2025-12-07 10:34:58 -06:00
Joel Wetzell
7a01ce6691 convert Route to interface 2025-12-06 23:50:44 -06:00
Joel Wetzell
388851f8bd inject router on HandleInput 2025-12-06 23:08:05 -06:00
Joel Wetzell
9a06949b5b move router to module New func 2025-12-06 23:00:45 -06:00
Joel Wetzell
07108918f1 move config to internal 2025-12-06 22:42:38 -06:00
Joel Wetzell
eb0b468637 clean out logging 2025-12-01 18:26:13 -06:00
Joel Wetzell
09d90dd631 logging tweaks 2025-12-01 17:18:39 -06:00
Joel Wetzell
8bb60a3a3c add some context for output to potentially use later 2025-11-27 09:06:59 -05:00
Joel Wetzell
dce7e13d0f update error message 2025-11-27 08:56:09 -05:00
Joel Wetzell
f7cdcd62cc log errors when running a module instance 2025-11-23 10:29:28 -06:00
Joel Wetzell
d47d5c5644 fix router not bailing on bad module types 2025-11-22 17:35:15 -06:00
Joel Wetzell
b84edb641b add error handling to routing 2025-11-22 14:24:44 -06:00
Joel Wetzell
51e656313c do some decent context reworking 2025-11-22 11:31:09 -06:00
Joel Wetzell
4ae5261d25 some error work 2025-11-22 11:21:37 -06:00
Joel Wetzell
fe2a54d4cd change internals to internal 2025-11-21 07:35:41 -06:00
Joel Wetzell
f28a9fac99 add the concept of processors 2025-11-20 22:15:46 -06:00
Joel Wetzell
0e903eba2f add the concept of routes input/output 2025-11-19 18:33:04 -06:00
Joel Wetzell
9ad60c8193 add the concept of Id to a module 2025-11-18 19:13:14 -06:00
Joel Wetzell
b3735ee713 use slog 2025-11-18 18:57:39 -06:00
Joel Wetzell
a7996530a1 change protocol to module 2025-11-18 18:14:11 -06:00
Joel Wetzell
5f2599b080 run all protocols 2025-11-18 17:51:16 -06:00
084284370c initial commit 2025-10-15 18:44:51 -05:00