mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-02-02 06:48:14 -05:00
21 lines
367 B
Go
21 lines
367 B
Go
|
package panel
|
||
|
|
||
|
import (
|
||
|
"github.com/Yuzuki616/V2bX/conf"
|
||
|
"github.com/Yuzuki616/V2bX/node/controller/legoCmd/log"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestClient_GetNodeInfo(t *testing.T) {
|
||
|
c, err := New(&conf.ApiConfig{
|
||
|
APIHost: "http://127.0.0.1",
|
||
|
Key: "token",
|
||
|
NodeType: "V2ray",
|
||
|
NodeID: 1,
|
||
|
})
|
||
|
if err != nil {
|
||
|
log.Print(err)
|
||
|
}
|
||
|
log.Println(c.GetNodeInfo())
|
||
|
}
|