summaryrefslogtreecommitdiff
path: root/internal/source
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-10-09 21:10:29 +0300
committerPaul Buetow <paul@buetow.org>2021-10-10 13:36:41 +0300
commit97747ea0f3178f7f5890512d483fdccaa82846b0 (patch)
tree9ff1335ca26afc90e55fd6de416457e252d75a35 /internal/source
parent7a7169791a64190e1002e38bc9c04ad0d5c1ce1f (diff)
vetting and linting and some code restyling
Diffstat (limited to 'internal/source')
-rw-r--r--internal/source/source.go14
1 files changed, 11 insertions, 3 deletions
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")
}