Skip to content

Commit

Permalink
change import paths from NYTimes to video-dev (#292)
Browse files Browse the repository at this point in the history
* change import paths from NYTimes to video-dev

* fix import order
  • Loading branch information
esonderegger authored Dec 3, 2019
1 parent 5408e58 commit a40118c
Show file tree
Hide file tree
Showing 52 changed files with 144 additions and 146 deletions.
4 changes: 2 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package config // import "github.com/NYTimes/video-transcoding-api/config"
package config // import "github.com/video-dev/video-transcoding-api/config"

import (
"github.com/NYTimes/gizmo/server"
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
logging "github.com/fsouza/gizmo-stackdriver-logging"
"github.com/kelseyhightower/envconfig"
"github.com/video-dev/video-transcoding-api/db/redis/storage"
)

// Config is a struct to contain all the needed configuration for the
Expand Down
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"testing"

"github.com/NYTimes/gizmo/server"
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
logging "github.com/fsouza/gizmo-stackdriver-logging"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/video-dev/video-transcoding-api/db/redis/storage"
)

func TestLoadConfigFromEnv(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions db/dbtest/fake_db.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package dbtest // import "github.com/NYTimes/video-transcoding-api/db/dbtest"
package dbtest // import "github.com/video-dev/video-transcoding-api/db/dbtest"

import (
"errors"
"time"

"github.com/NYTimes/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/db"
)

type fakeRepository struct {
Expand Down
2 changes: 1 addition & 1 deletion db/dbtest/fake_db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/NYTimes/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/db"
)

const dbErrorMsg = "database error"
Expand Down
4 changes: 2 additions & 2 deletions db/redis/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"strconv"
"time"

"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
"github.com/go-redis/redis"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/db/redis/storage"
)

const jobsSetKey = "jobs"
Expand Down
6 changes: 3 additions & 3 deletions db/redis/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"testing"
"time"

"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
"github.com/go-redis/redis"
"github.com/kr/pretty"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/db/redis/storage"
)

func TestCreateJob(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions db/redis/localpreset.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package redis
import (
"errors"

"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
"github.com/go-redis/redis"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/db/redis/storage"
)

const localPresetsSetKey = "localpresets"
Expand Down
6 changes: 3 additions & 3 deletions db/redis/localpreset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"reflect"
"testing"

"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/db/redis/storage"
)

func TestCreateLocalPreset(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions db/redis/presetmap.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package redis

import (
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
"github.com/go-redis/redis"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/db/redis/storage"
)

const presetmapsSetKey = "presetmaps"
Expand Down
6 changes: 3 additions & 3 deletions db/redis/presetmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"reflect"
"testing"

"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/db/redis/storage"
)

