summaryrefslogtreecommitdiff
path: root/internal/mapr/server
AgeCommit message (Collapse)Author
2025-06-19Refactor: Extract magic numbers as constants and reduce client code duplicationPaul Buetow
- Created internal/constants package with organized constant files: - timeouts.go: All time duration constants (timeouts, intervals, delays) - channels.go: Channel buffer size constants - limits.go: Numeric limits and configuration values - buffers.go: Buffer size constants in bytes - Replaced all magic numbers throughout codebase with named constants: - Time durations (2s, 3s, 5s, 10s, 100ms, 24h) now use descriptive constants - Buffer sizes (8KB, 64KB, 1MB) extracted to constants - Channel buffer sizes and multipliers - Configuration limits (max connections, concurrency, etc.) - Health check status codes - Percentage calculations - Reduced code duplication in client implementations: - Created CommonClient to share functionality between CatClient, GrepClient, and TailClient - All three clients now inherit from CommonClient - Eliminated duplicate makeHandler() and makeCommands() methods - Simplified client constructors This refactoring improves code maintainability by centralizing configuration values and reducing redundant code across similar client implementations.
2023-09-07Refactor logformats so that they don't use reflection anymore.Paul Buetow
2021-12-10RefactorPaul Buetow
2021-12-05buffer line.Line for performancePaul Buetow
2021-10-29explicitly use dlog.Server for server packages and dlog.Clent for client ↵Paul Buetow
packages for logging
2021-10-24Fix DCat color test.Paul Buetow
2021-10-24Fix deadlock around aggregating data + server max concurrent file read limiterPaul Buetow
2021-10-10vetting and linting and some code restylingPaul Buetow
2021-10-10add dtail health check unit test.Paul Buetow
2021-10-02move args to config packagePaul Buetow
logger package rewrite as dlog
2021-10-02bugfix: dmap skipped the last couple of mapreduce linesPaul Buetow
2021-10-02mapreduce tables are in colors now tooPaul Buetow
2021-08-28use a byte.Buffer in the file readerPaul Buetow
2020-12-08merge developPaul Buetow
2020-08-13bump up version to 3.0.0. can run continuous background mapreduce queries, ↵Paul Buetow
useful for log file monitorig for example. breaking protocol change which allows to mapreduce aggreate messages containing the default field separator |. add of more unit tests. add logformat mapreduce query keyword. add set mapreduce clause support and support to evaluate built-in functions such as md5sum() and maskdigits().
2020-06-17initial log monitoring supportPaul Buetow
2020-03-07add support to run mapreduce queries on generic log lines, e.g. count all ↵Paul Buetow
log lines containing a certain string, such as "ERROR"
2020-03-04can tail probe with a given timeout and then write a mapreduce resultPaul Buetow
2020-02-07Introduce drun command, refactor code to use context packagePaul Bütow
2020-01-21Move commands to cmd/ and move internal dependencies to internal/Paul Bütow