Skip to content

Commit 5bafdaf

Browse files
committed
moved modules to separate directory
1 parent 9ace509 commit 5bafdaf

33 files changed

+21
-15
lines changed

auth/auth.go modules/auth/auth.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import (
77
jwt "github.com/dgrijalva/jwt-go"
88

99
"github.com/spaceuptech/space-cloud/config"
10-
"github.com/spaceuptech/space-cloud/crud"
1110
"github.com/spaceuptech/space-cloud/utils"
11+
12+
"github.com/spaceuptech/space-cloud/modules/crud"
1213
)
1314

1415
// Module is responsible for authentication and authorsation
File renamed without changes.

auth/file.go modules/auth/file.go

File renamed without changes.

auth/match.go modules/auth/match.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import (
44
"context"
55

66
"github.com/spaceuptech/space-cloud/config"
7-
"github.com/spaceuptech/space-cloud/crud"
87
"github.com/spaceuptech/space-cloud/model"
98
"github.com/spaceuptech/space-cloud/utils"
9+
10+
"github.com/spaceuptech/space-cloud/modules/crud"
1011
)
1112

1213
func (m *Module) matchRule(rule *config.Rule, args map[string]interface{}) error {
File renamed without changes.

crud/crud.go modules/crud/crud.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import (
55
"errors"
66
"sync"
77

8-
"github.com/spaceuptech/space-cloud/crud/mgo"
9-
"github.com/spaceuptech/space-cloud/crud/sql"
10-
118
"github.com/spaceuptech/space-cloud/config"
129
"github.com/spaceuptech/space-cloud/model"
1310
"github.com/spaceuptech/space-cloud/utils"
11+
12+
"github.com/spaceuptech/space-cloud/modules/crud/mgo"
13+
"github.com/spaceuptech/space-cloud/modules/crud/sql"
1414
)
1515

1616
// Module is the root block providing convenient wrappers
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

faas/faas.go modules/faas/faas.go

File renamed without changes.

faas/http.go modules/faas/http.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import (
66

77
"github.com/gorilla/mux"
88

9-
"github.com/spaceuptech/space-cloud/auth"
109
"github.com/spaceuptech/space-cloud/model"
10+
11+
"github.com/spaceuptech/space-cloud/modules/auth"
1112
)
1213

1314
// HandleRequest creates a FaaS request endpoint

filestore/http.go modules/filestore/http.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ import (
99
"time"
1010

1111
"github.com/gorilla/mux"
12-
"github.com/spaceuptech/space-cloud/auth"
12+
1313
"github.com/spaceuptech/space-cloud/model"
1414
"github.com/spaceuptech/space-cloud/utils"
15+
16+
"github.com/spaceuptech/space-cloud/modules/auth"
1517
)
1618

1719
// Supported content types
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

filestore/store.go modules/filestore/store.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/spaceuptech/space-cloud/model"
1010
"github.com/spaceuptech/space-cloud/utils"
1111

12-
"github.com/spaceuptech/space-cloud/filestore/local"
12+
"github.com/spaceuptech/space-cloud/modules/filestore/local"
1313
)
1414

1515
// Module is responsible for managing the file storage module
File renamed without changes.
File renamed without changes.

userman/user.go modules/userman/user.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package userman
33
import (
44
"sync"
55

6-
"github.com/spaceuptech/space-cloud/auth"
76
"github.com/spaceuptech/space-cloud/config"
8-
"github.com/spaceuptech/space-cloud/crud"
7+
8+
"github.com/spaceuptech/space-cloud/modules/auth"
9+
"github.com/spaceuptech/space-cloud/modules/crud"
910
)
1011

1112
// Module is responsible for user management

server.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import (
66

77
"github.com/gorilla/mux"
88

9-
"github.com/spaceuptech/space-cloud/auth"
109
"github.com/spaceuptech/space-cloud/config"
11-
"github.com/spaceuptech/space-cloud/crud"
12-
"github.com/spaceuptech/space-cloud/faas"
13-
"github.com/spaceuptech/space-cloud/filestore"
14-
"github.com/spaceuptech/space-cloud/userman"
10+
"github.com/spaceuptech/space-cloud/modules/auth"
11+
"github.com/spaceuptech/space-cloud/modules/crud"
12+
"github.com/spaceuptech/space-cloud/modules/faas"
13+
"github.com/spaceuptech/space-cloud/modules/filestore"
14+
"github.com/spaceuptech/space-cloud/modules/userman"
1515
)
1616

1717
type server struct {

0 commit comments

Comments
 (0)