From 6e069484cb0a911ba541e07bf04331fadbb76612 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 6 Jan 2025 00:41:32 +0100 Subject: feat(webui): bootstrap session handling and login process --- pkg/model/session.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pkg/model/session.go (limited to 'pkg/model/session.go') 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 +} -- cgit v1.2.3