API RPC配置增加disableUpdate,可以停用自动更新API节点

This commit is contained in:
刘祥超
2022-07-21 14:06:38 +08:00
parent 515a590681
commit 2b650fd285
5 changed files with 32 additions and 18 deletions

View File

@@ -1,11 +1,15 @@
package configs
package configs_test
import "testing"
import (
"github.com/TeaOSLab/EdgeNode/internal/configs"
_ "github.com/iwind/TeaGo/bootstrap"
"testing"
)
func TestLoadAPIConfig(t *testing.T) {
config, err := LoadAPIConfig()
config, err := configs.LoadAPIConfig()
if err != nil {
t.Fatal(err)
}
t.Log(config)
t.Logf("%+v", config)
}