summaryrefslogtreecommitdiff
path: root/internal/server
diff options
context:
space:
mode:
authorPaul Buetow <git@mx.buetow.org>2021-02-05 09:02:14 +0000
committerPaul Buetow <git@mx.buetow.org>2021-02-05 09:02:14 +0000
commit7170e6ad68f4a04702471104c13ae42fd2037d24 (patch)
treed7a570ae5e9209a175aecef527e56e69d6879bce /internal/server
parent9628da2ec34dc839609ffcc3bbe9002c4a5ed128 (diff)
add --max, --before, --after switches to dtail and dgrep commands
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/handlers/serverhandler.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/server/handlers/serverhandler.go b/internal/server/handlers/serverhandler.go
index 185e7c2..169c1eb 100644
--- a/internal/server/handlers/serverhandler.go
+++ b/internal/server/handlers/serverhandler.go
@@ -390,6 +390,10 @@ func (h *ServerHandler) decrementActiveReaders() int32 {
return atomic.LoadInt32(&h.activeReaders)
}
+// TODO: All options related code should be in its own package (client + server)
+// Maybe we could move internal.clients.Args to internal.options.Options and
+// Use struct tagging to determine which ones should be serialized over the wire
+// from the client to the server.
func readOptions(opts []string) (map[string]string, error) {
options := make(map[string]string, len(opts))