mirror of
				https://github.com/pion/webrtc.git
				synced 2025-10-31 18:52:55 +08:00 
			
		
		
		
	Move pkg/ice to internal/ice
Avoid exposing any non-standard API.
This commit is contained in:
		| @@ -1,7 +1,7 @@ | ||||
| package webrtc | ||||
|  | ||||
| import ( | ||||
| 	"github.com/pions/webrtc/pkg/ice" | ||||
| 	"github.com/pions/webrtc/internal/ice" | ||||
| ) | ||||
|  | ||||
| // Configuration defines a set of parameters to configure how the | ||||
|   | ||||
| @@ -6,7 +6,7 @@ import ( | ||||
| 	"net" | ||||
|  | ||||
| 	"github.com/pions/sdp/v2" | ||||
| 	"github.com/pions/webrtc/pkg/ice" | ||||
| 	"github.com/pions/webrtc/internal/ice" | ||||
| ) | ||||
|  | ||||
| // ICECandidate represents a ice candidate | ||||
|   | ||||
| @@ -5,7 +5,7 @@ import ( | ||||
| 	"testing" | ||||
|  | ||||
| 	"github.com/pions/sdp/v2" | ||||
| 	"github.com/pions/webrtc/pkg/ice" | ||||
| 	"github.com/pions/webrtc/internal/ice" | ||||
| 	"github.com/stretchr/testify/assert" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -4,7 +4,7 @@ import ( | ||||
| 	"errors" | ||||
| 	"sync" | ||||
|  | ||||
| 	"github.com/pions/webrtc/pkg/ice" | ||||
| 	"github.com/pions/webrtc/internal/ice" | ||||
| ) | ||||
|  | ||||
| // The ICEGatherer gathers local host, server reflexive and relay | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| package webrtc | ||||
|  | ||||
| import ( | ||||
| 	"github.com/pions/webrtc/pkg/ice" | ||||
| 	"github.com/pions/webrtc/internal/ice" | ||||
| 	"github.com/pions/webrtc/pkg/rtcerr" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -3,7 +3,7 @@ package webrtc | ||||
| import ( | ||||
| 	"testing" | ||||
|  | ||||
| 	"github.com/pions/webrtc/pkg/ice" | ||||
| 	"github.com/pions/webrtc/internal/ice" | ||||
| 	"github.com/pions/webrtc/pkg/rtcerr" | ||||
| 	"github.com/stretchr/testify/assert" | ||||
| ) | ||||
|   | ||||
| @@ -5,8 +5,8 @@ import ( | ||||
| 	"errors" | ||||
| 	"sync" | ||||
|  | ||||
| 	"github.com/pions/webrtc/internal/ice" | ||||
| 	"github.com/pions/webrtc/internal/mux" | ||||
| 	"github.com/pions/webrtc/pkg/ice" | ||||
| ) | ||||
|  | ||||
| // ICETransport allows an application access to information about the ICE | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| package webrtc | ||||
|  | ||||
| import "github.com/pions/webrtc/pkg/ice" | ||||
| import "github.com/pions/webrtc/internal/ice" | ||||
|  | ||||
| // ICETransportState represents the current state of the ICE transport. | ||||
| type ICETransportState int | ||||
|   | ||||
| @@ -3,7 +3,7 @@ package webrtc | ||||
| import ( | ||||
| 	"testing" | ||||
|  | ||||
| 	"github.com/pions/webrtc/pkg/ice" | ||||
| 	"github.com/pions/webrtc/internal/ice" | ||||
| 	"github.com/stretchr/testify/assert" | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -14,7 +14,7 @@ import ( | ||||
|  | ||||
| 	"github.com/pions/rtcp" | ||||
| 	"github.com/pions/sdp/v2" | ||||
| 	"github.com/pions/webrtc/pkg/ice" | ||||
| 	"github.com/pions/webrtc/internal/ice" | ||||
| 	"github.com/pions/webrtc/pkg/logging" | ||||
| 	"github.com/pions/webrtc/pkg/rtcerr" | ||||
| 	"github.com/pkg/errors" | ||||
|   | ||||
| @@ -10,7 +10,7 @@ import ( | ||||
| 	"testing" | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/pions/webrtc/pkg/ice" | ||||
| 	"github.com/pions/webrtc/internal/ice" | ||||
|  | ||||
| 	"github.com/pions/webrtc/pkg/rtcerr" | ||||
| 	"github.com/stretchr/testify/assert" | ||||
|   | ||||
| @@ -3,7 +3,7 @@ package webrtc | ||||
| import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/pions/webrtc/pkg/ice" | ||||
| 	"github.com/pions/webrtc/internal/ice" | ||||
| ) | ||||
|  | ||||
| // SettingEngine allows influencing behavior in ways that are not | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael MacDonald
					Michael MacDonald