common/pkg/coach-client/us_test.go

24 lines
469 B
Go

package coach_client
import (
"context"
"testing"
"time"
"gitea.timerzz.com/kedaya_haitao/common/pkg/proxy"
)
func TestClient(t *testing.T) {
subs := []string{"http://116.198.252.167:12580/clash/config"}
pool := proxy.NewProxyPool(&proxy.Option{
Clash: subs,
Interval: 10 * time.Minute,
})
client := US(pool).CreateByType(USClient_Type_Coach)
resp, err := client.ViewAllBags(context.Background(), 1)
if err != nil {
t.Fatal(err)
}
t.Log(resp)
}