mirror of
https://github.com/trafficlunar/api.git
synced 2026-06-27 22:24:08 +00:00
feat: keys, clicks, and totals in computer statistics
This commit is contained in:
parent
19bdd27de1
commit
8407a1258f
6 changed files with 85 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue