Skip to content

Commit a40118c

Browse files
authored
change import paths from NYTimes to video-dev (#292)
* change import paths from NYTimes to video-dev * fix import order
1 parent 5408e58 commit a40118c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+144
-146
lines changed

config/config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package config // import "github.com/NYTimes/video-transcoding-api/config"
1+
package config // import "github.com/video-dev/video-transcoding-api/config"
22

33
import (
44
"github.com/NYTimes/gizmo/server"
5-
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
65
logging "github.com/fsouza/gizmo-stackdriver-logging"
76
"github.com/kelseyhightower/envconfig"
7+
"github.com/video-dev/video-transcoding-api/db/redis/storage"
88
)
99

1010
// Config is a struct to contain all the needed configuration for the

config/config_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"testing"
66

77
"github.com/NYTimes/gizmo/server"
8-
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
98
logging "github.com/fsouza/gizmo-stackdriver-logging"
109
"github.com/google/go-cmp/cmp"
1110
"github.com/google/go-cmp/cmp/cmpopts"
11+
"github.com/video-dev/video-transcoding-api/db/redis/storage"
1212
)
1313

1414
func TestLoadConfigFromEnv(t *testing.T) {

db/dbtest/fake_db.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package dbtest // import "github.com/NYTimes/video-transcoding-api/db/dbtest"
1+
package dbtest // import "github.com/video-dev/video-transcoding-api/db/dbtest"
22

33
import (
44
"errors"
55
"time"
66

7-
"github.com/NYTimes/video-transcoding-api/db"
7+
"github.com/video-dev/video-transcoding-api/db"
88
)
99

1010
type fakeRepository struct {

db/dbtest/fake_db_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/NYTimes/video-transcoding-api/db"
8+
"github.com/video-dev/video-transcoding-api/db"
99
)
1010

1111
const dbErrorMsg = "database error"

db/redis/job.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"strconv"
66
"time"
77

8-
"github.com/NYTimes/video-transcoding-api/db"
9-
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
108
"github.com/go-redis/redis"
9+
"github.com/video-dev/video-transcoding-api/db"
10+
"github.com/video-dev/video-transcoding-api/db/redis/storage"
1111
)
1212

1313
const jobsSetKey = "jobs"

db/redis/job_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/NYTimes/video-transcoding-api/config"
12-
"github.com/NYTimes/video-transcoding-api/db"
13-
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
1411
"github.com/go-redis/redis"
1512
"github.com/kr/pretty"
13+
"github.com/video-dev/video-transcoding-api/config"
14+
"github.com/video-dev/video-transcoding-api/db"
15+
"github.com/video-dev/video-transcoding-api/db/redis/storage"
1616
)
1717

1818
func TestCreateJob(t *testing.T) {

db/redis/localpreset.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package redis
33
import (
44
"errors"
55

6-
"github.com/NYTimes/video-transcoding-api/db"
7-
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
86
"github.com/go-redis/redis"
7+
"github.com/video-dev/video-transcoding-api/db"
8+
"github.com/video-dev/video-transcoding-api/db/redis/storage"
99
)
1010

1111
const localPresetsSetKey = "localpresets"

db/redis/localpreset_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"reflect"
55
"testing"
66

7-
"github.com/NYTimes/video-transcoding-api/config"
8-
"github.com/NYTimes/video-transcoding-api/db"
9-
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
7+
"github.com/video-dev/video-transcoding-api/config"
8+
"github.com/video-dev/video-transcoding-api/db"
9+
"github.com/video-dev/video-transcoding-api/db/redis/storage"
1010
)
1111

1212
func TestCreateLocalPreset(t *testing.T) {

db/redis/presetmap.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package redis
22

33
import (
4-
"github.com/NYTimes/video-transcoding-api/db"
5-
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
64
"github.com/go-redis/redis"
5+
"github.com/video-dev/video-transcoding-api/db"
6+
"github.com/video-dev/video-transcoding-api/db/redis/storage"
77
)
88

99
const presetmapsSetKey = "presetmaps"

db/redis/presetmap_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"reflect"
55
"testing"
66

7-
"github.com/NYTimes/video-transcoding-api/config"
8-
"github.com/NYTimes/video-transcoding-api/db"
9-
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
7+
"github.com/video-dev/video-transcoding-api/config"
8+
"github.com/video-dev/video-transcoding-api/db"
9+
"github.com/video-dev/video-transcoding-api/db/redis/storage"
1010
)
1111

