summaryrefslogtreecommitdiff
path: root/middleware/session/context.go
diff options
context:
space:
mode:
authorAlexander NeonXP Kiryukhin <i@neonxp.ru>2024-07-30 00:45:25 +0300
committerAlexander NeonXP Kiryukhin <i@neonxp.ru>2024-07-30 00:45:25 +0300
commit623eaf165a4f248681acfec094f2f1ac1e0ff89f (patch)
tree54a7b7c0be2002b4d9c4d59081e0e9c2bb84628b /middleware/session/context.go
parentc261597b9adb827bfa16de8f21ce47ac63bec138 (diff)
Пересмотрел механизм сессий
Diffstat (limited to 'middleware/session/context.go')
-rw-r--r--middleware/session/context.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/middleware/session/context.go b/middleware/session/context.go
new file mode 100644
index 0000000..870957d
--- /dev/null
+++ b/middleware/session/context.go
@@ -0,0 +1,9 @@
+package session
+
+type ctxKey int
+
+const (
+ sessionManagerKey ctxKey = iota
+ sessionIDKey
+ sessionValueKey
+)