实现基本的访问日志策略

This commit is contained in:
GoEdgeLab
2021-07-29 16:50:59 +08:00
parent 2de2c238c8
commit 2cff745806
19 changed files with 1451 additions and 57 deletions

View File

@@ -0,0 +1,17 @@
package accesslogs
import (
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestStorageManager_Loop(t *testing.T) {
dbs.NotifyReady()
var storage = NewStorageManager()
err := storage.Loop()
if err != nil {
t.Fatal(err)
}
t.Log(storage.storageMap)
}