summaryrefslogtreecommitdiff
path: root/pkg/snowflake
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-07-05 19:50:13 +0300
committerKyren223 <Kyren223@proton.me>2025-07-05 19:50:13 +0300
commit94ccbc282baf45d0f2e19ab127b38c71668b650f (patch)
tree3320d928e29edb565a83f56bfc85de80ecac3445 /pkg/snowflake
parent317bc967e64576744dbc4cda4ba5e34131187097 (diff)
Refactored server connection handling, still missing TOS and auth
handling
Diffstat (limited to 'pkg/snowflake')
-rw-r--r--pkg/snowflake/snowflake.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/snowflake/snowflake.go b/pkg/snowflake/snowflake.go
index 6a53760..485026b 100644
--- a/pkg/snowflake/snowflake.go
+++ b/pkg/snowflake/snowflake.go
@@ -24,6 +24,8 @@ const (
type ID int64
+const InvalidID = ID(0)
+
func (id ID) String() string {
return strconv.FormatInt(int64(id), 10)
}