MCPcopy
hub / github.com/grpc/grpc-go / CanonicalTarget

Method CanonicalTarget

clientconn.go:962–964  ·  clientconn.go::ClientConn.CanonicalTarget

CanonicalTarget returns the canonical target string used when creating cc. This always has the form "<scheme>://[authority]/<endpoint>". For example: - "dns:///example.com:42" - "dns://8.8.8.8/example.com:42" - "unix:///path/to/socket"

()

Source from the content-addressed store, hash-verified

960// - "dns://8.8.8.8/example.com:42"
961// - "unix:///path/to/socket"
962func (cc *ClientConn) CanonicalTarget() string {
963 return cc.parsedTarget.String()
964}
965
966func (cc *ClientConn) incrCallsStarted() {
967 cc.channelz.ChannelMetrics.CallsStarted.Add(1)

Callers 2

getOrCreateCallInfoFunction · 0.80

Calls 1

StringMethod · 0.65

Tested by 1