1212
func TestCreatePresetMap(t *testing.T) {

db/redis/redis.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package redis // import "github.com/NYTimes/video-transcoding-api/db/redis"
1+
package redis // import "github.com/video-dev/video-transcoding-api/db/redis"
22

33
import (
4-
"github.com/NYTimes/video-transcoding-api/config"
5-
"github.com/NYTimes/video-transcoding-api/db"
6-
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
4+
"github.com/video-dev/video-transcoding-api/config"
5+
"github.com/video-dev/video-transcoding-api/db"
6+
"github.com/video-dev/video-transcoding-api/db/redis/storage"
77
)
88

99
// NewRepository creates a new Repository that uses Redis for persistence.

db/redis/storage/redis.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Package storage provides a type for storing Go objects in Redis.
2-
package storage // import "github.com/NYTimes/video-transcoding-api/db/redis/storage"
2+
package storage // import "github.com/video-dev/video-transcoding-api/db/redis/storage"
33

44
import (
55
"errors"

db/repo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package db // import "github.com/NYTimes/video-transcoding-api/db"
1+
package db // import "github.com/video-dev/video-transcoding-api/db"
22

33
import (
44
"errors"

go.mod

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/NYTimes/video-transcoding-api
1+
module github.com/video-dev/video-transcoding-api
22

33
require (
44
github.com/NYTimes/gizmo v1.2.14
@@ -15,8 +15,6 @@ require (
1515
github.com/hybrik/hybrik-sdk-go v0.0.0-20170516091026-c2eee0e66af9
1616
github.com/kelseyhightower/envconfig v1.4.0
1717
github.com/kr/pretty v0.1.0
18-
github.com/onsi/ginkgo v1.8.0 // indirect
19-
github.com/onsi/gomega v1.5.0 // indirect
2018
github.com/pkg/errors v0.8.1
2119
github.com/sirupsen/logrus v1.4.2
2220
github.com/video-dev/go-elementalconductor v1.0.0

main.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ import (
55
"log"
66

77
"github.com/NYTimes/gizmo/server"
8-
"github.com/NYTimes/video-transcoding-api/config"
9-
_ "github.com/NYTimes/video-transcoding-api/provider/bitmovin"
10-
_ "github.com/NYTimes/video-transcoding-api/provider/elastictranscoder"
11-
_ "github.com/NYTimes/video-transcoding-api/provider/elementalconductor"
12-
_ "github.com/NYTimes/video-transcoding-api/provider/encodingcom"
13-
_ "github.com/NYTimes/video-transcoding-api/provider/hybrik"
14-
_ "github.com/NYTimes/video-transcoding-api/provider/mediaconvert"
15-
_ "github.com/NYTimes/video-transcoding-api/provider/zencoder"
16-
"github.com/NYTimes/video-transcoding-api/service"
178
"github.com/google/gops/agent"
9+
"github.com/video-dev/video-transcoding-api/config"
10+
_ "github.com/video-dev/video-transcoding-api/provider/bitmovin"
11+
_ "github.com/video-dev/video-transcoding-api/provider/elastictranscoder"
12+
_ "github.com/video-dev/video-transcoding-api/provider/elementalconductor"
13+
_ "github.com/video-dev/video-transcoding-api/provider/encodingcom"
14+
_ "github.com/video-dev/video-transcoding-api/provider/hybrik"
15+
_ "github.com/video-dev/video-transcoding-api/provider/mediaconvert"
16+
_ "github.com/video-dev/video-transcoding-api/provider/zencoder"
17+
"github.com/video-dev/video-transcoding-api/service"
1818
)
1919

2020
func main() {

provider/bitmovin/bitmovin.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package bitmovin // import "github.com/NYTimes/video-transcoding-api/provider/bitmovin"
1+
package bitmovin // import "github.com/video-dev/video-transcoding-api/provider/bitmovin"
22

33
import (
44
"errors"
@@ -11,13 +11,13 @@ import (
1111
"strings"
1212
"time"
1313

14-
"github.com/NYTimes/video-transcoding-api/config"
15-
"github.com/NYTimes/video-transcoding-api/db"
16-
"github.com/NYTimes/video-transcoding-api/provider"
1714
"github.com/bitmovin/bitmovin-go/bitmovin"
1815
"github.com/bitmovin/bitmovin-go/bitmovintypes"
1916
"github.com/bitmovin/bitmovin-go/models"
2017
"github.com/bitmovin/bitmovin-go/services"
18+
"github.com/video-dev/video-transcoding-api/config"
19+
"github.com/video-dev/video-transcoding-api/db"
20+
"github.com/video-dev/video-transcoding-api/provider"
2121
)
2222

2323
// Name is the name used for registering the bitmovin provider in the

provider/bitmovin/bitmovin_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/NYTimes/video-transcoding-api/config"
14-
"github.com/NYTimes/video-transcoding-api/db"
15-
"github.com/NYTimes/video-transcoding-api/provider"
1613
"github.com/bitmovin/bitmovin-go/bitmovin"
1714
"github.com/bitmovin/bitmovin-go/bitmovintypes"
1815
"github.com/bitmovin/bitmovin-go/models"
16+
"github.com/video-dev/video-transcoding-api/config"
17+
"github.com/video-dev/video-transcoding-api/db"
18+
"github.com/video-dev/video-transcoding-api/provider"
1919
)
2020

2121
func TestFactoryIsRegistered(t *testing.T) {

provider/elastictranscoder/aws.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
// import this package and then grab the factory from the provider package:
66
//
77
// import (
8-
// "github.com/NYTimes/video-transcoding-api/provider"
9-
// "github.com/NYTimes/video-transcoding-api/provider/elastictranscoder"
8+
// "github.com/video-dev/video-transcoding-api/provider"
9+
// "github.com/video-dev/video-transcoding-api/provider/elastictranscoder"
1010
// )
1111
//
1212
// func UseProvider() {
1313
// factory, err := provider.GetProviderFactory(elastictranscoder.Name)
1414
// // handle err and use factory to get an instance of the provider.
1515
// }
16-
package elastictranscoder // import "github.com/NYTimes/video-transcoding-api/provider/elastictranscoder"
16+
package elastictranscoder // import "github.com/video-dev/video-transcoding-api/provider/elastictranscoder"
1717

1818
import (
1919
"errors"
@@ -24,14 +24,14 @@ import (
2424
"strings"
2525
"time"
2626

27-
"github.com/NYTimes/video-transcoding-api/config"
28-
"github.com/NYTimes/video-transcoding-api/db"
29-
"github.com/NYTimes/video-transcoding-api/provider"
3027
"github.com/aws/aws-sdk-go/aws"
3128
"github.com/aws/aws-sdk-go/aws/credentials"
3229
"github.com/aws/aws-sdk-go/aws/session"
3330
"github.com/aws/aws-sdk-go/service/elastictranscoder"
3431
"github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface"
32+
"github.com/video-dev/video-transcoding-api/config"
33+
"github.com/video-dev/video-transcoding-api/db"
34+
"github.com/video-dev/video-transcoding-api/provider"
3535
)
3636

3737
const (

provider/elastictranscoder/aws_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/NYTimes/video-transcoding-api/config"
12-
"github.com/NYTimes/video-transcoding-api/db"
13-
"github.com/NYTimes/video-transcoding-api/provider"
1411
"github.com/aws/aws-sdk-go/aws"
1512
"github.com/aws/aws-sdk-go/aws/credentials"
1613
"github.com/aws/aws-sdk-go/service/elastictranscoder"
1714
"github.com/kr/pretty"
15+
"github.com/video-dev/video-transcoding-api/config"
16+
"github.com/video-dev/video-transcoding-api/db"
17+
"github.com/video-dev/video-transcoding-api/provider"
1818
)
1919

2020
func TestFactoryIsRegistered(t *testing.T) {

provider/elementalconductor/elementalconductor.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
// import this package and then grab the factory from the provider package:
66
//
77
// import (
8-
// "github.com/NYTimes/video-transcoding-api/provider"
9-
// "github.com/NYTimes/video-transcoding-api/provider/elementalconductor"
8+
// "github.com/video-dev/video-transcoding-api/provider"
9+
// "github.com/video-dev/video-transcoding-api/provider/elementalconductor"
1010
// )
1111
//
1212
// func UseProvider() {
1313
// factory, err := provider.GetProviderFactory(elementalconductor.Name)
1414
// // handle err and use factory to get an instance of the provider.
1515
// }
16-
package elementalconductor // import "github.com/NYTimes/video-transcoding-api/provider/elementalconductor"
16+
package elementalconductor // import "github.com/video-dev/video-transcoding-api/provider/elementalconductor"
1717

1818
import (
1919
"encoding/xml"
@@ -23,10 +23,10 @@ import (
2323
"strings"
2424
"time"
2525

26-
"github.com/NYTimes/video-transcoding-api/config"
27-
"github.com/NYTimes/video-transcoding-api/db"
28-
"github.com/NYTimes/video-transcoding-api/provider"
2926
"github.com/video-dev/go-elementalconductor"
27+
"github.com/video-dev/video-transcoding-api/config"
28+
"github.com/video-dev/video-transcoding-api/db"
29+
"github.com/video-dev/video-transcoding-api/provider"
3030
)
3131

3232
// Name is the name used for registering the Elemental Conductor provider in the

provider/elementalconductor/elementalconductor_fake_transcode_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package elementalconductor
33
import (
44
"strings"
55

6-
"github.com/NYTimes/video-transcoding-api/config"
7-
"github.com/NYTimes/video-transcoding-api/provider"
86
"github.com/video-dev/go-elementalconductor"
7+
"github.com/video-dev/video-transcoding-api/config"
8+
"github.com/video-dev/video-transcoding-api/provider"
99
)
1010

1111
type fakeElementalConductorClient struct {

provider/elementalconductor/elementalconductor_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/NYTimes/video-transcoding-api/config"
10-
"github.com/NYTimes/video-transcoding-api/db"
11-
"github.com/NYTimes/video-transcoding-api/provider"
129
"github.com/video-dev/go-elementalconductor"
10+
"github.com/video-dev/video-transcoding-api/config"
11+
"github.com/video-dev/video-transcoding-api/db"
12+
"github.com/video-dev/video-transcoding-api/provider"
1313
)
1414

1515
func TestFactoryIsRegistered(t *testing.T) {

provider/encodingcom/encodingcom.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
// import this package and then grab the factory from the provider package:
66
//
77
// import (
8-
// "github.com/NYTimes/video-transcoding-api/provider"
9-
// "github.com/NYTimes/video-transcoding-api/provider/encodingcom"
8+
// "github.com/video-dev/video-transcoding-api/provider"
9+
// "github.com/video-dev/video-transcoding-api/provider/encodingcom"
1010
// )
1111
//
1212
// func UseProvider() {
1313
// factory, err := provider.GetProviderFactory(encodingcom.Name)
1414
// // handle err and use factory to get an instance of the provider.
1515
// }
16-
package encodingcom // import "github.com/NYTimes/video-transcoding-api/provider/encodingcom"
16+
package encodingcom // import "github.com/video-dev/video-transcoding-api/provider/encodingcom"
1717

1818
import (
1919
"errors"
@@ -24,10 +24,10 @@ import (
2424
"strconv"
2525
"strings"
2626

27-
"github.com/NYTimes/video-transcoding-api/config"
28-
"github.com/NYTimes/video-transcoding-api/db"
29-
"github.com/NYTimes/video-transcoding-api/provider"
3027
"github.com/video-dev/go-encodingcom"
28+
"github.com/video-dev/video-transcoding-api/config"
29+
"github.com/video-dev/video-transcoding-api/db"
30+
"github.com/video-dev/video-transcoding-api/provider"
3131
)
3232

3333
// Name is the name used for registering the Encoding.com provider in the

provider/encodingcom/encodingcom_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/NYTimes/video-transcoding-api/config"
10-
"github.com/NYTimes/video-transcoding-api/db"
11-
"github.com/NYTimes/video-transcoding-api/provider"
129
"github.com/kr/pretty"
1310
"github.com/video-dev/go-encodingcom"
11+
"github.com/video-dev/video-transcoding-api/config"
12+
"github.com/video-dev/video-transcoding-api/db"
13+
"github.com/video-dev/video-transcoding-api/provider"
1414
)
1515

1616
func TestFactoryIsRegistered(t *testing.T) {

0 commit comments

Comments
 (0)