Commit Graph

14 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 c4d35fe6fa transport: flatten RetryConfig to value type, replace nil sentinel with Disabled bool 2026-05-26 14:01:14 -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 ab641e8313 introduced http header to connection 2026-04-30 14:09:41 -04:00
jay 4ac2c488ad various improvements 2026-04-24 10:59:33 -04:00
jay e32bbc99d8 implemented ping-pong heartbeats. adjusted logs and defaults. 2026-04-24 09:59:01 -04:00
jay 230e6e608a Fix log level bugs. 2026-04-23 19:24:40 -04:00
jay 2a6cd3a487 Add granunal logging config controls. 2026-04-23 18:48:47 -04:00
jay daf9f7534e Various performance and correctness improvements. 2026-04-20 22:41:37 -04:00
jay 3066802f62 Update error handling. 2026-04-19 15:21:10 -04:00
jay dfd28d65bc Created public api, cleaned up internals. 2026-04-19 14:23:10 -04:00
jay 7dab8031ea Refactored package structure. 2026-04-17 14:53:29 -04:00