refactor - moved common code to livekit/protocol

This commit is contained in:
David Zhao
2021-03-13 22:01:51 -08:00
parent e20c831c14
commit 7d02c01fd8
79 changed files with 6771 additions and 1410 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
)
const (
+2 -2
View File
@@ -2,8 +2,8 @@ package rtc_test
import (
"github.com/livekit/livekit-server/pkg/rtc/types/typesfakes"
"github.com/livekit/livekit-server/pkg/utils"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
"github.com/livekit/protocol/utils"
)
func newMockParticipant(identity string) *typesfakes.FakeParticipant {
+2 -2
View File
@@ -15,8 +15,8 @@ import (
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/utils"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
"github.com/livekit/protocol/utils"
)
var (
+2 -2
View File
@@ -18,9 +18,9 @@ import (
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/routing"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/utils"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
"github.com/livekit/livekit-server/version"
"github.com/livekit/protocol/utils"
)
const (
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/livekit/livekit-server/pkg/routing/routingfakes"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/rtc/types/typesfakes"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
)
//func Test
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/utils"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
"github.com/livekit/protocol/utils"
)
const (
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"github.com/livekit/livekit-server/pkg/rtc"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/pkg/rtc/types/typesfakes"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
)
const (
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"github.com/pion/ion-sfu/pkg/sfu"
"github.com/pion/webrtc/v3"
"github.com/livekit/livekit-server/pkg/utils"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
"github.com/livekit/protocol/utils"
)
type SubscribedTrack struct {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/pion/webrtc/v3"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
)
const (
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"github.com/pion/webrtc/v3"
"github.com/livekit/livekit-server/pkg/routing"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
)
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/livekit/livekit-server/pkg/routing"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
"github.com/pion/rtcp"
webrtc "github.com/pion/webrtc/v3"
)
@@ -5,7 +5,7 @@ import (
"sync"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
)
type FakePublishedTrack struct {
@@ -5,7 +5,7 @@ import (
"sync"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
"github.com/pion/ion-sfu/pkg/sfu"
)
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/rtc/types"
"github.com/livekit/livekit-server/proto/livekit"
livekit "github.com/livekit/livekit-server/proto"
)
const (