Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

moving folders

goenning71aa421b5894
diff --git a/feedback/handler.go b/app/feedback/handler.go
similarity index 96%
rename from feedback/handler.go
rename to app/feedback/handler.go
index 46d03c30a..b545d6576 100644
--- a/feedback/handler.go
+++ b/app/feedback/handler.go
@@ -3,7 +3,7 @@ package feedback
import (
"net/http"
- "github.com/WeCanHearYou/wechy/identity"
+ "github.com/WeCanHearYou/wechy/app/identity"
"github.com/labstack/echo"
)
diff --git a/feedback/handler_test.go b/app/feedback/handler_test.go
similarity index 82%
rename from feedback/handler_test.go
rename to app/feedback/handler_test.go
index 427376a57..64b07274d 100644
--- a/feedback/handler_test.go
+++ b/app/feedback/handler_test.go
@@ -3,9 +3,9 @@ package feedback_test
import (
"testing"
- "github.com/WeCanHearYou/wechy/feedback"
- "github.com/WeCanHearYou/wechy/identity"
- "github.com/WeCanHearYou/wechy/mock"
+ "github.com/WeCanHearYou/wechy/app/feedback"
+ "github.com/WeCanHearYou/wechy/app/identity"
+ "github.com/WeCanHearYou/wechy/app/mock"
. "github.com/onsi/gomega"
)
diff --git a/feedback/model.go b/app/feedback/model.go
similarity index 100%
rename from feedback/model.go
rename to app/feedback/model.go
diff --git a/feedback/service.go b/app/feedback/service.go
similarity index 100%
rename from feedback/service.go
rename to app/feedback/service.go
diff --git a/app/handler_test.go b/app/handler_test.go
index 879f84175..e3512abec 100644
--- a/app/handler_test.go
+++ b/app/handler_test.go
@@ -4,7 +4,7 @@ import (
"testing"
"github.com/WeCanHearYou/wechy/app"
- "github.com/WeCanHearYou/wechy/mock"
+ "github.com/WeCanHearYou/wechy/app/mock"
. "github.com/onsi/gomega"
)
diff --git a/identity/const.go b/app/identity/const.go
similarity index 100%
rename from identity/const.go
rename to app/identity/const.go
diff --git a/identity/handler.go b/app/identity/handler.go
similarity index 100%
rename from identity/handler.go
rename to app/identity/handler.go
diff --git a/identity/handler_test.go b/app/identity/handler_test.go
similarity index 91%
rename from identity/handler_test.go
rename to app/identity/handler_test.go
index 1587e3cdb..e7b08896f 100644
--- a/identity/handler_test.go
+++ b/app/identity/handler_test.go
@@ -5,8 +5,8 @@ import (
"net/http"
- "github.com/WeCanHearYou/wechy/identity"
- "github.com/WeCanHearYou/wechy/mock"
+ "github.com/WeCanHearYou/wechy/app/identity"
+ "github.com/WeCanHearYou/wechy/app/mock"
. "github.com/onsi/gomega"
)
diff --git a/identity/jwt.go b/app/identity/jwt.go
similarity index 94%
rename from identity/jwt.go
rename to app/identity/jwt.go
index 547b4b513..1d5af3d8d 100644
--- a/identity/jwt.go
+++ b/app/identity/jwt.go
@@ -1,7 +1,7 @@
package identity
import (
- "github.com/WeCanHearYou/wechy/toolbox/env"
+ "github.com/WeCanHearYou/wechy/app/toolbox/env"
jwt "github.com/dgrijalva/jwt-go"
)
diff --git a/identity/jwt_test.go b/app/identity/jwt_test.go
similarity index 94%
rename from identity/jwt_test.go
rename to app/identity/jwt_test.go
index 7a1ad0c1c..f595fbb78 100644
--- a/identity/jwt_test.go
+++ b/app/identity/jwt_test.go
@@ -3,7 +3,7 @@ package identity_test
import (
"testing"
- "github.com/WeCanHearYou/wechy/identity"
+ "github.com/WeCanHearYou/wechy/app/identity"
. "github.com/onsi/gomega"
)
diff --git a/identity/middleware.go b/app/identity/middleware.go
similarity index 100%
rename from identity/middleware.go
rename to app/identity/middleware.go
diff --git a/identity/middleware_test.go b/app/identity/middleware_test.go
similarity index 99%
rename from identity/middleware_test.go
rename to app/identity/middleware_test.go
index 4a1b26b97..d17b08735 100644
--- a/identity/middleware_test.go
+++ b/app/identity/middleware_test.go
@@ -5,7 +5,7 @@ import (
"net/http/httptest"
"testing"
- "github.com/WeCanHearYou/wechy/identity"
+ "github.com/WeCanHearYou/wechy/app/identity"
"github.com/labstack/echo"
. "github.com/onsi/gomega"
)
diff --git a/identity/model.go b/app/identity/model.go
similarity index 100%
rename from identity/model.go
rename to app/identity/model.go
diff --git a/identity/oauth.go b/app/identity/oauth.go
similarity index 100%
rename from identity/oauth.go
rename to app/identity/oauth.go
diff --git a/identity/oauth_test.go b/app/identity/oauth_test.go
similarity index 95%
rename from identity/oauth_test.go
rename to app/identity/oauth_test.go
index f45ea3a1d..be8c1284b 100644
--- a/identity/oauth_test.go
+++ b/app/identity/oauth_test.go
@@ -3,7 +3,7 @@ package identity_test
import (
"testing"
- "github.com/WeCanHearYou/wechy/identity"
+ "github.com/WeCanHearYou/wechy/app/identity"
. "github.com/onsi/gomega"
)
diff --git a/identity/service.go b/app/identity/service.go
similarity index 100%
rename from identity/service.go
rename to app/identity/service.go
diff --git a/mock/server.go b/app/mock/server.go
similarity index 100%
rename from mock/server.go
rename to app/mock/server.go
diff --git a/postgres/app.go b/app/postgres/app.go
similarity index 100%
rename from postgres/app.go
rename to app/postgres/app.go
diff --git a/postgres/app_test.go b/app/postgres/app_test.go
similarity index 94%
rename from postgres/app_test.go
rename to app/postgres/app_test.go
index 850ae2ac6..3bc5e4c19 100644
--- a/postgres/app_test.go
+++ b/app/postgres/app_test.go
@@ -6,7 +6,7 @@ import (
sqlmock "gopkg.in/DATA-DOG/go-sqlmock.v1"
- "github.com/WeCanHearYou/wechy/postgres"
+ "github.com/WeCanHearYou/wechy/app/postgres"
. "github.com/onsi/gomega"
)
diff --git a/postgres/feedback.go b/app/postgres/feedback.go
similarity index 96%
rename from postgres/feedback.go
rename to app/postgres/feedback.go
index f343a159a..8d48d490a 100644
--- a/postgres/feedback.go
+++ b/app/postgres/feedback.go
@@ -5,7 +5,7 @@ import (
"time"
- "github.com/WeCanHearYou/wechy/feedback"
+ "github.com/WeCanHearYou/wechy/app/feedback"
)
// IdeaService contains read and write operations for ideas
diff --git a/postgres/feedback_test.go b/app/postgres/feedback_test.go
similarity index 93%
rename from postgres/feedback_test.go
rename to app/postgres/feedback_test.go
index ee5e63462..0c22c2275 100644
--- a/postgres/feedback_test.go
+++ b/app/postgres/feedback_test.go
@@ -7,8 +7,8 @@ import (
sqlmock "gopkg.in/DATA-DOG/go-sqlmock.v1"
- "github.com/WeCanHearYou/wechy/feedback"
- "github.com/WeCanHearYou/wechy/postgres"
+ "github.com/WeCanHearYou/wechy/app/feedback"
+ "github.com/WeCanHearYou/wechy/app/postgres"
. "github.com/onsi/gomega"
)
diff --git a/postgres/helpers_test.go b/app/postgres/helpers_test.go
similarity index 100%
rename from postgres/helpers_test.go
rename to app/postgres/helpers_test.go
diff --git a/postgres/identity.go b/app/postgres/identity.go
similarity index 95%
rename from postgres/identity.go
rename to app/postgres/identity.go
index 6c9706dd1..5d76dac36 100644
--- a/postgres/identity.go
+++ b/app/postgres/identity.go
@@ -5,8 +5,8 @@ import (
"strings"
"time"
- "github.com/WeCanHearYou/wechy/identity"
- "github.com/WeCanHearYou/wechy/toolbox/env"
+ "github.com/WeCanHearYou/wechy/app/identity"
+ "github.com/WeCanHearYou/wechy/app/toolbox/env"
)
// UserService is used for user operations using a Postgres database
diff --git a/postgres/identity_test.go b/app/postgres/identity_test.go
similarity index 98%
rename from postgres/identity_test.go
rename to app/postgres/identity_test.go
index 1bcc546b8..2e5f6cc27 100644
--- a/postgres/identity_test.go
+++ b/app/postgres/identity_test.go
@@ -7,8 +7,8 @@ import (
sqlmock "gopkg.in/DATA-DOG/go-sqlmock.v1"
- "github.com/WeCanHearYou/wechy/identity"
- "github.com/WeCanHearYou/wechy/postgres"
+ "github.com/WeCanHearYou/wechy/app/identity"
+ "github.com/WeCanHearYou/wechy/app/postgres"
. "github.com/onsi/gomega"
)
diff --git a/app/renderer.go b/app/renderer.go
index 88a043467..5b3aa8a33 100644
--- a/app/renderer.go
+++ b/app/renderer.go
@@ -11,8 +11,8 @@ import (
"io/ioutil"
- "github.com/WeCanHearYou/wechy/identity"
- "github.com/WeCanHearYou/wechy/toolbox/env"
+ "github.com/WeCanHearYou/wechy/app/identity"
+ "github.com/WeCanHearYou/wechy/app/toolbox/env"
"github.com/labstack/echo"
)
diff --git a/app/router.go b/app/router.go
index 5692094da..f95d3077f 100644
--- a/app/router.go
+++ b/app/router.go
@@ -5,9 +5,9 @@ import (
"strings"
- "github.com/WeCanHearYou/wechy/feedback"
- "github.com/WeCanHearYou/wechy/identity"
- "github.com/WeCanHearYou/wechy/toolbox/env"
+ "github.com/WeCanHearYou/wechy/app/feedback"
+ "github.com/WeCanHearYou/wechy/app/identity"
+ "github.com/WeCanHearYou/wechy/app/toolbox/env"
"github.com/labstack/echo"
"github.com/labstack/gommon/log"
)
diff --git a/toolbox/env/env.go b/app/toolbox/env/env.go
similarity index 100%
rename from toolbox/env/env.go
rename to app/toolbox/env/env.go
diff --git a/toolbox/env/env_test.go b/app/toolbox/env/env_test.go
similarity index 96%
rename from toolbox/env/env_test.go
rename to app/toolbox/env/env_test.go
index a06c98270..61959f04a 100644
--- a/toolbox/env/env_test.go
+++ b/app/toolbox/env/env_test.go
@@ -4,7 +4,7 @@ import (
"os"
"testing"
- "github.com/WeCanHearYou/wechy/toolbox/env"
+ "github.com/WeCanHearYou/wechy/app/toolbox/env"
. "github.com/onsi/gomega"
)
diff --git a/main.go b/main.go
index 0f90300da..cf4760429 100644
--- a/main.go
+++ b/main.go
@@ -4,9 +4,9 @@ import (
"database/sql"
"github.com/WeCanHearYou/wechy/app"
- "github.com/WeCanHearYou/wechy/identity"
- "github.com/WeCanHearYou/wechy/postgres"
- "github.com/WeCanHearYou/wechy/toolbox/env"
+ "github.com/WeCanHearYou/wechy/app/identity"
+ "github.com/WeCanHearYou/wechy/app/postgres"
+ "github.com/WeCanHearYou/wechy/app/toolbox/env"
_ "github.com/lib/pq"
"fmt"