Commit Graph

8 Commits

Author SHA1 Message Date
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 b8a2d47846 Remove root honeybee package; promote inbound and outbound as primary API
- Delete honeybee.go (coincidental-strength re-export module)
- Add Socket, InboxMessage, NormalizeURL re-exports to inbound/pool.go
- Add InboxMessage, Dialer, NormalizeURL re-exports to outbound/pool.go
- Add Socket, Dialer re-exports to honeybeetest/mocks.go
- Update README, CONFIG, EXTEND to reflect new import structure
2026-05-18 09:25:55 -04:00
jay e32bbc99d8 implemented ping-pong heartbeats. adjusted logs and defaults. 2026-04-24 09:59:01 -04:00
jay 727dc18b57 Add slog attributes at pool, worker, and connection levels. 2026-04-23 17:58:40 -04:00
jay fd806c0231 Consolidated redundant socket mocking function. 2026-04-20 17:37:30 -04:00
jay 45b1a31cbb Wrote session dial tests. Use new helpers. 2026-04-19 09:58:41 -04:00
jay 10c29c8330 Injected context cancellation for dial and retry cancellation. 2026-04-18 17:11:22 -04:00
jay 7dab8031ea Refactored package structure. 2026-04-17 14:53:29 -04:00