move subfolders in pkg/

This commit is contained in:
aler9
2020-11-15 17:26:09 +01:00
parent 65f6afcd9f
commit c31922be16
43 changed files with 34 additions and 34 deletions

View File

@@ -17,11 +17,11 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/aler9/gortsplib/auth" "github.com/aler9/gortsplib/pkg/auth"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
"github.com/aler9/gortsplib/headers" "github.com/aler9/gortsplib/pkg/headers"
"github.com/aler9/gortsplib/multibuffer" "github.com/aler9/gortsplib/pkg/multibuffer"
"github.com/aler9/gortsplib/rtcpreceiver" "github.com/aler9/gortsplib/pkg/rtcpreceiver"
) )
const ( const (

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
) )
// Announce writes an ANNOUNCE request and reads a Response. // Announce writes an ANNOUNCE request and reads a Response.

View File

@@ -5,7 +5,7 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
) )
// Play writes a PLAY request and reads a Response. // Play writes a PLAY request and reads a Response.

View File

@@ -6,8 +6,8 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
"github.com/aler9/gortsplib/multibuffer" "github.com/aler9/gortsplib/pkg/multibuffer"
) )
type connClientUDPListener struct { type connClientUDPListener struct {

View File

@@ -5,8 +5,8 @@ import (
"net" "net"
"time" "time"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
"github.com/aler9/gortsplib/multibuffer" "github.com/aler9/gortsplib/pkg/multibuffer"
) )
const ( const (

View File

@@ -1,7 +1,7 @@
package gortsplib package gortsplib
import ( import (
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
) )
// StreamProtocol is the protocol of a stream. // StreamProtocol is the protocol of a stream.

View File

@@ -7,10 +7,10 @@ import (
"strings" "strings"
"time" "time"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
"github.com/aler9/gortsplib/headers" "github.com/aler9/gortsplib/pkg/headers"
"github.com/aler9/gortsplib/multibuffer" "github.com/aler9/gortsplib/pkg/multibuffer"
"github.com/aler9/gortsplib/rtcpreceiver" "github.com/aler9/gortsplib/pkg/rtcpreceiver"
) )
// DefaultDialer is the default dialer, used by Dial, DialRead and DialPublish. // DefaultDialer is the default dialer, used by Dial, DialRead and DialPublish.

View File

@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/rtph264" "github.com/aler9/gortsplib/pkg/rtph264"
) )
type container struct { type container struct {

View File

@@ -7,7 +7,7 @@ import (
"net" "net"
"github.com/aler9/gortsplib" "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, // This example shows how to generate RTP/H264 frames from a file with Gstreamer,

View File

@@ -7,7 +7,7 @@ import (
"net" "net"
"github.com/aler9/gortsplib" "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, // This example shows how to generate RTP/H264 frames from a file with Gstreamer,

View File

@@ -6,7 +6,7 @@ import (
"fmt" "fmt"
"github.com/aler9/gortsplib" "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 // This example shows how to connect to a server and print informations about

View File

@@ -6,8 +6,8 @@ import (
"net/url" "net/url"
"strings" "strings"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
"github.com/aler9/gortsplib/headers" "github.com/aler9/gortsplib/pkg/headers"
) )
// Client is an object that allows a client to authenticate against a server. // Client is an object that allows a client to authenticate against a server.

View File

@@ -6,8 +6,8 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
"github.com/aler9/gortsplib/headers" "github.com/aler9/gortsplib/pkg/headers"
) )
var casesAuth = []struct { var casesAuth = []struct {

View File

@@ -7,8 +7,8 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
"github.com/aler9/gortsplib/headers" "github.com/aler9/gortsplib/pkg/headers"
) )
// Server allows a server to authenticate a client. // Server allows a server to authenticate a client.

View File

@@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
) )
// AuthMethod is an authentication method. // AuthMethod is an authentication method.

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
) )
var casesAuth = []struct { var casesAuth = []struct {

View File

@@ -5,7 +5,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
) )
// Session is a Session header. // Session is a Session header.

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
) )
var casesSession = []struct { var casesSession = []struct {

View File

@@ -5,7 +5,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
) )
// TransportMode is a transport mode. // TransportMode is a transport mode.

View File

@@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
) )
var casesTransport = []struct { var casesTransport = []struct {

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtcp" "github.com/pion/rtcp"
"github.com/aler9/gortsplib/base" "github.com/aler9/gortsplib/pkg/base"
) )
type frameRtpReq struct { type frameRtpReq struct {

View File

@@ -10,7 +10,7 @@ import (
"github.com/notedit/rtmp/codec/aac" "github.com/notedit/rtmp/codec/aac"
psdp "github.com/pion/sdp/v3" 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. // Track is a track available in a certain URL.