fix: address branch review issues (json tags, share lockout, session expiry, file unlink)
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user