feat: keys, clicks, and totals in computer statistics

This commit is contained in:
trafficlunar 2025-03-22 14:20:04 +00:00
parent 19bdd27de1
commit 8407a1258f
6 changed files with 85 additions and 10 deletions

View file

@ -12,7 +12,9 @@ type DataStore struct {
Mutex sync.Mutex
}
var GlobalDataStore *DataStore
var GlobalDataStore = &DataStore{
Data: make(map[string]any),
}
func InitDataStore() *DataStore {
GlobalDataStore = &DataStore{
@ -36,6 +38,7 @@ func InitDataStore() *DataStore {
return nil
}
slog.Info("Loaded data store")
return GlobalDataStore
}