Move live log tailing behind websocket on server (#439)
* Move live log tailing behind websocket on server Live log tailing now requires client to just open a websocket and keep listening to it for getting live logs for matching query * Fixed linting errors * Unexported tailQuery querier method * Added a delay in querying of logs to not miss delayed entries * Renamed variable for better readability * Some code refactoring suggested in PR review * Fixed linter errors * Code refactoring requested in PR review * Disabling linting for writeHTTPErrorResponse since same value for an input is being passed from all function calls for now * Removed a function which already existed * Improved printing of log entries using cli and some other code refactoring * Checking no-labels flag before printing log stream while tailing
Showing
- vendor/github.com/gorilla/websocket/json.go 60 additions, 0 deletionsvendor/github.com/gorilla/websocket/json.go
- vendor/github.com/gorilla/websocket/mask.go 54 additions, 0 deletionsvendor/github.com/gorilla/websocket/mask.go
- vendor/github.com/gorilla/websocket/mask_safe.go 15 additions, 0 deletionsvendor/github.com/gorilla/websocket/mask_safe.go
- vendor/github.com/gorilla/websocket/prepared.go 102 additions, 0 deletionsvendor/github.com/gorilla/websocket/prepared.go
- vendor/github.com/gorilla/websocket/proxy.go 77 additions, 0 deletionsvendor/github.com/gorilla/websocket/proxy.go
- vendor/github.com/gorilla/websocket/server.go 363 additions, 0 deletionsvendor/github.com/gorilla/websocket/server.go
- vendor/github.com/gorilla/websocket/trace.go 19 additions, 0 deletionsvendor/github.com/gorilla/websocket/trace.go
- vendor/github.com/gorilla/websocket/trace_17.go 12 additions, 0 deletionsvendor/github.com/gorilla/websocket/trace_17.go
- vendor/github.com/gorilla/websocket/util.go 237 additions, 0 deletionsvendor/github.com/gorilla/websocket/util.go
- vendor/github.com/gorilla/websocket/x_net_proxy.go 473 additions, 0 deletionsvendor/github.com/gorilla/websocket/x_net_proxy.go
Loading
Please register or sign in to comment