move errors to a different file

This commit is contained in:
2026-04-05 11:37:00 -04:00
parent a315161ed3
commit 384ef90ea8
2 changed files with 7 additions and 5 deletions

View File

@@ -0,0 +1,7 @@
package session
import "errors"
var ErrSessionNotFound = errors.New("session not found")
var ErrSessionAlreadyExists = errors.New("session already exists")
var ErrSessionExpired = errors.New("session expired")

View File

@@ -1,7 +1,6 @@
package session
import (
"errors"
"sync"
"time"
@@ -9,10 +8,6 @@ import (
"astraltech.xyz/accountmanager/src/worker"
)
var ErrSessionNotFound = errors.New("session not found")
var ErrSessionAlreadyExists = errors.New("session already exists")
var ErrSessionExpired = errors.New("session expired")
type MemoryStore struct {
sessions map[string]*SessionData
lock sync.RWMutex