func TestCreatePresetMap(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions db/redis/redis.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package redis // import "github.com/NYTimes/video-transcoding-api/db/redis"
package redis // import "github.com/video-dev/video-transcoding-api/db/redis"

import (
"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/db/redis/storage"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/db/redis/storage"
)

// NewRepository creates a new Repository that uses Redis for persistence.
Expand Down
2 changes: 1 addition & 1 deletion db/redis/storage/redis.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package storage provides a type for storing Go objects in Redis.
package storage // import "github.com/NYTimes/video-transcoding-api/db/redis/storage"
package storage // import "github.com/video-dev/video-transcoding-api/db/redis/storage"

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion db/repo.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package db // import "github.com/NYTimes/video-transcoding-api/db"
package db // import "github.com/video-dev/video-transcoding-api/db"

import (
"errors"
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/NYTimes/video-transcoding-api
module github.com/video-dev/video-transcoding-api

require (
github.com/NYTimes/gizmo v1.2.14
Expand All @@ -15,8 +15,6 @@ require (
github.com/hybrik/hybrik-sdk-go v0.0.0-20170516091026-c2eee0e66af9
github.com/kelseyhightower/envconfig v1.4.0
github.com/kr/pretty v0.1.0
github.com/onsi/ginkgo v1.8.0 // indirect
github.com/onsi/gomega v1.5.0 // indirect
github.com/pkg/errors v0.8.1
github.com/sirupsen/logrus v1.4.2
github.com/video-dev/go-elementalconductor v1.0.0
Expand Down
18 changes: 9 additions & 9 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import (
"log"

"github.com/NYTimes/gizmo/server"
"github.com/NYTimes/video-transcoding-api/config"
_ "github.com/NYTimes/video-transcoding-api/provider/bitmovin"
_ "github.com/NYTimes/video-transcoding-api/provider/elastictranscoder"
_ "github.com/NYTimes/video-transcoding-api/provider/elementalconductor"
_ "github.com/NYTimes/video-transcoding-api/provider/encodingcom"
_ "github.com/NYTimes/video-transcoding-api/provider/hybrik"
_ "github.com/NYTimes/video-transcoding-api/provider/mediaconvert"
_ "github.com/NYTimes/video-transcoding-api/provider/zencoder"
"github.com/NYTimes/video-transcoding-api/service"
"github.com/google/gops/agent"
"github.com/video-dev/video-transcoding-api/config"
_ "github.com/video-dev/video-transcoding-api/provider/bitmovin"
_ "github.com/video-dev/video-transcoding-api/provider/elastictranscoder"
_ "github.com/video-dev/video-transcoding-api/provider/elementalconductor"
_ "github.com/video-dev/video-transcoding-api/provider/encodingcom"
_ "github.com/video-dev/video-transcoding-api/provider/hybrik"
_ "github.com/video-dev/video-transcoding-api/provider/mediaconvert"
_ "github.com/video-dev/video-transcoding-api/provider/zencoder"
"github.com/video-dev/video-transcoding-api/service"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions provider/bitmovin/bitmovin.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package bitmovin // import "github.com/NYTimes/video-transcoding-api/provider/bitmovin"
package bitmovin // import "github.com/video-dev/video-transcoding-api/provider/bitmovin"

import (
"errors"
Expand All @@ -11,13 +11,13 @@ import (
"strings"
"time"

"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/provider"
"github.com/bitmovin/bitmovin-go/bitmovin"
"github.com/bitmovin/bitmovin-go/bitmovintypes"
"github.com/bitmovin/bitmovin-go/models"
"github.com/bitmovin/bitmovin-go/services"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/provider"
)

// Name is the name used for registering the bitmovin provider in the
Expand Down
6 changes: 3 additions & 3 deletions provider/bitmovin/bitmovin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"testing"
"time"

"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/provider"
"github.com/bitmovin/bitmovin-go/bitmovin"
"github.com/bitmovin/bitmovin-go/bitmovintypes"
"github.com/bitmovin/bitmovin-go/models"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/provider"
)

func TestFactoryIsRegistered(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions provider/elastictranscoder/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
// import this package and then grab the factory from the provider package:
//
// import (
// "github.com/NYTimes/video-transcoding-api/provider"
// "github.com/NYTimes/video-transcoding-api/provider/elastictranscoder"
// "github.com/video-dev/video-transcoding-api/provider"
// "github.com/video-dev/video-transcoding-api/provider/elastictranscoder"
// )
//
// func UseProvider() {
// factory, err := provider.GetProviderFactory(elastictranscoder.Name)
// // handle err and use factory to get an instance of the provider.
// }
package elastictranscoder // import "github.com/NYTimes/video-transcoding-api/provider/elastictranscoder"
package elastictranscoder // import "github.com/video-dev/video-transcoding-api/provider/elastictranscoder"

import (
"errors"
Expand All @@ -24,14 +24,14 @@ import (
"strings"
"time"

"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/provider"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/elastictranscoder"
"github.com/aws/aws-sdk-go/service/elastictranscoder/elastictranscoderiface"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/provider"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions provider/elastictranscoder/aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"testing"
"time"

"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/provider"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/service/elastictranscoder"
"github.com/kr/pretty"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/provider"
)

func TestFactoryIsRegistered(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions provider/elementalconductor/elementalconductor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
// import this package and then grab the factory from the provider package:
//
// import (
// "github.com/NYTimes/video-transcoding-api/provider"
// "github.com/NYTimes/video-transcoding-api/provider/elementalconductor"
// "github.com/video-dev/video-transcoding-api/provider"
// "github.com/video-dev/video-transcoding-api/provider/elementalconductor"
// )
//
// func UseProvider() {
// factory, err := provider.GetProviderFactory(elementalconductor.Name)
// // handle err and use factory to get an instance of the provider.
// }
package elementalconductor // import "github.com/NYTimes/video-transcoding-api/provider/elementalconductor"
package elementalconductor // import "github.com/video-dev/video-transcoding-api/provider/elementalconductor"

import (
"encoding/xml"
Expand All @@ -23,10 +23,10 @@ import (
"strings"
"time"

"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/provider"
"github.com/video-dev/go-elementalconductor"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/provider"
)

// Name is the name used for registering the Elemental Conductor provider in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package elementalconductor
import (
"strings"

"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/provider"
"github.com/video-dev/go-elementalconductor"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/provider"
)

type fakeElementalConductorClient struct {
Expand Down
6 changes: 3 additions & 3 deletions provider/elementalconductor/elementalconductor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"testing"
"time"

"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/provider"
"github.com/video-dev/go-elementalconductor"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/provider"
)

func TestFactoryIsRegistered(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions provider/encodingcom/encodingcom.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
// import this package and then grab the factory from the provider package:
//
// import (
// "github.com/NYTimes/video-transcoding-api/provider"
// "github.com/NYTimes/video-transcoding-api/provider/encodingcom"
// "github.com/video-dev/video-transcoding-api/provider"
// "github.com/video-dev/video-transcoding-api/provider/encodingcom"
// )
//
// func UseProvider() {
// factory, err := provider.GetProviderFactory(encodingcom.Name)
// // handle err and use factory to get an instance of the provider.
// }
package encodingcom // import "github.com/NYTimes/video-transcoding-api/provider/encodingcom"
package encodingcom // import "github.com/video-dev/video-transcoding-api/provider/encodingcom"

import (
"errors"
Expand All @@ -24,10 +24,10 @@ import (
"strconv"
"strings"

"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/provider"
"github.com/video-dev/go-encodingcom"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/provider"
)

// Name is the name used for registering the Encoding.com provider in the
Expand Down
6 changes: 3 additions & 3 deletions provider/encodingcom/encodingcom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"testing"
"time"

"github.com/NYTimes/video-transcoding-api/config"
"github.com/NYTimes/video-transcoding-api/db"
"github.com/NYTimes/video-transcoding-api/provider"
"github.com/kr/pretty"
"github.com/video-dev/go-encodingcom"
"github.com/video-dev/video-transcoding-api/config"
"github.com/video-dev/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/provider"
)

func TestFactoryIsRegistered(t *testing.T) {
Expand Down
Loading

0 comments on commit a40118c

Please sign in to comment.