fix: address branch review issues (json tags, share lockout, session expiry, file unlink)

This commit is contained in:
2026-08-26 23:44:19 +08:00
parent b7af194492
commit d988d35881
6 changed files with 67 additions and 17 deletions
+12 -8
View File
@@ -11,14 +11,16 @@ import (
)
type Server struct {
store *store.Store
accessToken string
sessions map[string]int64
shareSessions map[string]string
loginAttempts map[string]int
loginLockout map[string]time.Time
mu sync.Mutex
workspace string
store *store.Store
accessToken string
sessions map[string]int64
shareSessions map[string]string
loginAttempts map[string]int
loginLockout map[string]time.Time
shareAttempts map[string]int
shareLockout map[string]time.Time
mu sync.Mutex
workspace string
}
func New(store *store.Store, accessToken string, workspace string) *Server {
@@ -29,6 +31,8 @@ func New(store *store.Store, accessToken string, workspace string) *Server {
shareSessions: make(map[string]string),
loginAttempts: make(map[string]int),
loginLockout: make(map[string]time.Time),
shareAttempts: make(map[string]int),
shareLockout: make(map[string]time.Time),
workspace: workspace,
}
}