From 97747ea0f3178f7f5890512d483fdccaa82846b0 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 9 Oct 2021 21:10:29 +0300 Subject: vetting and linting and some code restyling --- internal/source/source.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'internal/source/source.go') diff --git a/internal/source/source.go b/internal/source/source.go index be7aecd..4bb0784 100644 --- a/internal/source/source.go +++ b/internal/source/source.go @@ -1,10 +1,19 @@ package source +// Source specifies the origin of either the current process (dtail is a client +// process, dserver is a server process) or the source code package (e.g. +// dserver server side code or dtail client side code). Notice that dtail client +// may also executes server code directly (e.g. via serverless mode) and that +// the dserver may also executes client code (e.g. via scheduled server side +// mapreduce queries). type Source int const ( - Client Source = iota - Server Source = iota + // Client process or source code package. + Client Source = iota + // Server process or source code package. + Server Source = iota + // HealthCheck process or client source code package. HealthCheck Source = iota ) @@ -17,6 +26,5 @@ func (s Source) String() string { case HealthCheck: return "HEALTHCHECK" } - panic("Unknown source type") } -- cgit v1.2.3