MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / NewRemoteClientCreator

Function NewRemoteClientCreator

proxy/client.go:55–61  ·  view source on GitHub ↗

NewRemoteClientCreator returns a ClientCreator for the given address (e.g. "192.168.0.1") and transport (e.g. "tcp"). Set mustConnect to true if you want the client to connect before reporting success.

(addr, transport string, mustConnect bool)

Source from the content-addressed store, hash-verified

53// "192.168.0.1") and transport (e.g. "tcp"). Set mustConnect to true if you
54// want the client to connect before reporting success.
55func NewRemoteClientCreator(addr, transport string, mustConnect bool) ClientCreator {
56 return &remoteClientCreator{
57 addr: addr,
58 transport: transport,
59 mustConnect: mustConnect,
60 }
61}
62
63func (r *remoteClientCreator) NewABCIClient() (abcicli.Client, error) {
64 remoteApp, err := abcicli.NewClient(r.addr, r.transport, r.mustConnect)

Callers 5

TestEchoFunction · 0.85
BenchmarkEchoFunction · 0.85
TestInfoFunction · 0.85
DefaultClientCreatorFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestEchoFunction · 0.68
BenchmarkEchoFunction · 0.68
TestInfoFunction · 0.68