MCPcopy
hub / github.com/moby/moby / Proto

Method Proto

api/types/network/port.go:91–96  ·  view source on GitHub ↗

Proto returns p's network protocol.

()

Source from the content-addressed store, hash-verified

89
90// Proto returns p's network protocol.
91func (p Port) Proto() IPProtocol {
92 if p.proto == protoZero {
93 return ""
94 }
95 return p.proto.Value()
96}
97
98// IsZero reports whether p is the zero value.
99func (p Port) IsZero() bool {

Callers 13

TestPortFunction · 0.95
ToEnvMethod · 0.95
createServicesFunction · 0.45
buildSandboxOptionsFunction · 0.45
transformMethod · 0.45
withTCPPriorityFunction · 0.45
TestParseNetworkOptsUdpFunction · 0.45
TestParseNetworkOptsSctpFunction · 0.45
parsePortMapFunction · 0.45

Calls 1

ValueMethod · 0.65

Tested by 7

TestPortFunction · 0.76
createServicesFunction · 0.36
TestParseNetworkOptsUdpFunction · 0.36
TestParseNetworkOptsSctpFunction · 0.36
assertPortRangeFunction · 0.36