diff --git a/connclient.go b/connclient.go index 769df882..ec7b650b 100644 --- a/connclient.go +++ b/connclient.go @@ -17,11 +17,11 @@ import ( "sync/atomic" "time" - "github.com/aler9/gortsplib/auth" - "github.com/aler9/gortsplib/base" - "github.com/aler9/gortsplib/headers" - "github.com/aler9/gortsplib/multibuffer" - "github.com/aler9/gortsplib/rtcpreceiver" + "github.com/aler9/gortsplib/pkg/auth" + "github.com/aler9/gortsplib/pkg/base" + "github.com/aler9/gortsplib/pkg/headers" + "github.com/aler9/gortsplib/pkg/multibuffer" + "github.com/aler9/gortsplib/pkg/rtcpreceiver" ) const ( diff --git a/connclientpublish.go b/connclientpublish.go index 32d1879a..5078fd05 100644 --- a/connclientpublish.go +++ b/connclientpublish.go @@ -4,7 +4,7 @@ import ( "fmt" "time" - "github.com/aler9/gortsplib/base" + "github.com/aler9/gortsplib/pkg/base" ) // Announce writes an ANNOUNCE request and reads a Response. diff --git a/connclientread.go b/connclientread.go index 6a83c6d0..db6237db 100644 --- a/connclientread.go +++ b/connclientread.go @@ -5,7 +5,7 @@ import ( "sync/atomic" "time" - "github.com/aler9/gortsplib/base" + "github.com/aler9/gortsplib/pkg/base" ) // Play writes a PLAY request and reads a Response. diff --git a/connclientudpl.go b/connclientudpl.go index b9a8f173..819cd7bf 100644 --- a/connclientudpl.go +++ b/connclientudpl.go @@ -6,8 +6,8 @@ import ( "sync/atomic" "time" - "github.com/aler9/gortsplib/base" - "github.com/aler9/gortsplib/multibuffer" + "github.com/aler9/gortsplib/pkg/base" + "github.com/aler9/gortsplib/pkg/multibuffer" ) type connClientUDPListener struct { diff --git a/connserver.go b/connserver.go index 93526666..892d70c8 100644 --- a/connserver.go +++ b/connserver.go @@ -5,8 +5,8 @@ import ( "net" "time" - "github.com/aler9/gortsplib/base" - "github.com/aler9/gortsplib/multibuffer" + "github.com/aler9/gortsplib/pkg/base" + "github.com/aler9/gortsplib/pkg/multibuffer" ) const ( diff --git a/defs.go b/defs.go index e4983c82..0ea74b52 100644 --- a/defs.go +++ b/defs.go @@ -1,7 +1,7 @@ package gortsplib import ( - "github.com/aler9/gortsplib/base" + "github.com/aler9/gortsplib/pkg/base" ) // StreamProtocol is the protocol of a stream. diff --git a/dialer.go b/dialer.go index 4d64a2b3..2e4bca6f 100644 --- a/dialer.go +++ b/dialer.go @@ -7,10 +7,10 @@ import ( "strings" "time" - "github.com/aler9/gortsplib/base" - "github.com/aler9/gortsplib/headers" - "github.com/aler9/gortsplib/multibuffer" - "github.com/aler9/gortsplib/rtcpreceiver" + "github.com/aler9/gortsplib/pkg/base" + "github.com/aler9/gortsplib/pkg/headers" + "github.com/aler9/gortsplib/pkg/multibuffer" + "github.com/aler9/gortsplib/pkg/rtcpreceiver" ) // DefaultDialer is the default dialer, used by Dial, DialRead and DialPublish. diff --git a/dialer_test.go b/dialer_test.go index 2772cc4c..1e1a9e36 100644 --- a/dialer_test.go +++ b/dialer_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/aler9/gortsplib/rtph264" + "github.com/aler9/gortsplib/pkg/rtph264" ) type container struct { diff --git a/examples/client-publish-tcp.go b/examples/client-publish-tcp.go index 10becf5b..93fe6809 100644 --- a/examples/client-publish-tcp.go +++ b/examples/client-publish-tcp.go @@ -7,7 +7,7 @@ import ( "net" "github.com/aler9/gortsplib" - "github.com/aler9/gortsplib/rtph264" + "github.com/aler9/gortsplib/pkg/rtph264" ) // This example shows how to generate RTP/H264 frames from a file with Gstreamer, diff --git a/examples/client-publish-udp.go b/examples/client-publish-udp.go index 177305ab..a8789480 100644 --- a/examples/client-publish-udp.go +++ b/examples/client-publish-udp.go @@ -7,7 +7,7 @@ import ( "net" "github.com/aler9/gortsplib" - "github.com/aler9/gortsplib/rtph264" + "github.com/aler9/gortsplib/pkg/rtph264" ) // This example shows how to generate RTP/H264 frames from a file with Gstreamer, diff --git a/examples/client-query.go b/examples/client-query.go index 49c1050d..19bb8e2c 100644 --- a/examples/client-query.go +++ b/examples/client-query.go @@ -6,7 +6,7 @@ import ( "fmt" "github.com/aler9/gortsplib" - "github.com/aler9/gortsplib/base" + "github.com/aler9/gortsplib/pkg/base" ) // This example shows how to connect to a server and print informations about diff --git a/auth/client.go b/pkg/auth/client.go similarity index 96% rename from auth/client.go rename to pkg/auth/client.go index f4a2881b..58b9661b 100644 --- a/auth/client.go +++ b/pkg/auth/client.go @@ -6,8 +6,8 @@ import ( "net/url" "strings" - "github.com/aler9/gortsplib/base" - "github.com/aler9/gortsplib/headers" + "github.com/aler9/gortsplib/pkg/base" + "github.com/aler9/gortsplib/pkg/headers" ) // Client is an object that allows a client to authenticate against a server. diff --git a/auth/package.go b/pkg/auth/package.go similarity index 100% rename from auth/package.go rename to pkg/auth/package.go diff --git a/auth/package_test.go b/pkg/auth/package_test.go similarity index 95% rename from auth/package_test.go rename to pkg/auth/package_test.go index 489fb40d..64e742eb 100644 --- a/auth/package_test.go +++ b/pkg/auth/package_test.go @@ -6,8 +6,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/aler9/gortsplib/base" - "github.com/aler9/gortsplib/headers" + "github.com/aler9/gortsplib/pkg/base" + "github.com/aler9/gortsplib/pkg/headers" ) var casesAuth = []struct { diff --git a/auth/server.go b/pkg/auth/server.go similarity index 97% rename from auth/server.go rename to pkg/auth/server.go index af58c9ee..971765d3 100644 --- a/auth/server.go +++ b/pkg/auth/server.go @@ -7,8 +7,8 @@ import ( "fmt" "strings" - "github.com/aler9/gortsplib/base" - "github.com/aler9/gortsplib/headers" + "github.com/aler9/gortsplib/pkg/base" + "github.com/aler9/gortsplib/pkg/headers" ) // Server allows a server to authenticate a client. diff --git a/auth/utils.go b/pkg/auth/utils.go similarity index 100% rename from auth/utils.go rename to pkg/auth/utils.go diff --git a/base/content.go b/pkg/base/content.go similarity index 100% rename from base/content.go rename to pkg/base/content.go diff --git a/base/defs.go b/pkg/base/defs.go similarity index 100% rename from base/defs.go rename to pkg/base/defs.go diff --git a/base/header.go b/pkg/base/header.go similarity index 100% rename from base/header.go rename to pkg/base/header.go diff --git a/base/header_test.go b/pkg/base/header_test.go similarity index 100% rename from base/header_test.go rename to pkg/base/header_test.go diff --git a/base/interleavedframe.go b/pkg/base/interleavedframe.go similarity index 100% rename from base/interleavedframe.go rename to pkg/base/interleavedframe.go diff --git a/base/request.go b/pkg/base/request.go similarity index 100% rename from base/request.go rename to pkg/base/request.go diff --git a/base/request_test.go b/pkg/base/request_test.go similarity index 100% rename from base/request_test.go rename to pkg/base/request_test.go diff --git a/base/response.go b/pkg/base/response.go similarity index 100% rename from base/response.go rename to pkg/base/response.go diff --git a/base/response_test.go b/pkg/base/response_test.go similarity index 100% rename from base/response_test.go rename to pkg/base/response_test.go diff --git a/base/url.go b/pkg/base/url.go similarity index 100% rename from base/url.go rename to pkg/base/url.go diff --git a/base/url_test.go b/pkg/base/url_test.go similarity index 100% rename from base/url_test.go rename to pkg/base/url_test.go diff --git a/base/utils.go b/pkg/base/utils.go similarity index 100% rename from base/utils.go rename to pkg/base/utils.go diff --git a/headers/auth.go b/pkg/headers/auth.go similarity index 98% rename from headers/auth.go rename to pkg/headers/auth.go index 0ea62808..44a45e42 100644 --- a/headers/auth.go +++ b/pkg/headers/auth.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/aler9/gortsplib/base" + "github.com/aler9/gortsplib/pkg/base" ) // AuthMethod is an authentication method. diff --git a/headers/auth_test.go b/pkg/headers/auth_test.go similarity index 99% rename from headers/auth_test.go rename to pkg/headers/auth_test.go index f44cffee..3820692d 100644 --- a/headers/auth_test.go +++ b/pkg/headers/auth_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/aler9/gortsplib/base" + "github.com/aler9/gortsplib/pkg/base" ) var casesAuth = []struct { diff --git a/headers/session.go b/pkg/headers/session.go similarity index 97% rename from headers/session.go rename to pkg/headers/session.go index ca464ef5..9f2d598e 100644 --- a/headers/session.go +++ b/pkg/headers/session.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/aler9/gortsplib/base" + "github.com/aler9/gortsplib/pkg/base" ) // Session is a Session header. diff --git a/headers/session_test.go b/pkg/headers/session_test.go similarity index 96% rename from headers/session_test.go rename to pkg/headers/session_test.go index c4a30766..dd4f72a3 100644 --- a/headers/session_test.go +++ b/pkg/headers/session_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/aler9/gortsplib/base" + "github.com/aler9/gortsplib/pkg/base" ) var casesSession = []struct { diff --git a/headers/transport.go b/pkg/headers/transport.go similarity index 99% rename from headers/transport.go rename to pkg/headers/transport.go index 4e6380cc..d6a9005a 100644 --- a/headers/transport.go +++ b/pkg/headers/transport.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/aler9/gortsplib/base" + "github.com/aler9/gortsplib/pkg/base" ) // TransportMode is a transport mode. diff --git a/headers/transport_test.go b/pkg/headers/transport_test.go similarity index 98% rename from headers/transport_test.go rename to pkg/headers/transport_test.go index 9bfbd24b..f805cc33 100644 --- a/headers/transport_test.go +++ b/pkg/headers/transport_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/aler9/gortsplib/base" + "github.com/aler9/gortsplib/pkg/base" ) var casesTransport = []struct { diff --git a/multibuffer/multibuffer.go b/pkg/multibuffer/multibuffer.go similarity index 100% rename from multibuffer/multibuffer.go rename to pkg/multibuffer/multibuffer.go diff --git a/rtcpreceiver/rtcpreceiver.go b/pkg/rtcpreceiver/rtcpreceiver.go similarity index 98% rename from rtcpreceiver/rtcpreceiver.go rename to pkg/rtcpreceiver/rtcpreceiver.go index ce34f0ec..7120a80d 100644 --- a/rtcpreceiver/rtcpreceiver.go +++ b/pkg/rtcpreceiver/rtcpreceiver.go @@ -7,7 +7,7 @@ import ( "github.com/pion/rtcp" - "github.com/aler9/gortsplib/base" + "github.com/aler9/gortsplib/pkg/base" ) type frameRtpReq struct { diff --git a/rtpaac/encoder.go b/pkg/rtpaac/encoder.go similarity index 100% rename from rtpaac/encoder.go rename to pkg/rtpaac/encoder.go diff --git a/rtph264/decoder.go b/pkg/rtph264/decoder.go similarity index 100% rename from rtph264/decoder.go rename to pkg/rtph264/decoder.go diff --git a/rtph264/defs.go b/pkg/rtph264/defs.go similarity index 100% rename from rtph264/defs.go rename to pkg/rtph264/defs.go diff --git a/rtph264/encoder.go b/pkg/rtph264/encoder.go similarity index 100% rename from rtph264/encoder.go rename to pkg/rtph264/encoder.go diff --git a/sdp/sdp.go b/pkg/sdp/sdp.go similarity index 100% rename from sdp/sdp.go rename to pkg/sdp/sdp.go diff --git a/sdp/sdp_test.go b/pkg/sdp/sdp_test.go similarity index 100% rename from sdp/sdp_test.go rename to pkg/sdp/sdp_test.go diff --git a/track.go b/track.go index 1c5965b5..85baec34 100644 --- a/track.go +++ b/track.go @@ -10,7 +10,7 @@ import ( "github.com/notedit/rtmp/codec/aac" psdp "github.com/pion/sdp/v3" - "github.com/aler9/gortsplib/sdp" + "github.com/aler9/gortsplib/pkg/sdp" ) // Track is a track available in a certain URL.