From 18f7fab36152083e931becec2da1fc63d865e14c Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Tue, 10 May 2022 10:28:52 +0200 Subject: [PATCH] update docs --- pkg/aac/audiotype.go | 2 +- pkg/base/request.go | 2 +- pkg/base/response.go | 2 +- pkg/h264/nalutype.go | 2 +- pkg/headers/transport.go | 4 ++-- pkg/sdp/sdp_test.go | 4 ++-- serversession.go | 2 +- transport.go | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pkg/aac/audiotype.go b/pkg/aac/audiotype.go index b37a8573..b5954609 100644 --- a/pkg/aac/audiotype.go +++ b/pkg/aac/audiotype.go @@ -3,7 +3,7 @@ package aac // MPEG4AudioType is the type of a MPEG-4 Audio stream. type MPEG4AudioType int -// standard MPEG-4 Audio types. +// MPEG-4 Audio types. const ( MPEG4AudioTypeAACLC MPEG4AudioType = 2 ) diff --git a/pkg/base/request.go b/pkg/base/request.go index fb58176e..4e22e6e5 100644 --- a/pkg/base/request.go +++ b/pkg/base/request.go @@ -19,7 +19,7 @@ const ( // Method is the method of a RTSP request. type Method string -// standard methods +// methods. const ( Announce Method = "ANNOUNCE" Describe Method = "DESCRIBE" diff --git a/pkg/base/response.go b/pkg/base/response.go index ad70eeba..b1a11906 100644 --- a/pkg/base/response.go +++ b/pkg/base/response.go @@ -11,7 +11,7 @@ import ( // StatusCode is the status code of a RTSP response. type StatusCode int -// standard status codes +// status codes. const ( StatusContinue StatusCode = 100 StatusOK StatusCode = 200 diff --git a/pkg/h264/nalutype.go b/pkg/h264/nalutype.go index 5c6b7166..0643b358 100644 --- a/pkg/h264/nalutype.go +++ b/pkg/h264/nalutype.go @@ -7,7 +7,7 @@ import ( // NALUType is the type of a NALU. type NALUType uint8 -// standard NALU types. +// NALU types. const ( NALUTypeNonIDR NALUType = 1 NALUTypeDataPartitionA NALUType = 2 diff --git a/pkg/headers/transport.go b/pkg/headers/transport.go index 636bfe09..6088a734 100644 --- a/pkg/headers/transport.go +++ b/pkg/headers/transport.go @@ -14,7 +14,7 @@ import ( // TransportProtocol is a transport protocol. type TransportProtocol int -// standard transport protocols. +// transport protocols. const ( TransportProtocolUDP TransportProtocol = iota TransportProtocolTCP @@ -23,7 +23,7 @@ const ( // TransportDelivery is a delivery method. type TransportDelivery int -// standard transport delivery methods. +// transport delivery methods. const ( TransportDeliveryUnicast TransportDelivery = iota TransportDeliveryMulticast diff --git a/pkg/sdp/sdp_test.go b/pkg/sdp/sdp_test.go index c6d33add..b83c3bdc 100644 --- a/pkg/sdp/sdp_test.go +++ b/pkg/sdp/sdp_test.go @@ -15,7 +15,7 @@ var cases = []struct { enc []byte desc SessionDescription }{ - // standard-compliant SDPs + // compliant SDPs { "base", []byte("v=0\r\n" + @@ -269,7 +269,7 @@ var cases = []struct { }, }, }, - // non standard-compliant SDPs + // non compliant SDPs { "unordered global attributes", []byte("v=0\r\n" + diff --git a/serversession.go b/serversession.go index 6a57d5b0..8ca15d2d 100644 --- a/serversession.go +++ b/serversession.go @@ -115,7 +115,7 @@ func setupGetTransport(th headers.Transport) (Transport, bool) { // ServerSessionState is a state of a ServerSession. type ServerSessionState int -// standard states. +// states. const ( ServerSessionStateInitial ServerSessionState = iota ServerSessionStatePrePlay diff --git a/transport.go b/transport.go index c8d1a459..470f7d7c 100644 --- a/transport.go +++ b/transport.go @@ -3,7 +3,7 @@ package gortsplib // Transport is a RTSP transport protocol. type Transport int -// standard transport protocols. +// transport protocols. const ( TransportUDP Transport = iota TransportUDPMulticast