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

Function addr

channelz/service/service_test.go:795–803  ·  view source on GitHub ↗
(a net.Addr)

Source from the content-addressed store, hash-verified

793}
794
795func addr(a net.Addr) string {
796 switch a := a.(type) {
797 case *net.TCPAddr:
798 return escape([]byte(a.IP))
799 case *net.IPAddr:
800 return escape([]byte(a.IP))
801 }
802 return ""
803}

Callers 1

TestGetSocketMethod · 0.70

Calls 1

escapeFunction · 0.85

Tested by

no test coverage detected