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

Method StringToProxy

tars/communicator.go:93–99  ·  view source on GitHub ↗

StringToProxy sets the servant of ProxyPrx p with a string servant

(servant string, p ProxyPrx, opts ...EndpointManagerOption)

Source from the content-addressed store, hash-verified

91
92// StringToProxy sets the servant of ProxyPrx p with a string servant
93func (c *Communicator) StringToProxy(servant string, p ProxyPrx, opts ...EndpointManagerOption) {
94 if servant == "" {
95 panic("empty servant")
96 }
97 sp := NewServantProxy(c, servant, opts...)
98 p.SetServant(sp)
99}
100
101// SetProperty sets communicator property with a string key and an interface value.
102// var comm *tars.Communicator

Callers 15

TestStringToProxyFunction · 0.95
NewRConfFunction · 0.80
InitMethod · 0.80
SetNotifyInfoMethod · 0.80
NewRemoteTimeWriterFunction · 0.80
newEndpointManagerFunction · 0.80
InitMethod · 0.80
SetNodeInfoMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 2

NewServantProxyFunction · 0.85
SetServantMethod · 0.65

Tested by 1

TestStringToProxyFunction · 0.76