summaryrefslogtreecommitdiff
path: root/pkg/model
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/model')
-rw-r--r--pkg/model/session.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkg/model/session.go b/pkg/model/session.go
new file mode 100644
index 0000000..afa6a77
--- /dev/null
+++ b/pkg/model/session.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "time"
+)
+
+type SessionContextKey struct{}
+
+type Session struct {
+ Id string
+ AccountId int
+ Created time.Time
+ Updated time.Time
+ Data any
+}
+
+func (session *Session) IsExpired() bool {
+ // TODO
+ return false
+}