summaryrefslogtreecommitdiff
path: root/internal/utils/const.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/utils/const.go')
-rw-r--r--internal/utils/const.go31
1 files changed, 10 insertions, 21 deletions
diff --git a/internal/utils/const.go b/internal/utils/const.go
index 1188b5f9c..2e65da318 100644
--- a/internal/utils/const.go
+++ b/internal/utils/const.go
@@ -8,24 +8,9 @@ import (
)
const (
- windows = "windows"
- testStringInput = "abcdefghijkl"
-
// RFC3339Zero is the default value for time.Time.Unix().
RFC3339Zero = int64(-62135596800)
- // TLS13 is the textual representation of TLS 1.3.
- TLS13 = "1.3"
-
- // TLS12 is the textual representation of TLS 1.2.
- TLS12 = "1.2"
-
- // TLS11 is the textual representation of TLS 1.1.
- TLS11 = "1.1"
-
- // TLS10 is the textual representation of TLS 1.0.
- TLS10 = "1.0"
-
clean = "clean"
tagged = "tagged"
unknown = "unknown"
@@ -84,10 +69,6 @@ const (
Month = Year / 12
)
-const (
- errFmtLinuxNotFound = "open %s: no such file or directory"
-)
-
var (
standardDurationUnits = []string{"ns", "us", "µs", "μs", "ms", "s", "m", "h"}
reDurationSeconds = regexp.MustCompile(`^\d+$`)
@@ -111,6 +92,12 @@ const (
)
const (
+ // timeUnixEpochAsMicrosoftNTEpoch represents the unix epoch as a Microsoft NT Epoch.
+ // The Microsoft NT Epoch is ticks since Jan 1, 1601 (1 tick is 100ns).
+ timeUnixEpochAsMicrosoftNTEpoch uint64 = 116444736000000000
+)
+
+const (
// CharSetAlphabeticLower are literally just valid alphabetic lowercase printable ASCII chars.
CharSetAlphabeticLower = "abcdefghijklmnopqrstuvwxyz"
@@ -155,5 +142,7 @@ var htmlEscaper = strings.NewReplacer(
// ErrTimeoutReached error thrown when a timeout is reached.
var ErrTimeoutReached = errors.New("timeout reached")
-// ErrTLSVersionNotSupported returned when an unknown TLS version supplied.
-var ErrTLSVersionNotSupported = errors.New("supplied tls version isn't supported")
+const (
+ windows = "windows"
+ errFmtLinuxNotFound = "open %s: no such file or directory"
+)