mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
新增测试初始代码
This commit is contained in:
21
Test/.vscode/launch.json
vendored
Normal file
21
Test/.vscode/launch.json
vendored
Normal file
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
3
Test/.vscode/settings.json
vendored
Normal file
3
Test/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"go.gopath": "${workspaceRoot}/../../../../../"
|
||||||
|
}
|
||||||
@@ -1,25 +1,17 @@
|
|||||||
{
|
{
|
||||||
"PublicServiceList":["logiclog"],
|
"PublicServiceList":["logiclog"],
|
||||||
|
|
||||||
|
"//":" Auto or Manual",
|
||||||
|
"ClusterPattern":"Auto",
|
||||||
|
"MasterNodeId":1,
|
||||||
"NodeList":[
|
"NodeList":[
|
||||||
{
|
{
|
||||||
"NodeID":1,
|
"NodeID":1,
|
||||||
"NodeName":"N_Node1",
|
"NodeName":"N_Node1",
|
||||||
"ServerAddr":"127.0.0.1:8080",
|
"ServerAddr":"127.0.0.1:10000",
|
||||||
|
|
||||||
"ServiceList":["CTestService1","CTestService2","HttpServerService","WSServerService","CWebSockService"],
|
"ServiceList":["CTestService1","CTestService2","HttpServerService","WSServerService","CWebSockService"],
|
||||||
"ClusterNode":["N_Node2"]
|
"ClusterNode":["N_Node2"]
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
"NodeID":2,
|
|
||||||
"NodeName":"N_Node2",
|
|
||||||
"ServerAddr":"127.0.0.1:8081",
|
|
||||||
"ServiceList":["TestService1","collectTickLogService"],
|
|
||||||
"ClusterNode":[]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ func (slf *CTestService2) RPC_Add(arg *InputData, ret *int) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
node := originnode.NewOrginNode()
|
node := originnode.NewOriginNode()
|
||||||
if node == nil {
|
if node == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
10
Test/workspace.code-workspace
Normal file
10
Test/workspace.code-workspace
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"http.systemCertificates": false
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user