diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b6890d..a8ebd7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: uses: codecov/codecov-action@v4.0.1 with: token: ${{ secrets.CODECOV_TOKEN }} - slug: dgate-io/dgate + slug: dgate-io/dgate-api - name: Benchmark run: | diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 0a21dc7..20c24d7 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -32,9 +32,9 @@ jobs: - name: Install dgate-cli and dgate-server run: | - go install github.com/dgate-io/dgate/cmd/dgate-cli + go install github.com/dgate-io/dgate-api/cmd/dgate-cli dgate-cli --version - go install github.com/dgate-io/dgate/cmd/dgate-server + go install github.com/dgate-io/dgate-api/cmd/dgate-server dgate-server --version - name: Install jq diff --git a/README.md b/README.md index 0ca298f..595cb5c 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # DGate - Distributed API Gateway -[![Go Report Card](https://goreportcard.com/badge/github.com/dgate-io/dgate)](https://goreportcard.com/report/github.com/dgate-io/dgate) -[![Go Reference](https://pkg.go.dev/badge/github.com/dgate-io/dgate.svg)](https://pkg.go.dev/github.com/dgate-io/dgate) -[![CI](https://github.com/dgate-io/dgate/actions/workflows/ci.yml/badge.svg)](https://github.com/dgate-io/dgate/actions/workflows/ci.yml) -[![E2E](https://github.com/dgate-io/dgate/actions/workflows/e2e.yml/badge.svg)](https://github.com/dgate-io/dgate/actions/workflows/e2e.yml) -[![codecov](https://codecov.io/gh/dgate-io/dgate/graph/badge.svg?token=KIDT82HSO9)](https://codecov.io/gh/dgate-io/dgate) +[![Go Report Card](https://goreportcard.com/badge/github.com/dgate-io/dgate-api)](https://goreportcard.com/report/github.com/dgate-io/dgate-api) +[![Go Reference](https://pkg.go.dev/badge/github.com/dgate-io/dgate-api.svg)](https://pkg.go.dev/github.com/dgate-io/dgate-api) +[![CI](https://github.com/dgate-io/dgate-api/actions/workflows/ci.yml/badge.svg)](https://github.com/dgate-io/dgate-api/actions/workflows/ci.yml) +[![E2E](https://github.com/dgate-io/dgate-api/actions/workflows/e2e.yml/badge.svg)](https://github.com/dgate-io/dgate-api/actions/workflows/e2e.yml) +[![codecov](https://codecov.io/gh/dgate-io/dgate-api/graph/badge.svg?token=KIDT82HSO9)](https://codecov.io/gh/dgate-io/dgate-api) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) -![GitHub Release](https://img.shields.io/github/v/release/dgate-io/dgate) +![GitHub Release](https://img.shields.io/github/v/release/dgate-io/dgate-api) DGate is a distributed API Gateway built for developers. DGate allows you to use JavaScript/TypeScript to modify request/response data(L7). Inspired by [k6](https://github.com/grafana/k6) and [kong](https://github.com/Kong/kong). @@ -21,7 +21,7 @@ http://dgate.io/docs/getting-started ```bash # requires go 1.22+ -go install github.com/dgate-io/dgate/cmd/dgate-server@latest +go install github.com/dgate-io/dgate-api/cmd/dgate-server@latest ``` ## Application Architecture diff --git a/cmd/dgate-cli/commands/collection_cmd.go b/cmd/dgate-cli/commands/collection_cmd.go index 404dede..d1c9340 100644 --- a/cmd/dgate-cli/commands/collection_cmd.go +++ b/cmd/dgate-cli/commands/collection_cmd.go @@ -1,8 +1,8 @@ package commands import ( - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/urfave/cli/v2" ) diff --git a/cmd/dgate-cli/commands/document_cmd.go b/cmd/dgate-cli/commands/document_cmd.go index a569585..d5c1957 100644 --- a/cmd/dgate-cli/commands/document_cmd.go +++ b/cmd/dgate-cli/commands/document_cmd.go @@ -1,8 +1,8 @@ package commands import ( - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/urfave/cli/v2" ) diff --git a/cmd/dgate-cli/commands/domain_cmd.go b/cmd/dgate-cli/commands/domain_cmd.go index f199ddd..c40f691 100644 --- a/cmd/dgate-cli/commands/domain_cmd.go +++ b/cmd/dgate-cli/commands/domain_cmd.go @@ -1,8 +1,8 @@ package commands import ( - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/urfave/cli/v2" ) diff --git a/cmd/dgate-cli/commands/module_cmd.go b/cmd/dgate-cli/commands/module_cmd.go index d2bfd58..7000770 100644 --- a/cmd/dgate-cli/commands/module_cmd.go +++ b/cmd/dgate-cli/commands/module_cmd.go @@ -1,8 +1,8 @@ package commands import ( - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/urfave/cli/v2" ) diff --git a/cmd/dgate-cli/commands/namespace_cmd.go b/cmd/dgate-cli/commands/namespace_cmd.go index 78f1feb..a5169b3 100644 --- a/cmd/dgate-cli/commands/namespace_cmd.go +++ b/cmd/dgate-cli/commands/namespace_cmd.go @@ -1,8 +1,8 @@ package commands import ( - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/urfave/cli/v2" ) diff --git a/cmd/dgate-cli/commands/route_cmd.go b/cmd/dgate-cli/commands/route_cmd.go index 3bf083c..f0ed677 100644 --- a/cmd/dgate-cli/commands/route_cmd.go +++ b/cmd/dgate-cli/commands/route_cmd.go @@ -1,8 +1,8 @@ package commands import ( - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/urfave/cli/v2" ) diff --git a/cmd/dgate-cli/commands/run_cmd.go b/cmd/dgate-cli/commands/run_cmd.go index 0133915..4ac780c 100644 --- a/cmd/dgate-cli/commands/run_cmd.go +++ b/cmd/dgate-cli/commands/run_cmd.go @@ -8,7 +8,7 @@ import ( "runtime/debug" "strings" - "github.com/dgate-io/dgate/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/dgclient" "github.com/urfave/cli/v2" "golang.org/x/term" ) diff --git a/cmd/dgate-cli/commands/run_cmd_test.go b/cmd/dgate-cli/commands/run_cmd_test.go index e785b00..c610f89 100644 --- a/cmd/dgate-cli/commands/run_cmd_test.go +++ b/cmd/dgate-cli/commands/run_cmd_test.go @@ -7,8 +7,8 @@ import ( "strings" "testing" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" ) diff --git a/cmd/dgate-cli/commands/secret_cmd.go b/cmd/dgate-cli/commands/secret_cmd.go index a5762fe..82f699c 100644 --- a/cmd/dgate-cli/commands/secret_cmd.go +++ b/cmd/dgate-cli/commands/secret_cmd.go @@ -1,8 +1,8 @@ package commands import ( - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/urfave/cli/v2" ) diff --git a/cmd/dgate-cli/commands/service_cmd.go b/cmd/dgate-cli/commands/service_cmd.go index 92ac2d1..a7f2ceb 100644 --- a/cmd/dgate-cli/commands/service_cmd.go +++ b/cmd/dgate-cli/commands/service_cmd.go @@ -1,8 +1,8 @@ package commands import ( - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/urfave/cli/v2" ) diff --git a/cmd/dgate-cli/commands/util.go b/cmd/dgate-cli/commands/util.go index 35570b9..cee2ef7 100644 --- a/cmd/dgate-cli/commands/util.go +++ b/cmd/dgate-cli/commands/util.go @@ -8,7 +8,7 @@ import ( "os" "strings" - "github.com/dgate-io/dgate/internal/config" + "github.com/dgate-io/dgate-api/internal/config" ms "github.com/mitchellh/mapstructure" ) diff --git a/cmd/dgate-cli/main.go b/cmd/dgate-cli/main.go index 8129d69..4086c4b 100644 --- a/cmd/dgate-cli/main.go +++ b/cmd/dgate-cli/main.go @@ -3,8 +3,8 @@ package main import ( "os" - "github.com/dgate-io/dgate/cmd/dgate-cli/commands" - "github.com/dgate-io/dgate/pkg/dgclient" + "github.com/dgate-io/dgate-api/cmd/dgate-cli/commands" + "github.com/dgate-io/dgate-api/pkg/dgclient" ) var version string = "dev" diff --git a/cmd/dgate-server/main.go b/cmd/dgate-server/main.go index 95dc01e..e002f49 100644 --- a/cmd/dgate-server/main.go +++ b/cmd/dgate-server/main.go @@ -9,10 +9,10 @@ import ( "runtime/debug" - "github.com/dgate-io/dgate/internal/admin" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/internal/proxy" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/internal/admin" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/internal/proxy" + "github.com/dgate-io/dgate-api/pkg/util" "github.com/spf13/pflag" ) diff --git a/go.mod b/go.mod index a9cda3c..adb6220 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/dgate-io/dgate +module github.com/dgate-io/dgate-api go 1.22.0 diff --git a/internal/admin/admin_api.go b/internal/admin/admin_api.go index 3ab6963..65cee09 100644 --- a/internal/admin/admin_api.go +++ b/internal/admin/admin_api.go @@ -10,9 +10,9 @@ import ( "github.com/dgate-io/chi-router" "github.com/dgate-io/chi-router/middleware" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/pkg/util" "go.uber.org/zap" "golang.org/x/net/http2" diff --git a/internal/admin/admin_fsm.go b/internal/admin/admin_fsm.go index daf7480..ff4b2f3 100644 --- a/internal/admin/admin_fsm.go +++ b/internal/admin/admin_fsm.go @@ -5,8 +5,8 @@ import ( "errors" "io" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/hashicorp/raft" "go.uber.org/zap" ) diff --git a/internal/admin/admin_raft.go b/internal/admin/admin_raft.go index 8c90bf3..661dde5 100644 --- a/internal/admin/admin_raft.go +++ b/internal/admin/admin_raft.go @@ -10,13 +10,13 @@ import ( "time" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/pkg/raftadmin" - "github.com/dgate-io/dgate/pkg/rafthttp" - "github.com/dgate-io/dgate/pkg/storage" - "github.com/dgate-io/dgate/pkg/util" - "github.com/dgate-io/dgate/pkg/util/logadapter" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/pkg/raftadmin" + "github.com/dgate-io/dgate-api/pkg/rafthttp" + "github.com/dgate-io/dgate-api/pkg/storage" + "github.com/dgate-io/dgate-api/pkg/util" + "github.com/dgate-io/dgate-api/pkg/util/logadapter" "github.com/hashicorp/raft" boltdb "github.com/hashicorp/raft-boltdb/v2" "go.uber.org/zap" diff --git a/internal/admin/admin_routes.go b/internal/admin/admin_routes.go index e5f966d..ea1495e 100644 --- a/internal/admin/admin_routes.go +++ b/internal/admin/admin_routes.go @@ -8,11 +8,11 @@ import ( "strings" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/internal/admin/routes" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/pkg/util" - "github.com/dgate-io/dgate/pkg/util/iplist" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/internal/admin/routes" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/pkg/util" + "github.com/dgate-io/dgate-api/pkg/util/iplist" "github.com/hashicorp/raft" "github.com/prometheus/client_golang/prometheus/promhttp" "go.opentelemetry.io/otel" diff --git a/internal/admin/admin_routes_test.go b/internal/admin/admin_routes_test.go index 272f997..d4453a0 100644 --- a/internal/admin/admin_routes_test.go +++ b/internal/admin/admin_routes_test.go @@ -4,9 +4,9 @@ import ( "testing" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate/testutil" - "github.com/dgate-io/dgate/internal/config/configtest" - "github.com/dgate-io/dgate/pkg/resources" + "github.com/dgate-io/dgate-api/internal/admin/changestate/testutil" + "github.com/dgate-io/dgate-api/internal/config/configtest" + "github.com/dgate-io/dgate-api/pkg/resources" "go.uber.org/zap" ) diff --git a/internal/admin/changestate/change_state.go b/internal/admin/changestate/change_state.go index 2e95c52..82f87fb 100644 --- a/internal/admin/changestate/change_state.go +++ b/internal/admin/changestate/change_state.go @@ -1,10 +1,10 @@ package changestate import ( - "github.com/dgate-io/dgate/internal/proxy" - "github.com/dgate-io/dgate/pkg/raftadmin" - "github.com/dgate-io/dgate/pkg/resources" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/internal/proxy" + "github.com/dgate-io/dgate-api/pkg/raftadmin" + "github.com/dgate-io/dgate-api/pkg/resources" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/hashicorp/raft" ) diff --git a/internal/admin/changestate/testutil/change_state.go b/internal/admin/changestate/testutil/change_state.go index f0e5a82..290d30d 100644 --- a/internal/admin/changestate/testutil/change_state.go +++ b/internal/admin/changestate/testutil/change_state.go @@ -4,10 +4,10 @@ import ( "io" "log/slog" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/pkg/resources" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/raftadmin" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/pkg/resources" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/raftadmin" "github.com/hashicorp/raft" "github.com/stretchr/testify/mock" ) diff --git a/internal/admin/routes/collection_routes.go b/internal/admin/routes/collection_routes.go index 52340f8..8ce079e 100644 --- a/internal/admin/routes/collection_routes.go +++ b/internal/admin/routes/collection_routes.go @@ -6,10 +6,10 @@ import ( "net/http" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/util" "github.com/santhosh-tekuri/jsonschema/v5" "go.uber.org/zap" ) diff --git a/internal/admin/routes/domain_routes.go b/internal/admin/routes/domain_routes.go index 096fd77..4caa282 100644 --- a/internal/admin/routes/domain_routes.go +++ b/internal/admin/routes/domain_routes.go @@ -6,10 +6,10 @@ import ( "net/http" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/util" "go.uber.org/zap" ) diff --git a/internal/admin/routes/misc_routes.go b/internal/admin/routes/misc_routes.go index 4f169de..1ef5c50 100644 --- a/internal/admin/routes/misc_routes.go +++ b/internal/admin/routes/misc_routes.go @@ -6,9 +6,9 @@ import ( "strconv" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/pkg/util" ) func ConfigureChangeLogAPI(server chi.Router, cs changestate.ChangeState, appConfig *config.DGateConfig) { diff --git a/internal/admin/routes/module_routes.go b/internal/admin/routes/module_routes.go index 027da3d..709f583 100644 --- a/internal/admin/routes/module_routes.go +++ b/internal/admin/routes/module_routes.go @@ -6,10 +6,10 @@ import ( "net/http" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/util" "go.uber.org/zap" ) diff --git a/internal/admin/routes/module_routes_test.go b/internal/admin/routes/module_routes_test.go index cfabb25..769580a 100644 --- a/internal/admin/routes/module_routes_test.go +++ b/internal/admin/routes/module_routes_test.go @@ -7,13 +7,13 @@ import ( "testing" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate/testutil" - "github.com/dgate-io/dgate/internal/admin/routes" - "github.com/dgate-io/dgate/internal/config/configtest" - "github.com/dgate-io/dgate/internal/proxy" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/resources" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/internal/admin/changestate/testutil" + "github.com/dgate-io/dgate-api/internal/admin/routes" + "github.com/dgate-io/dgate-api/internal/config/configtest" + "github.com/dgate-io/dgate-api/internal/proxy" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/resources" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "go.uber.org/zap" diff --git a/internal/admin/routes/namespace_routes.go b/internal/admin/routes/namespace_routes.go index f6b175c..b40852c 100644 --- a/internal/admin/routes/namespace_routes.go +++ b/internal/admin/routes/namespace_routes.go @@ -6,10 +6,10 @@ import ( "net/http" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/util" "go.uber.org/zap" ) diff --git a/internal/admin/routes/namespace_routes_test.go b/internal/admin/routes/namespace_routes_test.go index a03ae77..b3f2548 100644 --- a/internal/admin/routes/namespace_routes_test.go +++ b/internal/admin/routes/namespace_routes_test.go @@ -6,13 +6,13 @@ import ( "testing" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate/testutil" - "github.com/dgate-io/dgate/internal/admin/routes" - "github.com/dgate-io/dgate/internal/config/configtest" - "github.com/dgate-io/dgate/internal/proxy" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/resources" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/internal/admin/changestate/testutil" + "github.com/dgate-io/dgate-api/internal/admin/routes" + "github.com/dgate-io/dgate-api/internal/config/configtest" + "github.com/dgate-io/dgate-api/internal/proxy" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/resources" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "go.uber.org/zap" diff --git a/internal/admin/routes/route_routes.go b/internal/admin/routes/route_routes.go index 23f064e..3eba69b 100644 --- a/internal/admin/routes/route_routes.go +++ b/internal/admin/routes/route_routes.go @@ -6,10 +6,10 @@ import ( "net/http" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/util" "go.uber.org/zap" ) diff --git a/internal/admin/routes/route_routes_test.go b/internal/admin/routes/route_routes_test.go index 42956bf..2f8223a 100644 --- a/internal/admin/routes/route_routes_test.go +++ b/internal/admin/routes/route_routes_test.go @@ -6,13 +6,13 @@ import ( "testing" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate/testutil" - "github.com/dgate-io/dgate/internal/admin/routes" - "github.com/dgate-io/dgate/internal/config/configtest" - "github.com/dgate-io/dgate/internal/proxy" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/resources" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/internal/admin/changestate/testutil" + "github.com/dgate-io/dgate-api/internal/admin/routes" + "github.com/dgate-io/dgate-api/internal/config/configtest" + "github.com/dgate-io/dgate-api/internal/proxy" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/resources" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "go.uber.org/zap" diff --git a/internal/admin/routes/secret_routes.go b/internal/admin/routes/secret_routes.go index fb2feb9..be49ada 100644 --- a/internal/admin/routes/secret_routes.go +++ b/internal/admin/routes/secret_routes.go @@ -7,10 +7,10 @@ import ( "net/http" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/util" "go.uber.org/zap" ) diff --git a/internal/admin/routes/service_routes.go b/internal/admin/routes/service_routes.go index fb2c631..62fa128 100644 --- a/internal/admin/routes/service_routes.go +++ b/internal/admin/routes/service_routes.go @@ -8,10 +8,10 @@ import ( urllib "net/url" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/internal/admin/changestate" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/util" "go.uber.org/zap" ) diff --git a/internal/admin/routes/service_routes_test.go b/internal/admin/routes/service_routes_test.go index 81be839..fb274bf 100644 --- a/internal/admin/routes/service_routes_test.go +++ b/internal/admin/routes/service_routes_test.go @@ -6,13 +6,13 @@ import ( "testing" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/admin/changestate/testutil" - "github.com/dgate-io/dgate/internal/admin/routes" - "github.com/dgate-io/dgate/internal/config/configtest" - "github.com/dgate-io/dgate/internal/proxy" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/resources" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/internal/admin/changestate/testutil" + "github.com/dgate-io/dgate-api/internal/admin/routes" + "github.com/dgate-io/dgate-api/internal/config/configtest" + "github.com/dgate-io/dgate-api/internal/proxy" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/resources" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "go.uber.org/zap" diff --git a/internal/config/config.go b/internal/config/config.go index e9c6441..a8491c4 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -3,7 +3,7 @@ package config import ( "time" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" "go.uber.org/zap" "go.uber.org/zap/zapcore" ) diff --git a/internal/config/configtest/dgate_configs.go b/internal/config/configtest/dgate_configs.go index a45e8e6..61cc1d7 100644 --- a/internal/config/configtest/dgate_configs.go +++ b/internal/config/configtest/dgate_configs.go @@ -1,8 +1,8 @@ package configtest import ( - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/pkg/spec" "go.uber.org/zap" ) diff --git a/internal/config/loader.go b/internal/config/loader.go index 9a2ab9a..6c02469 100644 --- a/internal/config/loader.go +++ b/internal/config/loader.go @@ -11,7 +11,7 @@ import ( "regexp" "strings" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/pkg/util" "github.com/hashicorp/raft" kjson "github.com/knadh/koanf/parsers/json" ktoml "github.com/knadh/koanf/parsers/toml" diff --git a/internal/config/loader_test.go b/internal/config/loader_test.go index 4c28a3d..e241582 100644 --- a/internal/config/loader_test.go +++ b/internal/config/loader_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/dgate-io/dgate/internal/config" + "github.com/dgate-io/dgate-api/internal/config" "github.com/stretchr/testify/assert" ) diff --git a/internal/config/resources.go b/internal/config/resources.go index 05b3d2d..fb6f9cb 100644 --- a/internal/config/resources.go +++ b/internal/config/resources.go @@ -3,7 +3,7 @@ package config import ( "errors" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" ) func (resources *DGateResources) Validate() (int, error) { diff --git a/internal/config/resources_test.go b/internal/config/resources_test.go index 78fde73..90a9929 100644 --- a/internal/config/resources_test.go +++ b/internal/config/resources_test.go @@ -3,7 +3,7 @@ package config import ( "testing" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" ) diff --git a/internal/pattern/pattern_test.go b/internal/pattern/pattern_test.go index 78121c9..fe39d27 100644 --- a/internal/pattern/pattern_test.go +++ b/internal/pattern/pattern_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/dgate-io/dgate/internal/pattern" + "github.com/dgate-io/dgate-api/internal/pattern" "github.com/stretchr/testify/assert" ) diff --git a/internal/proxy/change_log.go b/internal/proxy/change_log.go index 97ce010..4aca221 100644 --- a/internal/proxy/change_log.go +++ b/internal/proxy/change_log.go @@ -6,8 +6,8 @@ import ( "errors" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/util/sliceutil" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/util/sliceutil" "github.com/hashicorp/raft" "github.com/mitchellh/mapstructure" "go.uber.org/zap" diff --git a/internal/proxy/change_log_test.go b/internal/proxy/change_log_test.go index 675eccd..e860081 100644 --- a/internal/proxy/change_log_test.go +++ b/internal/proxy/change_log_test.go @@ -4,7 +4,7 @@ import ( "strconv" "testing" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" "go.uber.org/zap" ) diff --git a/internal/proxy/dynamic_proxy.go b/internal/proxy/dynamic_proxy.go index 89f5086..a3b7fb7 100644 --- a/internal/proxy/dynamic_proxy.go +++ b/internal/proxy/dynamic_proxy.go @@ -9,11 +9,11 @@ import ( "os" "time" - "github.com/dgate-io/dgate/internal/router" - "github.com/dgate-io/dgate/pkg/modules/extractors" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/typescript" - "github.com/dgate-io/dgate/pkg/util/tree/avl" + "github.com/dgate-io/dgate-api/internal/router" + "github.com/dgate-io/dgate-api/pkg/modules/extractors" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/typescript" + "github.com/dgate-io/dgate-api/pkg/util/tree/avl" "github.com/dop251/goja" "go.uber.org/zap" "golang.org/x/net/http2" diff --git a/internal/proxy/module_extractor.go b/internal/proxy/module_extractor.go index e4cbef1..6cef111 100644 --- a/internal/proxy/module_extractor.go +++ b/internal/proxy/module_extractor.go @@ -1,9 +1,9 @@ package proxy import ( - "github.com/dgate-io/dgate/pkg/modules" - "github.com/dgate-io/dgate/pkg/modules/extractors" - "github.com/dgate-io/dgate/pkg/modules/types" + "github.com/dgate-io/dgate-api/pkg/modules" + "github.com/dgate-io/dgate-api/pkg/modules/extractors" + "github.com/dgate-io/dgate-api/pkg/modules/types" ) type ModuleExtractor interface { diff --git a/internal/proxy/module_mock_test.go b/internal/proxy/module_mock_test.go index 9ef01e6..b72dee9 100644 --- a/internal/proxy/module_mock_test.go +++ b/internal/proxy/module_mock_test.go @@ -3,11 +3,11 @@ package proxy_test import ( "net/http" - "github.com/dgate-io/dgate/internal/proxy" - "github.com/dgate-io/dgate/pkg/modules" - "github.com/dgate-io/dgate/pkg/modules/extractors" - "github.com/dgate-io/dgate/pkg/modules/types" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/internal/proxy" + "github.com/dgate-io/dgate-api/pkg/modules" + "github.com/dgate-io/dgate-api/pkg/modules/extractors" + "github.com/dgate-io/dgate-api/pkg/modules/types" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/mock" ) diff --git a/internal/proxy/proxy_documents.go b/internal/proxy/proxy_documents.go index 4a88d86..340b227 100644 --- a/internal/proxy/proxy_documents.go +++ b/internal/proxy/proxy_documents.go @@ -1,8 +1,8 @@ package proxy import ( - "github.com/dgate-io/dgate/pkg/resources" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/resources" + "github.com/dgate-io/dgate-api/pkg/spec" ) // DocumentManager is an interface that defines the methods for managing documents. diff --git a/internal/proxy/proxy_handler.go b/internal/proxy/proxy_handler.go index a86b60d..d8be7db 100644 --- a/internal/proxy/proxy_handler.go +++ b/internal/proxy/proxy_handler.go @@ -7,7 +7,7 @@ import ( "net/url" "time" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/pkg/util" "go.uber.org/zap" ) diff --git a/internal/proxy/proxy_handler_test.go b/internal/proxy/proxy_handler_test.go index 08e76ff..eeb6f9a 100644 --- a/internal/proxy/proxy_handler_test.go +++ b/internal/proxy/proxy_handler_test.go @@ -9,10 +9,10 @@ import ( "strings" "testing" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/internal/config/configtest" - "github.com/dgate-io/dgate/internal/proxy" - "github.com/dgate-io/dgate/internal/proxy/proxytest" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/internal/config/configtest" + "github.com/dgate-io/dgate-api/internal/proxy" + "github.com/dgate-io/dgate-api/internal/proxy/proxytest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" "go.uber.org/zap" diff --git a/internal/proxy/proxy_metrics.go b/internal/proxy/proxy_metrics.go index d07d767..53f660d 100644 --- a/internal/proxy/proxy_metrics.go +++ b/internal/proxy/proxy_metrics.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/dgate-io/dgate/internal/config" + "github.com/dgate-io/dgate-api/internal/config" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/attribute" api "go.opentelemetry.io/otel/metric" diff --git a/internal/proxy/proxy_replication.go b/internal/proxy/proxy_replication.go index db1d46c..ae499e0 100644 --- a/internal/proxy/proxy_replication.go +++ b/internal/proxy/proxy_replication.go @@ -1,7 +1,7 @@ package proxy import ( - "github.com/dgate-io/dgate/pkg/raftadmin" + "github.com/dgate-io/dgate-api/pkg/raftadmin" "github.com/hashicorp/raft" ) diff --git a/internal/proxy/proxy_state.go b/internal/proxy/proxy_state.go index dd0eb9b..95e1991 100644 --- a/internal/proxy/proxy_state.go +++ b/internal/proxy/proxy_state.go @@ -14,21 +14,21 @@ import ( "sync/atomic" "time" - "github.com/dgate-io/dgate/internal/config" - "github.com/dgate-io/dgate/internal/pattern" - "github.com/dgate-io/dgate/internal/proxy/proxy_transport" - "github.com/dgate-io/dgate/internal/proxy/proxystore" - "github.com/dgate-io/dgate/internal/proxy/reverse_proxy" - "github.com/dgate-io/dgate/internal/router" - "github.com/dgate-io/dgate/pkg/cache" - "github.com/dgate-io/dgate/pkg/modules/extractors" - "github.com/dgate-io/dgate/pkg/raftadmin" - "github.com/dgate-io/dgate/pkg/resources" - "github.com/dgate-io/dgate/pkg/scheduler" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/storage" - "github.com/dgate-io/dgate/pkg/util" - "github.com/dgate-io/dgate/pkg/util/tree/avl" + "github.com/dgate-io/dgate-api/internal/config" + "github.com/dgate-io/dgate-api/internal/pattern" + "github.com/dgate-io/dgate-api/internal/proxy/proxy_transport" + "github.com/dgate-io/dgate-api/internal/proxy/proxystore" + "github.com/dgate-io/dgate-api/internal/proxy/reverse_proxy" + "github.com/dgate-io/dgate-api/internal/router" + "github.com/dgate-io/dgate-api/pkg/cache" + "github.com/dgate-io/dgate-api/pkg/modules/extractors" + "github.com/dgate-io/dgate-api/pkg/raftadmin" + "github.com/dgate-io/dgate-api/pkg/resources" + "github.com/dgate-io/dgate-api/pkg/scheduler" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/storage" + "github.com/dgate-io/dgate-api/pkg/util" + "github.com/dgate-io/dgate-api/pkg/util/tree/avl" "github.com/dop251/goja" "github.com/dop251/goja_nodejs/console" "github.com/hashicorp/raft" diff --git a/internal/proxy/proxy_state_test.go b/internal/proxy/proxy_state_test.go index 59922b1..7b751ee 100644 --- a/internal/proxy/proxy_state_test.go +++ b/internal/proxy/proxy_state_test.go @@ -6,9 +6,9 @@ import ( "net/http" "testing" - "github.com/dgate-io/dgate/internal/config/configtest" - "github.com/dgate-io/dgate/internal/proxy" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/internal/config/configtest" + "github.com/dgate-io/dgate-api/internal/proxy" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "go.uber.org/zap" diff --git a/internal/proxy/proxy_transport.go b/internal/proxy/proxy_transport.go index 1b4fb20..e7bb034 100644 --- a/internal/proxy/proxy_transport.go +++ b/internal/proxy/proxy_transport.go @@ -7,7 +7,7 @@ import ( "net" "net/http" - "github.com/dgate-io/dgate/internal/config" + "github.com/dgate-io/dgate-api/internal/config" "golang.org/x/net/http2" ) diff --git a/internal/proxy/proxy_transport/proxy_transport.go b/internal/proxy/proxy_transport/proxy_transport.go index 6c280c5..033591c 100644 --- a/internal/proxy/proxy_transport/proxy_transport.go +++ b/internal/proxy/proxy_transport/proxy_transport.go @@ -7,7 +7,7 @@ import ( "errors" - "github.com/dgate-io/dgate/internal/proxy/proxyerrors" + "github.com/dgate-io/dgate-api/internal/proxy/proxyerrors" ) type Builder interface { diff --git a/internal/proxy/proxy_transport/proxy_transport_test.go b/internal/proxy/proxy_transport/proxy_transport_test.go index 36842bd..d762275 100644 --- a/internal/proxy/proxy_transport/proxy_transport_test.go +++ b/internal/proxy/proxy_transport/proxy_transport_test.go @@ -9,8 +9,8 @@ import ( "strings" "testing" - "github.com/dgate-io/dgate/internal/proxy/proxy_transport" - "github.com/dgate-io/dgate/internal/proxy/proxytest" + "github.com/dgate-io/dgate-api/internal/proxy/proxy_transport" + "github.com/dgate-io/dgate-api/internal/proxy/proxytest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" ) diff --git a/internal/proxy/proxystore/proxy_store.go b/internal/proxy/proxystore/proxy_store.go index 58c877f..ea73c37 100644 --- a/internal/proxy/proxystore/proxy_store.go +++ b/internal/proxy/proxystore/proxy_store.go @@ -6,8 +6,8 @@ import ( "errors" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/storage" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/storage" "github.com/dgraph-io/badger/v4" "go.uber.org/zap" ) diff --git a/internal/proxy/proxystore/proxy_store_test.go b/internal/proxy/proxystore/proxy_store_test.go index 78cb470..2ba2c01 100644 --- a/internal/proxy/proxystore/proxy_store_test.go +++ b/internal/proxy/proxystore/proxy_store_test.go @@ -3,9 +3,9 @@ package proxystore_test import ( "testing" - "github.com/dgate-io/dgate/internal/proxy/proxystore" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/storage" + "github.com/dgate-io/dgate-api/internal/proxy/proxystore" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/storage" "github.com/stretchr/testify/assert" "go.uber.org/zap" ) diff --git a/internal/proxy/proxytest/mock_proxy_transport.go b/internal/proxy/proxytest/mock_proxy_transport.go index 3aacb2a..1c1bb66 100644 --- a/internal/proxy/proxytest/mock_proxy_transport.go +++ b/internal/proxy/proxytest/mock_proxy_transport.go @@ -4,7 +4,7 @@ import ( "net/http" "time" - "github.com/dgate-io/dgate/internal/proxy/proxy_transport" + "github.com/dgate-io/dgate-api/internal/proxy/proxy_transport" "github.com/stretchr/testify/mock" ) diff --git a/internal/proxy/proxytest/mock_reverse_proxy.go b/internal/proxy/proxytest/mock_reverse_proxy.go index 91d734d..1289d11 100644 --- a/internal/proxy/proxytest/mock_reverse_proxy.go +++ b/internal/proxy/proxytest/mock_reverse_proxy.go @@ -6,7 +6,7 @@ import ( "net/url" "time" - "github.com/dgate-io/dgate/internal/proxy/reverse_proxy" + "github.com/dgate-io/dgate-api/internal/proxy/reverse_proxy" "github.com/stretchr/testify/mock" ) diff --git a/internal/proxy/request_context.go b/internal/proxy/request_context.go index 9589d48..d542c6b 100644 --- a/internal/proxy/request_context.go +++ b/internal/proxy/request_context.go @@ -8,8 +8,8 @@ import ( "sync" "github.com/dgate-io/chi-router" - "github.com/dgate-io/dgate/internal/proxy/reverse_proxy" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/internal/proxy/reverse_proxy" + "github.com/dgate-io/dgate-api/pkg/spec" ) type S string diff --git a/internal/proxy/reverse_proxy/reverse_proxy_test.go b/internal/proxy/reverse_proxy/reverse_proxy_test.go index 384598b..6fd33bb 100644 --- a/internal/proxy/reverse_proxy/reverse_proxy_test.go +++ b/internal/proxy/reverse_proxy/reverse_proxy_test.go @@ -9,8 +9,8 @@ import ( "strings" "testing" - "github.com/dgate-io/dgate/internal/proxy/proxytest" - "github.com/dgate-io/dgate/internal/proxy/reverse_proxy" + "github.com/dgate-io/dgate-api/internal/proxy/proxytest" + "github.com/dgate-io/dgate-api/internal/proxy/reverse_proxy" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" ) diff --git a/internal/proxy/runtime_context.go b/internal/proxy/runtime_context.go index 94c52db..99337db 100644 --- a/internal/proxy/runtime_context.go +++ b/internal/proxy/runtime_context.go @@ -6,11 +6,11 @@ import ( "strings" "time" - "github.com/dgate-io/dgate/pkg/eventloop" - "github.com/dgate-io/dgate/pkg/modules" - "github.com/dgate-io/dgate/pkg/resources" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/typescript" + "github.com/dgate-io/dgate-api/pkg/eventloop" + "github.com/dgate-io/dgate-api/pkg/modules" + "github.com/dgate-io/dgate-api/pkg/resources" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/typescript" "github.com/dop251/goja" "github.com/dop251/goja_nodejs/require" ) diff --git a/pkg/cache/cache.go b/pkg/cache/cache.go index 520f255..98fbe79 100644 --- a/pkg/cache/cache.go +++ b/pkg/cache/cache.go @@ -6,8 +6,8 @@ import ( "sync" "time" - "github.com/dgate-io/dgate/pkg/scheduler" - "github.com/dgate-io/dgate/pkg/util/heap" + "github.com/dgate-io/dgate-api/pkg/scheduler" + "github.com/dgate-io/dgate-api/pkg/util/heap" "go.uber.org/zap" ) diff --git a/pkg/cache/cache_test.go b/pkg/cache/cache_test.go index 13fbb14..cb69bc7 100644 --- a/pkg/cache/cache_test.go +++ b/pkg/cache/cache_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/dgate-io/dgate/pkg/cache" + "github.com/dgate-io/dgate-api/pkg/cache" "github.com/stretchr/testify/assert" ) diff --git a/pkg/dgclient/collection_client.go b/pkg/dgclient/collection_client.go index 9335442..3eac34d 100644 --- a/pkg/dgclient/collection_client.go +++ b/pkg/dgclient/collection_client.go @@ -3,7 +3,7 @@ package dgclient import ( "net/url" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" ) type DGateCollectionClient interface { diff --git a/pkg/dgclient/collection_client_test.go b/pkg/dgclient/collection_client_test.go index 575ebd9..1980bf6 100644 --- a/pkg/dgclient/collection_client_test.go +++ b/pkg/dgclient/collection_client_test.go @@ -6,8 +6,8 @@ import ( "net/http/httptest" "testing" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" ) diff --git a/pkg/dgclient/dgclient_test.go b/pkg/dgclient/dgclient_test.go index a75160d..1401d88 100644 --- a/pkg/dgclient/dgclient_test.go +++ b/pkg/dgclient/dgclient_test.go @@ -5,7 +5,7 @@ import ( "net/http/httptest" "testing" - "github.com/dgate-io/dgate/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/dgclient" "github.com/stretchr/testify/assert" ) diff --git a/pkg/dgclient/document_client.go b/pkg/dgclient/document_client.go index 3540555..83da982 100644 --- a/pkg/dgclient/document_client.go +++ b/pkg/dgclient/document_client.go @@ -3,7 +3,7 @@ package dgclient import ( "net/url" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" ) type DGateDocumentClient interface { diff --git a/pkg/dgclient/document_client_test.go b/pkg/dgclient/document_client_test.go index 6390a47..731f86f 100644 --- a/pkg/dgclient/document_client_test.go +++ b/pkg/dgclient/document_client_test.go @@ -6,8 +6,8 @@ import ( "net/http/httptest" "testing" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" ) diff --git a/pkg/dgclient/domain_client.go b/pkg/dgclient/domain_client.go index 04cd50f..060d743 100644 --- a/pkg/dgclient/domain_client.go +++ b/pkg/dgclient/domain_client.go @@ -3,7 +3,7 @@ package dgclient import ( "net/url" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" ) type DGateDomainClient interface { diff --git a/pkg/dgclient/domain_client_test.go b/pkg/dgclient/domain_client_test.go index ecea3cb..7c0b1d3 100644 --- a/pkg/dgclient/domain_client_test.go +++ b/pkg/dgclient/domain_client_test.go @@ -6,8 +6,8 @@ import ( "net/http/httptest" "testing" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" ) diff --git a/pkg/dgclient/module_client.go b/pkg/dgclient/module_client.go index 8eb664f..fa0b597 100644 --- a/pkg/dgclient/module_client.go +++ b/pkg/dgclient/module_client.go @@ -3,7 +3,7 @@ package dgclient import ( "net/url" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" ) type DGateModuleClient interface { diff --git a/pkg/dgclient/module_client_test.go b/pkg/dgclient/module_client_test.go index 82dc763..19fdbb9 100644 --- a/pkg/dgclient/module_client_test.go +++ b/pkg/dgclient/module_client_test.go @@ -6,8 +6,8 @@ import ( "net/http/httptest" "testing" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" ) diff --git a/pkg/dgclient/namespace_client.go b/pkg/dgclient/namespace_client.go index ccfab3f..552dfca 100644 --- a/pkg/dgclient/namespace_client.go +++ b/pkg/dgclient/namespace_client.go @@ -3,7 +3,7 @@ package dgclient import ( "net/url" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" ) type DGateNamespaceClient interface { diff --git a/pkg/dgclient/namespace_client_test.go b/pkg/dgclient/namespace_client_test.go index 0903a9b..cf841d9 100644 --- a/pkg/dgclient/namespace_client_test.go +++ b/pkg/dgclient/namespace_client_test.go @@ -6,8 +6,8 @@ import ( "net/http/httptest" "testing" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" ) diff --git a/pkg/dgclient/route_client.go b/pkg/dgclient/route_client.go index a6d0eb1..8455508 100644 --- a/pkg/dgclient/route_client.go +++ b/pkg/dgclient/route_client.go @@ -3,7 +3,7 @@ package dgclient import ( "net/url" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" ) type DGateRouteClient interface { diff --git a/pkg/dgclient/route_client_test.go b/pkg/dgclient/route_client_test.go index adc9eef..00668cb 100644 --- a/pkg/dgclient/route_client_test.go +++ b/pkg/dgclient/route_client_test.go @@ -6,8 +6,8 @@ import ( "net/http/httptest" "testing" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" ) diff --git a/pkg/dgclient/secret_client.go b/pkg/dgclient/secret_client.go index bca98a6..70f2b60 100644 --- a/pkg/dgclient/secret_client.go +++ b/pkg/dgclient/secret_client.go @@ -3,7 +3,7 @@ package dgclient import ( "net/url" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" ) type DGateSecretClient interface { diff --git a/pkg/dgclient/secret_client_test.go b/pkg/dgclient/secret_client_test.go index 6ac1535..e55192a 100644 --- a/pkg/dgclient/secret_client_test.go +++ b/pkg/dgclient/secret_client_test.go @@ -6,8 +6,8 @@ import ( "net/http/httptest" "testing" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" ) diff --git a/pkg/dgclient/service_client.go b/pkg/dgclient/service_client.go index 3848285..57e778d 100644 --- a/pkg/dgclient/service_client.go +++ b/pkg/dgclient/service_client.go @@ -3,7 +3,7 @@ package dgclient import ( "net/url" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" ) type DGateServiceClient interface { diff --git a/pkg/dgclient/service_client_test.go b/pkg/dgclient/service_client_test.go index 23e4ef3..2e19c02 100644 --- a/pkg/dgclient/service_client_test.go +++ b/pkg/dgclient/service_client_test.go @@ -6,8 +6,8 @@ import ( "net/http/httptest" "testing" - "github.com/dgate-io/dgate/pkg/dgclient" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/dgclient" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" ) diff --git a/pkg/modules/dgate/crypto/crypto_mod.go b/pkg/modules/dgate/crypto/crypto_mod.go index 1b54732..edea7b2 100644 --- a/pkg/modules/dgate/crypto/crypto_mod.go +++ b/pkg/modules/dgate/crypto/crypto_mod.go @@ -15,8 +15,8 @@ import ( "math/big" "strings" - "github.com/dgate-io/dgate/pkg/modules" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/pkg/modules" + "github.com/dgate-io/dgate-api/pkg/util" "github.com/dop251/goja" "github.com/google/uuid" ) diff --git a/pkg/modules/dgate/dgate_mod.go b/pkg/modules/dgate/dgate_mod.go index 806f8c3..c890a00 100644 --- a/pkg/modules/dgate/dgate_mod.go +++ b/pkg/modules/dgate/dgate_mod.go @@ -4,13 +4,13 @@ import ( "errors" "time" - "github.com/dgate-io/dgate/pkg/modules" - "github.com/dgate-io/dgate/pkg/modules/dgate/crypto" - "github.com/dgate-io/dgate/pkg/modules/dgate/exp" - "github.com/dgate-io/dgate/pkg/modules/dgate/http" - "github.com/dgate-io/dgate/pkg/modules/dgate/state" - "github.com/dgate-io/dgate/pkg/modules/dgate/storage" - "github.com/dgate-io/dgate/pkg/modules/dgate/util" + "github.com/dgate-io/dgate-api/pkg/modules" + "github.com/dgate-io/dgate-api/pkg/modules/dgate/crypto" + "github.com/dgate-io/dgate-api/pkg/modules/dgate/exp" + "github.com/dgate-io/dgate-api/pkg/modules/dgate/http" + "github.com/dgate-io/dgate-api/pkg/modules/dgate/state" + "github.com/dgate-io/dgate-api/pkg/modules/dgate/storage" + "github.com/dgate-io/dgate-api/pkg/modules/dgate/util" "github.com/dop251/goja" ) diff --git a/pkg/modules/dgate/exp/exp_mod.go b/pkg/modules/dgate/exp/exp_mod.go index a7e376b..5fe7390 100644 --- a/pkg/modules/dgate/exp/exp_mod.go +++ b/pkg/modules/dgate/exp/exp_mod.go @@ -1,7 +1,7 @@ package exp import ( - "github.com/dgate-io/dgate/pkg/modules" + "github.com/dgate-io/dgate-api/pkg/modules" ) type ExperimentalModule struct { diff --git a/pkg/modules/dgate/http/http_mod.go b/pkg/modules/dgate/http/http_mod.go index ac9114b..ee2cd69 100644 --- a/pkg/modules/dgate/http/http_mod.go +++ b/pkg/modules/dgate/http/http_mod.go @@ -8,7 +8,7 @@ import ( "net/http" "time" - "github.com/dgate-io/dgate/pkg/modules" + "github.com/dgate-io/dgate-api/pkg/modules" "github.com/dop251/goja" ) diff --git a/pkg/modules/dgate/state/state_mod.go b/pkg/modules/dgate/state/state_mod.go index 652fe5e..58ea0f3 100644 --- a/pkg/modules/dgate/state/state_mod.go +++ b/pkg/modules/dgate/state/state_mod.go @@ -4,8 +4,8 @@ import ( "encoding/json" "errors" - "github.com/dgate-io/dgate/pkg/modules" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/modules" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/dop251/goja" ) diff --git a/pkg/modules/dgate/storage/storage_mod.go b/pkg/modules/dgate/storage/storage_mod.go index bca4a35..4933d2d 100644 --- a/pkg/modules/dgate/storage/storage_mod.go +++ b/pkg/modules/dgate/storage/storage_mod.go @@ -8,8 +8,8 @@ import ( "strconv" "time" - "github.com/dgate-io/dgate/pkg/modules" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/modules" + "github.com/dgate-io/dgate-api/pkg/spec" ) type StorageModule struct { diff --git a/pkg/modules/dgate/util/util_mod.go b/pkg/modules/dgate/util/util_mod.go index 6ae7b28..e03ffed 100644 --- a/pkg/modules/dgate/util/util_mod.go +++ b/pkg/modules/dgate/util/util_mod.go @@ -6,7 +6,7 @@ import ( "net/http" "strconv" - "github.com/dgate-io/dgate/pkg/modules" + "github.com/dgate-io/dgate-api/pkg/modules" ) type UtilModule struct { diff --git a/pkg/modules/extractors/extractors.go b/pkg/modules/extractors/extractors.go index cdfa54e..0f87955 100644 --- a/pkg/modules/extractors/extractors.go +++ b/pkg/modules/extractors/extractors.go @@ -10,8 +10,8 @@ import ( "strings" "time" - "github.com/dgate-io/dgate/pkg/eventloop" - "github.com/dgate-io/dgate/pkg/modules/types" + "github.com/dgate-io/dgate-api/pkg/eventloop" + "github.com/dgate-io/dgate-api/pkg/modules/types" "github.com/dop251/goja" ) diff --git a/pkg/modules/extractors/extractors_test.go b/pkg/modules/extractors/extractors_test.go index a58dde2..8dc3268 100644 --- a/pkg/modules/extractors/extractors_test.go +++ b/pkg/modules/extractors/extractors_test.go @@ -5,9 +5,9 @@ import ( "strconv" "testing" - "github.com/dgate-io/dgate/pkg/modules/extractors" - "github.com/dgate-io/dgate/pkg/modules/testutil" - "github.com/dgate-io/dgate/pkg/typescript" + "github.com/dgate-io/dgate-api/pkg/modules/extractors" + "github.com/dgate-io/dgate-api/pkg/modules/testutil" + "github.com/dgate-io/dgate-api/pkg/typescript" "github.com/dop251/goja" "github.com/stretchr/testify/assert" ) diff --git a/pkg/modules/extractors/runtime.go b/pkg/modules/extractors/runtime.go index 57d3e36..0cf752a 100644 --- a/pkg/modules/extractors/runtime.go +++ b/pkg/modules/extractors/runtime.go @@ -6,8 +6,8 @@ import ( "reflect" "strings" - "github.com/dgate-io/dgate/pkg/modules" - "github.com/dgate-io/dgate/pkg/modules/dgate" + "github.com/dgate-io/dgate-api/pkg/modules" + "github.com/dgate-io/dgate-api/pkg/modules/dgate" "github.com/dop251/goja" "github.com/dop251/goja_nodejs/buffer" "github.com/dop251/goja_nodejs/console" diff --git a/pkg/modules/extractors/runtime_test.go b/pkg/modules/extractors/runtime_test.go index 324f537..3683502 100644 --- a/pkg/modules/extractors/runtime_test.go +++ b/pkg/modules/extractors/runtime_test.go @@ -4,12 +4,12 @@ import ( "context" "testing" - "github.com/dgate-io/dgate/internal/config/configtest" - "github.com/dgate-io/dgate/internal/proxy" - "github.com/dgate-io/dgate/pkg/modules/extractors" - "github.com/dgate-io/dgate/pkg/modules/testutil" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/typescript" + "github.com/dgate-io/dgate-api/internal/config/configtest" + "github.com/dgate-io/dgate-api/internal/proxy" + "github.com/dgate-io/dgate-api/pkg/modules/extractors" + "github.com/dgate-io/dgate-api/pkg/modules/testutil" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/typescript" "github.com/dop251/goja" "github.com/dop251/goja_nodejs/console" "go.uber.org/zap" diff --git a/pkg/modules/mods.go b/pkg/modules/mods.go index bb1a8a4..8e98011 100644 --- a/pkg/modules/mods.go +++ b/pkg/modules/mods.go @@ -3,11 +3,11 @@ package modules import ( "context" - "github.com/dgate-io/dgate/pkg/cache" - "github.com/dgate-io/dgate/pkg/eventloop" - "github.com/dgate-io/dgate/pkg/resources" - "github.com/dgate-io/dgate/pkg/scheduler" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/cache" + "github.com/dgate-io/dgate-api/pkg/eventloop" + "github.com/dgate-io/dgate-api/pkg/resources" + "github.com/dgate-io/dgate-api/pkg/scheduler" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/dop251/goja" ) diff --git a/pkg/modules/testutil/testutil.go b/pkg/modules/testutil/testutil.go index 70ad006..7e0f9a1 100644 --- a/pkg/modules/testutil/testutil.go +++ b/pkg/modules/testutil/testutil.go @@ -4,13 +4,13 @@ import ( "context" "sync" - "github.com/dgate-io/dgate/pkg/cache" - "github.com/dgate-io/dgate/pkg/eventloop" - "github.com/dgate-io/dgate/pkg/modules" - "github.com/dgate-io/dgate/pkg/resources" - "github.com/dgate-io/dgate/pkg/scheduler" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/typescript" + "github.com/dgate-io/dgate-api/pkg/cache" + "github.com/dgate-io/dgate-api/pkg/eventloop" + "github.com/dgate-io/dgate-api/pkg/modules" + "github.com/dgate-io/dgate-api/pkg/resources" + "github.com/dgate-io/dgate-api/pkg/scheduler" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/typescript" "github.com/dop251/goja" "github.com/dop251/goja_nodejs/console" "github.com/dop251/goja_nodejs/require" diff --git a/pkg/modules/types/module_context.go b/pkg/modules/types/module_context.go index 47226eb..302b0f8 100644 --- a/pkg/modules/types/module_context.go +++ b/pkg/modules/types/module_context.go @@ -6,8 +6,8 @@ import ( "strconv" "time" - "github.com/dgate-io/dgate/pkg/eventloop" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/eventloop" + "github.com/dgate-io/dgate-api/pkg/spec" ) type ModuleContext struct { diff --git a/pkg/modules/types/request.go b/pkg/modules/types/request.go index de27edb..db08cc8 100644 --- a/pkg/modules/types/request.go +++ b/pkg/modules/types/request.go @@ -9,8 +9,8 @@ import ( "net/http" "net/url" - "github.com/dgate-io/dgate/pkg/eventloop" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/pkg/eventloop" + "github.com/dgate-io/dgate-api/pkg/util" "github.com/dop251/goja" ) diff --git a/pkg/modules/types/response_writer.go b/pkg/modules/types/response_writer.go index 37a446d..ee5d590 100644 --- a/pkg/modules/types/response_writer.go +++ b/pkg/modules/types/response_writer.go @@ -6,8 +6,8 @@ import ( "net/http" "time" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/util" ) type ResponseWriterWrapper struct { diff --git a/pkg/modules/types/upstream_response.go b/pkg/modules/types/upstream_response.go index 8de0d3e..9a3c952 100644 --- a/pkg/modules/types/upstream_response.go +++ b/pkg/modules/types/upstream_response.go @@ -9,8 +9,8 @@ import ( "net/url" "strconv" - "github.com/dgate-io/dgate/pkg/eventloop" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/pkg/eventloop" + "github.com/dgate-io/dgate-api/pkg/util" "github.com/dop251/goja" ) diff --git a/pkg/raftadmin/server_test.go b/pkg/raftadmin/server_test.go index 44621e6..d2199b3 100644 --- a/pkg/raftadmin/server_test.go +++ b/pkg/raftadmin/server_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/dgate-io/dgate/pkg/util/logadapter" + "github.com/dgate-io/dgate-api/pkg/util/logadapter" "github.com/hashicorp/raft" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" diff --git a/pkg/rafthttp/rafthttp_test.go b/pkg/rafthttp/rafthttp_test.go index b1cfe40..253cc9c 100644 --- a/pkg/rafthttp/rafthttp_test.go +++ b/pkg/rafthttp/rafthttp_test.go @@ -8,8 +8,8 @@ import ( "testing" "time" - "github.com/dgate-io/dgate/pkg/rafthttp" - "github.com/dgate-io/dgate/pkg/util/logadapter" + "github.com/dgate-io/dgate-api/pkg/rafthttp" + "github.com/dgate-io/dgate-api/pkg/util/logadapter" "github.com/hashicorp/raft" "github.com/stretchr/testify/mock" "go.uber.org/zap" diff --git a/pkg/resources/document_manager.go b/pkg/resources/document_manager.go index 51417c5..6b6060d 100644 --- a/pkg/resources/document_manager.go +++ b/pkg/resources/document_manager.go @@ -1,7 +1,7 @@ package resources import ( - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/spec" ) type DocumentManager interface { diff --git a/pkg/resources/resource_manager.go b/pkg/resources/resource_manager.go index 66bc76f..8e1439e 100644 --- a/pkg/resources/resource_manager.go +++ b/pkg/resources/resource_manager.go @@ -4,11 +4,11 @@ import ( "errors" "sort" - "github.com/dgate-io/dgate/pkg/spec" - "github.com/dgate-io/dgate/pkg/util/keylock" - "github.com/dgate-io/dgate/pkg/util/linker" - "github.com/dgate-io/dgate/pkg/util/safe" - "github.com/dgate-io/dgate/pkg/util/tree/avl" + "github.com/dgate-io/dgate-api/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/util/keylock" + "github.com/dgate-io/dgate-api/pkg/util/linker" + "github.com/dgate-io/dgate-api/pkg/util/safe" + "github.com/dgate-io/dgate-api/pkg/util/tree/avl" ) type avlTreeLinker[T any] avl.Tree[string, *linker.Link[string, safe.Ref[T]]] diff --git a/pkg/resources/resource_manager_test.go b/pkg/resources/resource_manager_test.go index 380b04c..4c6361d 100644 --- a/pkg/resources/resource_manager_test.go +++ b/pkg/resources/resource_manager_test.go @@ -5,8 +5,8 @@ import ( "strconv" "testing" - "github.com/dgate-io/dgate/pkg/resources" - "github.com/dgate-io/dgate/pkg/spec" + "github.com/dgate-io/dgate-api/pkg/resources" + "github.com/dgate-io/dgate-api/pkg/spec" "github.com/stretchr/testify/assert" ) diff --git a/pkg/scheduler/scheduler.go b/pkg/scheduler/scheduler.go index a891e1c..bc6e8d9 100644 --- a/pkg/scheduler/scheduler.go +++ b/pkg/scheduler/scheduler.go @@ -6,7 +6,7 @@ import ( "sync" "time" - "github.com/dgate-io/dgate/pkg/util/heap" + "github.com/dgate-io/dgate-api/pkg/util/heap" "go.uber.org/zap" ) diff --git a/pkg/scheduler/scheduler_test.go b/pkg/scheduler/scheduler_test.go index 7b2ca55..76a555e 100644 --- a/pkg/scheduler/scheduler_test.go +++ b/pkg/scheduler/scheduler_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/dgate-io/dgate/pkg/scheduler" + "github.com/dgate-io/dgate-api/pkg/scheduler" "github.com/stretchr/testify/assert" ) diff --git a/pkg/spec/transformers.go b/pkg/spec/transformers.go index 194da2a..970e427 100644 --- a/pkg/spec/transformers.go +++ b/pkg/spec/transformers.go @@ -5,7 +5,7 @@ import ( "encoding/json" "net/url" - "github.com/dgate-io/dgate/pkg/util/sliceutil" + "github.com/dgate-io/dgate-api/pkg/util/sliceutil" "github.com/santhosh-tekuri/jsonschema/v5" ) diff --git a/pkg/storage/mem_storage.go b/pkg/storage/mem_storage.go index f273c51..162f373 100644 --- a/pkg/storage/mem_storage.go +++ b/pkg/storage/mem_storage.go @@ -4,7 +4,7 @@ import ( "errors" "strings" - "github.com/dgate-io/dgate/pkg/util/tree/avl" + "github.com/dgate-io/dgate-api/pkg/util/tree/avl" "go.uber.org/zap" ) diff --git a/pkg/typescript/typescript_test.go b/pkg/typescript/typescript_test.go index a262fc7..968ec30 100644 --- a/pkg/typescript/typescript_test.go +++ b/pkg/typescript/typescript_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - "github.com/dgate-io/dgate/pkg/typescript" + "github.com/dgate-io/dgate-api/pkg/typescript" "github.com/dop251/goja" ) diff --git a/pkg/util/default_test.go b/pkg/util/default_test.go index dbc227d..b5da933 100644 --- a/pkg/util/default_test.go +++ b/pkg/util/default_test.go @@ -3,7 +3,7 @@ package util_test import ( "testing" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/pkg/util" ) func TestDefault(t *testing.T) { diff --git a/pkg/util/heap/heap_test.go b/pkg/util/heap/heap_test.go index 8442547..6d08430 100644 --- a/pkg/util/heap/heap_test.go +++ b/pkg/util/heap/heap_test.go @@ -3,7 +3,7 @@ package heap_test import ( "testing" - "github.com/dgate-io/dgate/pkg/util/heap" + "github.com/dgate-io/dgate-api/pkg/util/heap" "github.com/stretchr/testify/assert" ) diff --git a/pkg/util/http_test.go b/pkg/util/http_test.go index 0073bfc..02bf6bd 100644 --- a/pkg/util/http_test.go +++ b/pkg/util/http_test.go @@ -5,7 +5,7 @@ import ( "net/http" "testing" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/pkg/util" "github.com/stretchr/testify/assert" ) diff --git a/pkg/util/iplist/iplist.go b/pkg/util/iplist/iplist.go index fb5da35..952f739 100644 --- a/pkg/util/iplist/iplist.go +++ b/pkg/util/iplist/iplist.go @@ -5,7 +5,7 @@ import ( "fmt" "net" - "github.com/dgate-io/dgate/pkg/util/linkedlist" + "github.com/dgate-io/dgate-api/pkg/util/linkedlist" ) type IPList struct { diff --git a/pkg/util/iplist/iplist_test.go b/pkg/util/iplist/iplist_test.go index e7b1acb..c797b49 100644 --- a/pkg/util/iplist/iplist_test.go +++ b/pkg/util/iplist/iplist_test.go @@ -5,7 +5,7 @@ import ( "net" "testing" - "github.com/dgate-io/dgate/pkg/util/iplist" + "github.com/dgate-io/dgate-api/pkg/util/iplist" "github.com/stretchr/testify/assert" ) diff --git a/pkg/util/linkedlist/linkedlist_sort_test.go b/pkg/util/linkedlist/linkedlist_sort_test.go index d7f16b7..cbb2227 100644 --- a/pkg/util/linkedlist/linkedlist_sort_test.go +++ b/pkg/util/linkedlist/linkedlist_sort_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/dgate-io/dgate/pkg/util/linkedlist" + "github.com/dgate-io/dgate-api/pkg/util/linkedlist" ) func TestMergeSortLinkedListRecursive(t *testing.T) { diff --git a/pkg/util/linkedlist/linkedlist_test.go b/pkg/util/linkedlist/linkedlist_test.go index 490a054..e345262 100644 --- a/pkg/util/linkedlist/linkedlist_test.go +++ b/pkg/util/linkedlist/linkedlist_test.go @@ -3,7 +3,7 @@ package linkedlist_test import ( "testing" - "github.com/dgate-io/dgate/pkg/util/linkedlist" + "github.com/dgate-io/dgate-api/pkg/util/linkedlist" "github.com/stretchr/testify/assert" ) diff --git a/pkg/util/linker/linker.go b/pkg/util/linker/linker.go index 4ff3b69..cda78d0 100644 --- a/pkg/util/linker/linker.go +++ b/pkg/util/linker/linker.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" - "github.com/dgate-io/dgate/pkg/util/safe" - "github.com/dgate-io/dgate/pkg/util/tree/avl" + "github.com/dgate-io/dgate-api/pkg/util/safe" + "github.com/dgate-io/dgate-api/pkg/util/tree/avl" ) type kv[T, U any] struct { diff --git a/pkg/util/linker/linker_test.go b/pkg/util/linker/linker_test.go index f875ae3..c29a299 100644 --- a/pkg/util/linker/linker_test.go +++ b/pkg/util/linker/linker_test.go @@ -3,7 +3,7 @@ package linker_test import ( "testing" - "github.com/dgate-io/dgate/pkg/util/linker" + "github.com/dgate-io/dgate-api/pkg/util/linker" "github.com/stretchr/testify/assert" ) diff --git a/pkg/util/parse_test.go b/pkg/util/parse_test.go index 74cdf10..dfb7db0 100644 --- a/pkg/util/parse_test.go +++ b/pkg/util/parse_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/dgate-io/dgate/pkg/util" + "github.com/dgate-io/dgate-api/pkg/util" "github.com/stretchr/testify/assert" ) diff --git a/pkg/util/queue/queue_test.go b/pkg/util/queue/queue_test.go index f38bfd9..a2bbba2 100644 --- a/pkg/util/queue/queue_test.go +++ b/pkg/util/queue/queue_test.go @@ -3,7 +3,7 @@ package queue_test import ( "testing" - "github.com/dgate-io/dgate/pkg/util/queue" + "github.com/dgate-io/dgate-api/pkg/util/queue" "github.com/stretchr/testify/assert" ) diff --git a/pkg/util/safe/ref_test.go b/pkg/util/safe/ref_test.go index 97ee49b..0cfb589 100644 --- a/pkg/util/safe/ref_test.go +++ b/pkg/util/safe/ref_test.go @@ -3,7 +3,7 @@ package safe_test import ( "testing" - "github.com/dgate-io/dgate/pkg/util/safe" + "github.com/dgate-io/dgate-api/pkg/util/safe" ) type test struct { diff --git a/pkg/util/sliceutil/slice_test.go b/pkg/util/sliceutil/slice_test.go index 91b7858..6881ed8 100644 --- a/pkg/util/sliceutil/slice_test.go +++ b/pkg/util/sliceutil/slice_test.go @@ -3,7 +3,7 @@ package sliceutil_test import ( "testing" - "github.com/dgate-io/dgate/pkg/util/sliceutil" + "github.com/dgate-io/dgate-api/pkg/util/sliceutil" ) func TestBinarySearch(t *testing.T) { diff --git a/pkg/util/tree/avl/avl_test.go b/pkg/util/tree/avl/avl_test.go index dc98a98..aa7766e 100644 --- a/pkg/util/tree/avl/avl_test.go +++ b/pkg/util/tree/avl/avl_test.go @@ -4,7 +4,7 @@ import ( "math/rand" "testing" - "github.com/dgate-io/dgate/pkg/util/tree/avl" + "github.com/dgate-io/dgate-api/pkg/util/tree/avl" ) // Test AVL Tree Insertion