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

Method Proto

api/types/network/port.go:248–253  ·  view source on GitHub ↗

Proto returns pr's network protocol.

()

Source from the content-addressed store, hash-verified

246
247// Proto returns pr's network protocol.
248func (pr PortRange) Proto() IPProtocol {
249 if pr.proto == protoZero {
250 return ""
251 }
252 return pr.proto.Value()
253}
254
255// IsZero reports whether pr is the zero value.
256func (pr PortRange) IsZero() bool {

Callers 1

TestPortRangeFunction · 0.95

Calls 1

ValueMethod · 0.65

Tested by 1

TestPortRangeFunction · 0.76