Skip to content

Commit fcd9b1c

Browse files
committed
refactoring: use go-sdk
Signed-off-by: Viktor Login <batazor111@gmail.com>
1 parent 559da2c commit fcd9b1c

File tree

72 files changed

+131
-1643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+131
-1643
lines changed

boundaries/api/api-gateway/domain/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
sitemap_rpc "buf.build/gen/go/shortlink-org/shortlink-link-link/grpc/go/infrastructure/rpc/sitemap/v1/sitemapv1grpc"
1313
"go.opentelemetry.io/otel/trace"
1414

15+
http_server "github.com/shortlink-org/go-sdk/http/server"
1516
"github.com/shortlink-org/go-sdk/logger"
16-
http_server "github.com/shortlink-org/shortlink/pkg/http/server"
1717
)
1818

1919
// API - general describe of API

boundaries/api/api-gateway/gateways/cloudevents/di/wire.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ import (
2121
"github.com/shortlink-org/go-sdk/config"
2222
rpc "github.com/shortlink-org/go-sdk/grpc"
2323
"github.com/shortlink-org/go-sdk/logger"
24+
"github.com/shortlink-org/go-sdk/observability/metrics"
2425
"github.com/shortlink-org/shortlink/boundaries/api/api-gateway/domain"
2526
"github.com/shortlink-org/shortlink/boundaries/api/api-gateway/gateways/cloudevents/infrastructure/server"
2627
"github.com/shortlink-org/shortlink/pkg/di"
2728
"github.com/shortlink-org/shortlink/pkg/di/pkg/permission"
2829
"github.com/shortlink-org/shortlink/pkg/di/pkg/profiling"
29-
"github.com/shortlink-org/shortlink/pkg/observability/metrics"
3030
)
3131

3232
type APIService struct {

boundaries/api/api-gateway/gateways/cloudevents/di/wire_gen.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

boundaries/api/api-gateway/gateways/cloudevents/infrastructure/server/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ import (
1414
link_rpc "buf.build/gen/go/shortlink-org/shortlink-link-link/grpc/go/infrastructure/rpc/link/v1/linkv1grpc"
1515
sitemap_rpc "buf.build/gen/go/shortlink-org/shortlink-link-link/grpc/go/infrastructure/rpc/sitemap/v1/sitemapv1grpc"
1616

17+
http_client "github.com/shortlink-org/go-sdk/http/client"
18+
http_server "github.com/shortlink-org/go-sdk/http/server"
1719
"github.com/shortlink-org/go-sdk/logger"
1820
"github.com/shortlink-org/shortlink/boundaries/api/api-gateway/gateways/cloudevents/infrastructure/server/handlers"
19-
http_client "github.com/shortlink-org/shortlink/pkg/http/client"
20-
http_server "github.com/shortlink-org/shortlink/pkg/http/server"
2121
)
2222

2323
// API ...

boundaries/api/api-gateway/gateways/cloudevents/infrastructure/server/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import (
1111
link_rpc "buf.build/gen/go/shortlink-org/shortlink-link-link/grpc/go/infrastructure/rpc/link/v1/linkv1grpc"
1212
sitemap_rpc "buf.build/gen/go/shortlink-org/shortlink-link-link/grpc/go/infrastructure/rpc/sitemap/v1/sitemapv1grpc"
1313

14+
http_server "github.com/shortlink-org/go-sdk/http/server"
1415
"github.com/shortlink-org/go-sdk/logger"
16+
"github.com/shortlink-org/go-sdk/observability/metrics"
1517
"github.com/shortlink-org/shortlink/boundaries/api/api-gateway/domain"
16-
http_server "github.com/shortlink-org/shortlink/pkg/http/server"
17-
"github.com/shortlink-org/shortlink/pkg/observability/metrics"
1818
)
1919

2020
// RunAPIServer - start HTTP-server

boundaries/api/api-gateway/gateways/graphql/di/wire.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ import (
2121
"github.com/shortlink-org/go-sdk/config"
2222
rpc "github.com/shortlink-org/go-sdk/grpc"
2323
"github.com/shortlink-org/go-sdk/logger"
24+
"github.com/shortlink-org/go-sdk/observability/metrics"
2425
"github.com/shortlink-org/shortlink/boundaries/api/api-gateway/gateways/graphql/infrastructure/server"
2526
"github.com/shortlink-org/shortlink/pkg/di"
2627
"github.com/shortlink-org/shortlink/pkg/di/pkg/permission"
2728
"github.com/shortlink-org/shortlink/pkg/di/pkg/profiling"
28-
"github.com/shortlink-org/shortlink/pkg/observability/metrics"
2929
)
3030

3131
type APIService struct {

boundaries/api/api-gateway/gateways/graphql/di/wire_gen.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

boundaries/api/api-gateway/gateways/graphql/infrastructure/server/graphql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ import (
2020
link_rpc "buf.build/gen/go/shortlink-org/shortlink-link-link/grpc/go/infrastructure/rpc/link/v1/linkv1grpc"
2121
sitemap_rpc "buf.build/gen/go/shortlink-org/shortlink-link-link/grpc/go/infrastructure/rpc/sitemap/v1/sitemapv1grpc"
2222

23+
http_server "github.com/shortlink-org/go-sdk/http/server"
2324
"github.com/shortlink-org/go-sdk/logger"
2425
"github.com/shortlink-org/shortlink/boundaries/api/api-gateway/gateways/graphql/infrastructure/server/resolver"
2526
"github.com/shortlink-org/shortlink/pkg/db"
26-
http_server "github.com/shortlink-org/shortlink/pkg/http/server"
2727
)
2828

2929
//go:embed schema/*.graphqls

boundaries/api/api-gateway/gateways/graphql/infrastructure/server/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"go.opentelemetry.io/otel/trace"
88
"golang.org/x/sync/errgroup"
99

10-
http_server "github.com/shortlink-org/shortlink/pkg/http/server"
11-
"github.com/shortlink-org/shortlink/pkg/observability/metrics"
10+
http_server "github.com/shortlink-org/go-sdk/http/server"
11+
"github.com/shortlink-org/go-sdk/observability/metrics"
1212

1313
link_cqrs "buf.build/gen/go/shortlink-org/shortlink-link-link/grpc/go/infrastructure/rpc/cqrs/link/v1/linkv1grpc"
1414
link_rpc "buf.build/gen/go/shortlink-org/shortlink-link-link/grpc/go/infrastructure/rpc/link/v1/linkv1grpc"

boundaries/api/api-gateway/gateways/grpc-web/di/wire.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ import (
2222
"github.com/shortlink-org/go-sdk/config"
2323
rpc "github.com/shortlink-org/go-sdk/grpc"
2424
"github.com/shortlink-org/go-sdk/logger"
25+
"github.com/shortlink-org/go-sdk/observability/metrics"
2526
"github.com/shortlink-org/shortlink/boundaries/api/api-gateway/gateways/grpc-web/infrastructure/server"
2627
api_application "github.com/shortlink-org/shortlink/boundaries/api/api-gateway/gateways/grpc-web/infrastructure/server/v1"
2728
"github.com/shortlink-org/shortlink/pkg/di"
2829
"github.com/shortlink-org/shortlink/pkg/di/pkg/permission"
2930
"github.com/shortlink-org/shortlink/pkg/di/pkg/profiling"
30-
"github.com/shortlink-org/shortlink/pkg/observability/metrics"
3131
)
3232

3333
type APIService struct {

0 commit comments

Comments
 (0)