MCPcopy
hub / github.com/TarsCloud/TarsGo / main

Function main

examples/TlsTestServer/client/client.go:11–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func main() {
12 tars.ServerConfigPath = "config.conf"
13 comm := tars.GetCommunicator()
14 obj := fmt.Sprintf("App.TlsTestServer.TlsObj@ssl -h 127.0.0.1 -p 13015 -t 6000000000")
15 app := new(App.Tls)
16 comm.StringToProxy(obj, app)
17 var out, i int32
18 i = 123
19 ret, err := app.Add(i, i*2, &out)
20 if err != nil {
21 fmt.Println(err)
22 return
23 }
24 fmt.Println(ret, out)
25}

Callers

nothing calls this directly

Calls 3

GetCommunicatorFunction · 0.92
StringToProxyMethod · 0.80
AddMethod · 0.65

Tested by

no test coverage detected