Skip to content

Commit

Permalink
using v3 in module path
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanshkc committed Apr 27, 2023
1 parent 073f861 commit d9af8c1
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions cmd/rosenbridge/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"github.com/shivanshkc/rosenbridge/v2/internal/http"
"github.com/shivanshkc/rosenbridge/v2/pkg/config"
"github.com/shivanshkc/rosenbridge/v2/pkg/logger"
"github.com/shivanshkc/rosenbridge/v3/internal/http"
"github.com/shivanshkc/rosenbridge/v3/pkg/config"
"github.com/shivanshkc/rosenbridge/v3/pkg/logger"
)

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 github.com/shivanshkc/rosenbridge/v2
module github.com/shivanshkc/rosenbridge/v3

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion internal/http/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"

"github.com/shivanshkc/rosenbridge/v2/pkg/logger"
"github.com/shivanshkc/rosenbridge/v3/pkg/logger"
)

// Middleware implements all the REST middleware methods.
Expand Down
6 changes: 3 additions & 3 deletions internal/http/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/labstack/echo/v4"
"github.com/labstack/echo/v4/middleware"

"github.com/shivanshkc/rosenbridge/v2/pkg/config"
"github.com/shivanshkc/rosenbridge/v2/pkg/logger"
"github.com/shivanshkc/rosenbridge/v2/pkg/utils/errutils"
"github.com/shivanshkc/rosenbridge/v3/pkg/config"
"github.com/shivanshkc/rosenbridge/v3/pkg/logger"
"github.com/shivanshkc/rosenbridge/v3/pkg/utils/errutils"
)

func TestMiddleware_Recovery(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/http/mw_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/labstack/echo/v4"

"github.com/shivanshkc/rosenbridge/v2/pkg/utils/ctxutils"
"github.com/shivanshkc/rosenbridge/v3/pkg/utils/ctxutils"
)

// AccessLogger middleware handles access logging.
Expand Down
2 changes: 1 addition & 1 deletion internal/http/mw_access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/labstack/echo/v4"

"github.com/shivanshkc/rosenbridge/v2/pkg/utils/ctxutils"
"github.com/shivanshkc/rosenbridge/v3/pkg/utils/ctxutils"
)

//nolint:funlen // This function may get shorter when we write more tests in the future that demand re-usability.
Expand Down
8 changes: 4 additions & 4 deletions internal/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (

"github.com/labstack/echo/v4"

"github.com/shivanshkc/rosenbridge/v2/pkg/config"
"github.com/shivanshkc/rosenbridge/v2/pkg/logger"
"github.com/shivanshkc/rosenbridge/v2/pkg/utils/errutils"
"github.com/shivanshkc/rosenbridge/v2/pkg/utils/signals"
"github.com/shivanshkc/rosenbridge/v3/pkg/config"
"github.com/shivanshkc/rosenbridge/v3/pkg/logger"
"github.com/shivanshkc/rosenbridge/v3/pkg/utils/errutils"
"github.com/shivanshkc/rosenbridge/v3/pkg/utils/signals"
)

// Server is the HTTP server of this application.
Expand Down
4 changes: 2 additions & 2 deletions internal/http/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"
"time"

"github.com/shivanshkc/rosenbridge/v2/pkg/config"
"github.com/shivanshkc/rosenbridge/v2/pkg/logger"
"github.com/shivanshkc/rosenbridge/v3/pkg/config"
"github.com/shivanshkc/rosenbridge/v3/pkg/logger"
)

// TestServer_Start checks if the HTTP server starts correctly with all the valid parameters.
Expand Down
4 changes: 2 additions & 2 deletions pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/rs/zerolog"

"github.com/shivanshkc/rosenbridge/v2/pkg/config"
"github.com/shivanshkc/rosenbridge/v2/pkg/utils/ctxutils"
"github.com/shivanshkc/rosenbridge/v3/pkg/config"
"github.com/shivanshkc/rosenbridge/v3/pkg/utils/ctxutils"
)

// Logger is a wrapper around zerolog.Logger to provide custom methods on it.
Expand Down

0 comments on commit d9af8c1

Please sign in to comment.