Commit Graph

15 Commits

Author SHA1 Message Date
Jay d4da16f82a transport: copy-on-intake in NewConnection/NewPool; add ConnectionConfig.Clone; remove SetDialer; dialer via config 2026-05-26 14:46:10 -04:00
Jay 695389798e config: add Dialer field to ConnectionConfig and PoolConfig with option constructors 2026-05-26 14:17:58 -04:00
Jay fac62c0675 config: flatten WorkerConfig to value type in PoolConfig 2026-05-26 14:13:40 -04:00
Jay c82e0184f5 config: flatten ConnectionConfig to value type in PoolConfig 2026-05-26 14:11:03 -04:00
Jay f1afca7921 cleanup and refactors 2026-05-20 22:49:25 -04:00
Jay b44a46ed2f Migrate logging to go-mana-component; delete logging/ package
Replaces the flat key-value logging scheme with component-based structured
logging via go-mana-component. Each layer (pool, worker, connection) builds
its own component identity and derives a *slog.Logger from a caller-supplied
slog.Handler.

- Delete logging/ package (logging.go, logging_test.go)
- Strip LoggingEnabled and LogLevel from ConnectionConfig, PoolConfig,
 WorkerConfig; remove associated option funcs
- Change NewConnection and NewConnectionFromSocket to accept ctx and
 slog.Handler instead of *slog.Logger; constructors build component
 identity via MustNew/MustExtend internally
- Change WorkerFactory, NewWorker, connect, and RunDialer to carry
 slog.Handler; remove PoolPlugin.Handler
- Change NewPool to establish pool component identity via MustNew;
 remove pool_id field, PoolPlugin.ID, and ErrInvalidPoolID
- Fix data race in MockSlogHandler: WithAttrs now shares parent mutex
 pointer rather than allocating a new one per child
- Run go fix
2026-05-20 13:04:58 -04:00
Jay 6facb6eed0 remove references to the queue 2026-05-20 08:53:46 -04:00
Jay 093a56ea56 gut inbound and queue. promote outbound to honeybee. 2026-05-20 08:46:13 -04:00
jay 7dab8031ea Refactored package structure. 2026-04-17 14:53:29 -04:00
jay d27e783729 Initial buildout of worker pattern. 2026-04-17 13:29:49 -04:00
jay 65dee9b161 Wrote pool config and tests. 2026-04-15 20:56:22 -04:00
jay ae431bb664 Updated connection config naming to introduce a dedicated pool configuration. 2026-04-15 18:04:40 -04:00
jay b57f5157e7 Remove read deadlines from the connection.
Prevents the connection from closing from a lack of incoming messages.
2026-04-15 17:43:26 -04:00
jay 541ad9f96e Use real default values for NewConfig. 2026-02-03 15:48:12 -05:00
jay 5ee9ef500e Moved code to top-level. 2026-01-26 10:28:39 -05:00