Skip to content

Commit

Permalink
rename module to github.com/gojek/darkroom
Browse files Browse the repository at this point in the history
  • Loading branch information
ajatprabha committed Jul 1, 2019
1 parent 5c7455d commit 67402a7
Show file tree
Hide file tree
Showing 26 changed files with 53 additions and 53 deletions.
10 changes: 5 additions & 5 deletions cmd/darkroom/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"os"

"github.com/urfave/cli"
"***REMOVED***/darkroom/core/pkg/config"
"***REMOVED***/darkroom/core/pkg/logger"
"***REMOVED***/darkroom/core/pkg/router"
"***REMOVED***/darkroom/core/pkg/server"
"***REMOVED***/darkroom/core/pkg/service"
"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/logger"
"github.com/gojek/darkroom/pkg/router"
"github.com/gojek/darkroom/pkg/server"
"github.com/gojek/darkroom/pkg/service"
)

func main() {
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 ***REMOVED***/darkroom/core
module github.com/gojek/darkroom

go 1.12

Expand Down
8 changes: 4 additions & 4 deletions internal/handler/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package handler
import (
"fmt"
"net/http"
"***REMOVED***/darkroom/core/pkg/metrics"
"github.com/gojek/darkroom/pkg/metrics"

"***REMOVED***/darkroom/core/pkg/config"
"***REMOVED***/darkroom/core/pkg/logger"
"***REMOVED***/darkroom/core/pkg/service"
"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/logger"
"github.com/gojek/darkroom/pkg/service"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions internal/handler/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite"
"***REMOVED***/darkroom/core/pkg/service"
"***REMOVED***/darkroom/core/pkg/storage"
"github.com/gojek/darkroom/pkg/service"
"github.com/gojek/darkroom/pkg/storage"
)

type ImageHandlerTestSuite struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package config

import (
"github.com/afex/hystrix-go/hystrix"
"***REMOVED***/darkroom/core/pkg/storage"
"github.com/gojek/darkroom/pkg/storage"
"sync"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/config/types.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package config

import (
"***REMOVED***/darkroom/core/pkg/regex"
"***REMOVED***/darkroom/core/pkg/storage"
"github.com/gojek/darkroom/pkg/regex"
"github.com/gojek/darkroom/pkg/storage"
)

type app struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"go.uber.org/zap"
"go.uber.org/zap/zapcore"
"***REMOVED***/darkroom/core/pkg/config"
"github.com/gojek/darkroom/pkg/config"
)

var instance *zap.Logger
Expand Down
2 changes: 1 addition & 1 deletion pkg/metrics/statsd_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package metrics
import (
"fmt"
"github.com/cactus/go-statsd-client/statsd"
"***REMOVED***/darkroom/core/pkg/logger"
"github.com/gojek/darkroom/pkg/logger"
"strings"
"time"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/processor/native/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"image/draw"
"image/jpeg"
"image/png"
"***REMOVED***/darkroom/core/pkg/metrics"
"***REMOVED***/darkroom/core/pkg/processor"
"github.com/gojek/darkroom/pkg/metrics"
"github.com/gojek/darkroom/pkg/processor"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/processor/native/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/suite"
"image"
"io/ioutil"
"***REMOVED***/darkroom/core/pkg/processor"
"github.com/gojek/darkroom/pkg/processor"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/processor/native/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package native

import (
"image"
"***REMOVED***/darkroom/core/pkg/processor"
"github.com/gojek/darkroom/pkg/processor"
)

func isOpaque(im image.Image) bool {
Expand Down
2 changes: 1 addition & 1 deletion pkg/processor/native/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/stretchr/testify/assert"
"image"
"image/color"
"***REMOVED***/darkroom/core/pkg/processor"
"github.com/gojek/darkroom/pkg/processor"
"testing"
)

Expand Down
8 changes: 4 additions & 4 deletions pkg/router/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"net/http"
"net/http/pprof"

"***REMOVED***/darkroom/core/pkg/regex"
"github.com/gojek/darkroom/pkg/regex"

"github.com/gorilla/mux"
"***REMOVED***/darkroom/core/internal/handler"
"***REMOVED***/darkroom/core/pkg/config"
"***REMOVED***/darkroom/core/pkg/service"
"github.com/gojek/darkroom/internal/handler"
"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/service"
)

func NewRouter(deps *service.Dependencies) *mux.Router {
Expand Down
6 changes: 3 additions & 3 deletions pkg/router/routes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"***REMOVED***/darkroom/core/pkg/config"
"***REMOVED***/darkroom/core/pkg/service"
"***REMOVED***/darkroom/core/pkg/storage"
"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/service"
"github.com/gojek/darkroom/pkg/storage"
)

func TestNewRouter(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/server/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"os/signal"
"syscall"

"***REMOVED***/darkroom/core/pkg/config"
"***REMOVED***/darkroom/core/pkg/logger"
"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/logger"
)

type Server struct {
Expand Down
14 changes: 7 additions & 7 deletions pkg/service/dependencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (

"github.com/gojektech/heimdall"
"github.com/gojektech/heimdall/hystrix"
"***REMOVED***/darkroom/core/pkg/config"
"***REMOVED***/darkroom/core/pkg/processor/native"
"***REMOVED***/darkroom/core/pkg/regex"
base "***REMOVED***/darkroom/core/pkg/storage"
"***REMOVED***/darkroom/core/pkg/storage/aws/cloudfront"
"***REMOVED***/darkroom/core/pkg/storage/aws/s3"
"***REMOVED***/darkroom/core/pkg/storage/webfolder"
"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/processor/native"
"github.com/gojek/darkroom/pkg/regex"
base "github.com/gojek/darkroom/pkg/storage"
"github.com/gojek/darkroom/pkg/storage/aws/cloudfront"
"github.com/gojek/darkroom/pkg/storage/aws/s3"
"github.com/gojek/darkroom/pkg/storage/webfolder"
)

type Dependencies struct {
Expand Down
8 changes: 4 additions & 4 deletions pkg/service/dependencies_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"***REMOVED***/darkroom/core/pkg/config"
"***REMOVED***/darkroom/core/pkg/storage/aws/cloudfront"
"***REMOVED***/darkroom/core/pkg/storage/aws/s3"
"***REMOVED***/darkroom/core/pkg/storage/webfolder"
"github.com/gojek/darkroom/pkg/config"
"github.com/gojek/darkroom/pkg/storage/aws/cloudfront"
"github.com/gojek/darkroom/pkg/storage/aws/s3"
"github.com/gojek/darkroom/pkg/storage/webfolder"
)

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

import (
"***REMOVED***/darkroom/core/pkg/metrics"
"***REMOVED***/darkroom/core/pkg/processor"
"github.com/gojek/darkroom/pkg/metrics"
"github.com/gojek/darkroom/pkg/processor"
"strconv"
"time"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/service/manipulator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package service
import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"***REMOVED***/darkroom/core/pkg/processor"
"***REMOVED***/darkroom/core/pkg/processor/native"
"github.com/gojek/darkroom/pkg/processor"
"github.com/gojek/darkroom/pkg/processor/native"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Storage Backend for Darkroom

#### About
This module holds the logic to get an image blob from a source. It is used by the Darkroom [Application Server](https://***REMOVED***/darkroom/core).
This module holds the logic to get an image blob from a source. It is used by the Darkroom [Application Server](https://github.com/gojek/darkroom).
You may implement the `Storage` interface to gain custom functionality while still keeping other Darkroom functionality.
You may write custom backend for downloading images from a hosting provider or a web proxy.

Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/aws/cloudfront/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/pkg/errors"
"io/ioutil"
"net/http"
"***REMOVED***/darkroom/core/pkg/storage"
"github.com/gojek/darkroom/pkg/storage"
)

type Storage struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/aws/s3/options.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package s3

import "***REMOVED***/darkroom/core/pkg/storage"
import "github.com/gojek/darkroom/pkg/storage"

// Option represents the S3 storage options
type Option func(s *Storage)
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/aws/s3/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package s3
import (
"github.com/afex/hystrix-go/hystrix"
"github.com/stretchr/testify/assert"
"***REMOVED***/darkroom/core/pkg/storage"
"github.com/gojek/darkroom/pkg/storage"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/aws/s3/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/service/s3/s3manager"
"github.com/aws/aws-sdk-go/service/s3/s3manager/s3manageriface"
"***REMOVED***/darkroom/core/pkg/storage"
"github.com/gojek/darkroom/pkg/storage"
)

type Storage struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/aws/s3/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/suite"
"io"
"net/http"
"***REMOVED***/darkroom/core/pkg/storage"
"github.com/gojek/darkroom/pkg/storage"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/webfolder/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/gojektech/heimdall"
"io/ioutil"
"net/http"
"***REMOVED***/darkroom/core/pkg/storage"
"github.com/gojek/darkroom/pkg/storage"
)

type Storage struct {
Expand Down

0 comments on commit 67402a7

Please sign in to comment.