Skip to content

Commit 3cd0e79

Browse files
committed
refactor: flatten handler package, remove v1beta1 subdirectory
Move handler files from handler/v1beta1/ to handler/ and rename package from handlersv1beta1 to handler.
1 parent 63619d2 commit 3cd0e79

31 files changed

Lines changed: 42 additions & 42 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package handlersv1beta1
1+
package handler
22

33
//go:generate mockery --name=AssetService -r --case underscore --with-expecter --structname AssetService --filename asset_service.go --output=./mocks
44
import (
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package handlersv1beta1
1+
package handler
22

33
import (
44
"context"
@@ -16,7 +16,7 @@ import (
1616
"github.com/raystack/compass/core/namespace"
1717
"github.com/raystack/compass/core/star"
1818
"github.com/raystack/compass/core/user"
19-
"github.com/raystack/compass/handler/v1beta1/mocks"
19+
"github.com/raystack/compass/handler/mocks"
2020
"github.com/raystack/compass/internal/middleware"
2121
compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1"
2222
log "github.com/raystack/salt/observability/logger"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package handlersv1beta1
1+
package handler
22

33
import (
44
"context"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package handlersv1beta1
1+
package handler
22

33
import (
44
"context"
@@ -14,7 +14,7 @@ import (
1414
"github.com/raystack/compass/core/discussion"
1515
"github.com/raystack/compass/core/namespace"
1616
"github.com/raystack/compass/core/user"
17-
"github.com/raystack/compass/handler/v1beta1/mocks"
17+
"github.com/raystack/compass/handler/mocks"
1818
"github.com/raystack/compass/internal/middleware"
1919
compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1"
2020
log "github.com/raystack/salt/observability/logger"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package handlersv1beta1
1+
package handler
22

33
//go:generate mockery --name=DiscussionService -r --case underscore --with-expecter --structname DiscussionService --filename discussion_service.go --output=./mocks
44
import (
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package handlersv1beta1
1+
package handler
22

33
import (
44
"context"
@@ -14,7 +14,7 @@ import (
1414
"github.com/raystack/compass/core/discussion"
1515
"github.com/raystack/compass/core/namespace"
1616
"github.com/raystack/compass/core/user"
17-
"github.com/raystack/compass/handler/v1beta1/mocks"
17+
"github.com/raystack/compass/handler/mocks"
1818
"github.com/raystack/compass/internal/middleware"
1919
compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1"
2020
log "github.com/raystack/salt/observability/logger"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package handlersv1beta1
1+
package handler
22

33
import (
44
"context"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package handlersv1beta1
1+
package handler
22

33
import (
44
"context"
@@ -11,7 +11,7 @@ import (
1111
"github.com/raystack/compass/core/asset"
1212
"github.com/raystack/compass/core/namespace"
1313
"github.com/raystack/compass/core/user"
14-
"github.com/raystack/compass/handler/v1beta1/mocks"
14+
"github.com/raystack/compass/handler/mocks"
1515
"github.com/raystack/compass/internal/middleware"
1616
compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1"
1717
log "github.com/raystack/salt/observability/logger"
File renamed without changes.

0 commit comments

Comments
 (0)