智能DNS初步支持搜索引擎线路

This commit is contained in:
GoEdgeLab
2022-12-13 18:39:23 +08:00
parent 24a7ec8f02
commit 4213f03ded
18 changed files with 465 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
package clients_test
import (
"github.com/TeaOSLab/EdgeAPI/internal/db/models/clients"
_ "github.com/go-sql-driver/mysql"
_ "github.com/iwind/TeaGo/bootstrap"
"testing"
)
func TestClientAgentIPDAO_CreateIP(t *testing.T) {
var dao = clients.NewClientAgentIPDAO()
err := dao.CreateIP(nil, 1, "127.0.0.1", "")
if err != nil {
t.Fatal(err)
}
}