mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 23:52:46 +08:00
rename Udp into UDP and Tcp into TCP, like the Go standard library
This commit is contained in:
10
utils.go
10
utils.go
@@ -15,16 +15,16 @@ const (
|
||||
type StreamProtocol int
|
||||
|
||||
const (
|
||||
// StreamProtocolUdp means that the stream uses the UDP protocol
|
||||
StreamProtocolUdp StreamProtocol = iota
|
||||
// StreamProtocolUDP means that the stream uses the UDP protocol
|
||||
StreamProtocolUDP StreamProtocol = iota
|
||||
|
||||
// StreamProtocolTcp means that the stream uses the TCP protocol
|
||||
StreamProtocolTcp
|
||||
// StreamProtocolTCP means that the stream uses the TCP protocol
|
||||
StreamProtocolTCP
|
||||
)
|
||||
|
||||
// String implements fmt.Stringer
|
||||
func (sp StreamProtocol) String() string {
|
||||
if sp == StreamProtocolUdp {
|
||||
if sp == StreamProtocolUDP {
|
||||
return "udp"
|
||||
}
|
||||
return "tcp"
|
||||
|
Reference in New Issue
Block a user