diff options
author | Julien Dessaux | 2025-01-06 00:41:32 +0100 |
---|---|---|
committer | Julien Dessaux | 2025-01-06 00:41:32 +0100 |
commit | 6e069484cb0a911ba541e07bf04331fadbb76612 (patch) | |
tree | 3457c759d54ae91e5ac1e64fe0bbf9c4b8ac18f0 /pkg/model/session.go | |
parent | feat(tfstated): add syscall.SIGTERM handling (diff) | |
download | tfstated-6e069484cb0a911ba541e07bf04331fadbb76612.tar.gz tfstated-6e069484cb0a911ba541e07bf04331fadbb76612.tar.bz2 tfstated-6e069484cb0a911ba541e07bf04331fadbb76612.zip |
feat(webui): bootstrap session handling and login process
Diffstat (limited to '')
-rw-r--r-- | pkg/model/session.go | 20 |
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 +} |