mirror of
https://github.com/yusing/godoxy.git
synced 2026-02-18 14:57:49 +01:00
Removes the embedded HTTP handler and WebSocket streaming capability from the in-memory logger, leaving only the core io.Writer interface and event subscription via Events(). Simplifies buffer management by eliminating position-based tracking and using slices.Clone() for safe message passing to listeners. - Removes HandlerFunc(), ServeHTTP(), wsInitial(), wsStreamLog() methods - Removes logEntryRange struct and connChans map (no longer needed) - Refactors buffer field from embedded to explicit buf with named mutexes - Adds buffered channel (64) for event listeners to prevent blocking - Improves concurrency with double-checked locking in truncation logic