From 34abb27947eda4b4955d3a5ea2d1a8ee4fd4681c Mon Sep 17 00:00:00 2001 From: boyce <6549168@qq.com> Date: Sat, 27 Jul 2019 15:55:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B5=8B=E8=AF=95=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Test/.vscode/launch.json | 21 +++++++++++++++++++++ Test/.vscode/settings.json | 3 +++ Test/config/cluster.json | 16 ++++------------ Test/main.go | 2 +- Test/workspace.code-workspace | 10 ++++++++++ 5 files changed, 39 insertions(+), 13 deletions(-) create mode 100644 Test/.vscode/launch.json create mode 100644 Test/.vscode/settings.json create mode 100644 Test/workspace.code-workspace diff --git a/Test/.vscode/launch.json b/Test/.vscode/launch.json new file mode 100644 index 0000000..87a1481 --- /dev/null +++ b/Test/.vscode/launch.json @@ -0,0 +1,21 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + + "configurations": [ + { + "name": "N_All", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceRoot}/main.go", + "env": { + "GOPATH":"${workspaceRoot}/../../../../../" + }, + "args": ["NodeId=1"], + "output": "./OriginServer.exe" + } + ] +} \ No newline at end of file diff --git a/Test/.vscode/settings.json b/Test/.vscode/settings.json new file mode 100644 index 0000000..ef5cde8 --- /dev/null +++ b/Test/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "go.gopath": "${workspaceRoot}/../../../../../" +} diff --git a/Test/config/cluster.json b/Test/config/cluster.json index b383ca6..0c3da33 100644 --- a/Test/config/cluster.json +++ b/Test/config/cluster.json @@ -1,25 +1,17 @@ { "PublicServiceList":["logiclog"], +"//":" Auto or Manual", +"ClusterPattern":"Auto", +"MasterNodeId":1, "NodeList":[ { "NodeID":1, "NodeName":"N_Node1", - "ServerAddr":"127.0.0.1:8080", - + "ServerAddr":"127.0.0.1:10000", "ServiceList":["CTestService1","CTestService2","HttpServerService","WSServerService","CWebSockService"], "ClusterNode":["N_Node2"] -}, - - -{ - "NodeID":2, - "NodeName":"N_Node2", - "ServerAddr":"127.0.0.1:8081", - "ServiceList":["TestService1","collectTickLogService"], - "ClusterNode":[] } - ] diff --git a/Test/main.go b/Test/main.go index 3046e9c..bd29294 100644 --- a/Test/main.go +++ b/Test/main.go @@ -81,7 +81,7 @@ func (slf *CTestService2) RPC_Add(arg *InputData, ret *int) error { } func main() { - node := originnode.NewOrginNode() + node := originnode.NewOriginNode() if node == nil { return } diff --git a/Test/workspace.code-workspace b/Test/workspace.code-workspace new file mode 100644 index 0000000..1283249 --- /dev/null +++ b/Test/workspace.code-workspace @@ -0,0 +1,10 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": { + "http.systemCertificates": false + } +} \ No newline at end of file