agent/api/container/transport.go
func (tp *TransportProtocol) String() string {
	if tp == nil {
		return tcp
	}
	switch *tp {
	case TransportProtocolUDP:
		return udp
	case TransportProtocolTCP:
		return tcp
	default:
		seelog.Critical("Unknown TransportProtocol type!")
		return tcp
	}
}
func (tp *TransportProtocol) String() string {
	if tp == nil {
		return tcp
	}
	switch *tp {
	case TransportProtocolUDP:
		return udp
	case TransportProtocolTCP:
		return tcp
	default:
		seelog.Critical("Unknown TransportProtocol type!")
		return tcp
	}
}
func ( tp * TransportProtocol ) String ( ) string { if tp == nil { return tcp } switch * tp { case TransportProtocolUDP : return udp case TransportProtocolTCP : return tcp default : seelog . Critical ( " " ) return tcp } }
// String converts TransportProtocol to a string
String converts TransportProtocol to a string