summaryrefslogtreecommitdiff
path: root/constants/constants.go
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2022-05-04 10:45:06 -0400
committerWill Hawkins <[email protected]>2022-05-04 10:45:06 -0400
commitfa647c6645f74e3c0e6fded658f5f8b5882b0e01 (patch)
tree1ebcf05ba04fb655fa119a4d9e62dfd8b3261a05 /constants/constants.go
parent3b385cec76f9c23a400cf748d2fba326c456ae3d (diff)
Fully support self-signed certificates (and add debug levels)
Two unrelated changes: 1. Add full support for self-signed HTTPS certificates on the server 2. Add support for multiple log levels: So far we only use one, but adding support for additional levels will help us tier the levels to filter out excessive messages.
Diffstat (limited to 'constants/constants.go')
-rw-r--r--constants/constants.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/constants/constants.go b/constants/constants.go
index 1a060dd..02038a3 100644
--- a/constants/constants.go
+++ b/constants/constants.go
@@ -31,3 +31,12 @@ var (
// The default URL for the config host.
DefaultConfigHost string = "networkquality.example.com"
)
+
+type DebugLevel int8
+
+const (
+ NoDebug DebugLevel = iota
+ Debug
+ Warn
+ Error
+)