summaryrefslogtreecommitdiff
path: root/internal/server/handlers/serverhandler.go
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
commit18a4de2bb288d44c4e5a7560fced7a15e9a6469d (patch)
treed7a570ae5e9209a175aecef527e56e69d6879bce /internal/server/handlers/serverhandler.go
parenta40e3c5c01d0b33f23c53eba1276cf244e4d060b (diff)
add --max, --before, --after switches to dtail and dgrep commands
Diffstat (limited to 'internal/server/handlers/serverhandler.go')
-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))