From 623eaf165a4f248681acfec094f2f1ac1e0ff89f Mon Sep 17 00:00:00 2001 From: Alexander NeonXP Kiryukhin Date: Tue, 30 Jul 2024 00:45:25 +0300 Subject: Пересмотрел механизм сессий MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- middleware/session/context.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 middleware/session/context.go (limited to 'middleware/session/context.go') 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 +) -- cgit v1.2.3