Skip to content

Commit

Permalink
Rename import path to v2
Browse files Browse the repository at this point in the history
Related to #239.
  • Loading branch information
fsouza committed Aug 22, 2019
1 parent ecae75a commit 30f9985
Show file tree
Hide file tree
Showing 52 changed files with 145 additions and 145 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/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/v2/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/v2/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 (
"errors"
"time"

"github.com/NYTimes/video-transcoding-api/db"
"github.com/video-dev/video-transcoding-api/v2/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/v2/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/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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/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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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 (
"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 (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion 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/v2

require (
github.com/NYTimes/gizmo v1.2.14
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/v2/config"
_ "github.com/video-dev/video-transcoding-api/v2/provider/bitmovin"
_ "github.com/video-dev/video-transcoding-api/v2/provider/elastictranscoder"
_ "github.com/video-dev/video-transcoding-api/v2/provider/elementalconductor"
_ "github.com/video-dev/video-transcoding-api/v2/provider/encodingcom"
_ "github.com/video-dev/video-transcoding-api/v2/provider/hybrik"
_ "github.com/video-dev/video-transcoding-api/v2/provider/mediaconvert"
_ "github.com/video-dev/video-transcoding-api/v2/provider/zencoder"
"github.com/video-dev/video-transcoding-api/v2/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 (
"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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/db"
"github.com/video-dev/video-transcoding-api/v2/provider"
)

func TestFactoryIsRegistered(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions provider/elastictranscoder/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
// uses AWS Elastic Transcoder for transcoding media files.
//
// It doesn't expose any public type. In order to use the provider, one must
// 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/v2/provider"
// "github.com/video-dev/video-transcoding-api/v2/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 (
"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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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/v2/provider"
// "github.com/video-dev/video-transcoding-api/v2/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 (
"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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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/v2/provider"
// "github.com/video-dev/video-transcoding-api/v2/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 (
"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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/db"
"github.com/video-dev/video-transcoding-api/v2/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/v2/config"
"github.com/video-dev/video-transcoding-api/v2/db"
"github.com/video-dev/video-transcoding-api/v2/provider"
)

func TestFactoryIsRegistered(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions provider/fake_provider_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package provider

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

type fakeProvider struct {
Expand Down
Loading

0 comments on commit 30f9985

Please sign in to comment.