Revert "Move ICE package from public to internal folder structure"

ICE Package needs to be public for peerConnection.OnICEConnectionStateChange

This reverts commit b831f87d28.
This commit is contained in:
Sean DuBois
2018-08-16 10:10:29 -07:00
parent 7ff21d0d13
commit 78b6a76cc5
15 changed files with 10 additions and 10 deletions

View File

@@ -10,8 +10,8 @@ import (
"time" "time"
"github.com/pions/webrtc" "github.com/pions/webrtc"
"github.com/pions/webrtc/internal/ice"
"github.com/pions/webrtc/pkg/datachannel" "github.com/pions/webrtc/pkg/datachannel"
"github.com/pions/webrtc/pkg/ice"
) )
func randSeq(n int) string { func randSeq(n int) string {

View File

@@ -10,7 +10,7 @@ import (
"github.com/pions/webrtc" "github.com/pions/webrtc"
"github.com/pions/webrtc/examples/gstreamer-receive/gst" "github.com/pions/webrtc/examples/gstreamer-receive/gst"
"github.com/pions/webrtc/internal/ice" "github.com/pions/webrtc/pkg/ice"
) )
func main() { func main() {

View File

@@ -10,7 +10,7 @@ import (
"github.com/pions/webrtc" "github.com/pions/webrtc"
"github.com/pions/webrtc/examples/gstreamer-send/gst" "github.com/pions/webrtc/examples/gstreamer-send/gst"
"github.com/pions/webrtc/internal/ice" "github.com/pions/webrtc/pkg/ice"
) )
func main() { func main() {

View File

@@ -8,7 +8,7 @@ import (
"os" "os"
"github.com/pions/webrtc" "github.com/pions/webrtc"
"github.com/pions/webrtc/internal/ice" "github.com/pions/webrtc/pkg/ice"
) )
func main() { func main() {

View File

@@ -8,11 +8,11 @@ import (
"github.com/pions/pkg/stun" "github.com/pions/pkg/stun"
"github.com/pions/webrtc/internal/dtls" "github.com/pions/webrtc/internal/dtls"
"github.com/pions/webrtc/internal/ice"
"github.com/pions/webrtc/internal/sctp" "github.com/pions/webrtc/internal/sctp"
"github.com/pions/webrtc/internal/srtp" "github.com/pions/webrtc/internal/srtp"
webrtcStun "github.com/pions/webrtc/internal/stun" webrtcStun "github.com/pions/webrtc/internal/stun"
"github.com/pions/webrtc/pkg/datachannel" "github.com/pions/webrtc/pkg/datachannel"
"github.com/pions/webrtc/pkg/ice"
"github.com/pions/webrtc/pkg/rtp" "github.com/pions/webrtc/pkg/rtp"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View File

@@ -1,8 +1,8 @@
package network package network
import ( import (
"github.com/pions/webrtc/internal/ice"
"github.com/pions/webrtc/pkg/datachannel" "github.com/pions/webrtc/pkg/datachannel"
"github.com/pions/webrtc/pkg/ice"
"github.com/pions/webrtc/pkg/rtp" "github.com/pions/webrtc/pkg/rtp"
) )

View File

@@ -5,7 +5,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/pions/webrtc/internal/ice" "github.com/pions/webrtc/pkg/ice"
) )
// ICECandidateUnmarshal takes a candidate strings and returns a ice.Candidate or nil if it fails to parse // ICECandidateUnmarshal takes a candidate strings and returns a ice.Candidate or nil if it fails to parse

View File

@@ -6,7 +6,7 @@ import (
"time" "time"
"github.com/pions/pkg/stun" "github.com/pions/pkg/stun"
"github.com/pions/webrtc/internal/ice" "github.com/pions/webrtc/pkg/ice"
"github.com/pkg/errors" "github.com/pkg/errors"
) )

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/pions/webrtc/internal/ice" "github.com/pions/webrtc/pkg/ice"
) )
// RTCICECredentialType indicates the type of credentials used to connect to an ICE server // RTCICECredentialType indicates the type of credentials used to connect to an ICE server

View File

@@ -6,8 +6,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/pions/webrtc/internal/ice"
"github.com/pions/webrtc/internal/network" "github.com/pions/webrtc/internal/network"
"github.com/pions/webrtc/pkg/ice"
"github.com/pions/webrtc/pkg/rtp" "github.com/pions/webrtc/pkg/rtp"
"github.com/pkg/errors" "github.com/pkg/errors"
) )