This commit is contained in:
Piotr Biernat 2024-12-06 14:18:01 +01:00
parent 5feb115f62
commit 5b87c14d65
16 changed files with 40 additions and 40 deletions

View File

@ -9,10 +9,10 @@ import (
"github.com/go-pg/migrations/v8"
"github.com/go-pg/pg/v10"
"git.pbiernat.io/egommerce/go-api-pkg/fluentd"
"git.ego.cloudns.be/egommerce/go-api-pkg/fluentd"
cnf "git.pbiernat.io/egommerce/catalog-service/internal/server"
baseCnf "git.pbiernat.io/egommerce/go-api-pkg/config"
cnf "git.ego.cloudns.be/egommerce/catalog-service/internal/server"
baseCnf "git.ego.cloudns.be/egommerce/go-api-pkg/config"
)
const (

View File

@ -5,10 +5,10 @@ import (
"log"
"os"
cnf "git.pbiernat.io/egommerce/go-api-pkg/config"
cnf "git.ego.cloudns.be/egommerce/go-api-pkg/config"
"git.pbiernat.io/egommerce/catalog-service/internal/app"
"git.pbiernat.io/egommerce/catalog-service/internal/server"
"git.ego.cloudns.be/egommerce/catalog-service/internal/app"
"git.ego.cloudns.be/egommerce/catalog-service/internal/server"
)
func main() {

View File

@ -5,10 +5,10 @@ import (
"log"
"os"
cnf "git.pbiernat.io/egommerce/go-api-pkg/config"
cnf "git.ego.cloudns.be/egommerce/go-api-pkg/config"
"git.pbiernat.io/egommerce/catalog-service/internal/app"
"git.pbiernat.io/egommerce/catalog-service/internal/worker"
"git.ego.cloudns.be/egommerce/catalog-service/internal/app"
"git.ego.cloudns.be/egommerce/catalog-service/internal/worker"
)
func main() {

View File

@ -1,10 +1,8 @@
module git.pbiernat.io/egommerce/catalog-service
module git.ego.cloudns.be/egommerce/catalog-service
go 1.18
require (
git.pbiernat.io/egommerce/api-entities v0.2.3
git.pbiernat.io/egommerce/go-api-pkg v0.3.28
github.com/georgysavva/scany/v2 v2.0.0
github.com/go-pg/migrations/v8 v8.1.0
github.com/go-pg/pg/v10 v10.11.1
@ -16,6 +14,8 @@ require (
)
require (
git.ego.cloudns.be/egommerce/api-entities v0.2.5 // indirect
git.ego.cloudns.be/egommerce/go-api-pkg v0.3.36 // indirect
github.com/DataDog/datadog-go v3.2.0+incompatible // indirect
github.com/andybalholm/brotli v1.1.0 // indirect
github.com/armon/go-metrics v0.4.1 // indirect

View File

@ -35,10 +35,10 @@ cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohl
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
git.pbiernat.io/egommerce/api-entities v0.2.3 h1:mR6EYfZkAzh4teydb7KXDBWoxwVW3qasnmmH5J3mnas=
git.pbiernat.io/egommerce/api-entities v0.2.3/go.mod h1:INXAG5x4+i+vNwg1NpfPHiDW8nY1kn1K7pgLOtX+/I0=
git.pbiernat.io/egommerce/go-api-pkg v0.3.28 h1:PiqwprMSJxtK/nLUiidfBQUHz2n6XIpWZysWNfby4kw=
git.pbiernat.io/egommerce/go-api-pkg v0.3.28/go.mod h1:XIy2mmvRNIzQmYIUAcDZafhRPxTQFS2HDmsK7ZQ6980=
git.ego.cloudns.be/egommerce/api-entities v0.2.5 h1:A7KQNXLB3l0ck7/R6MzyU33H490feZOlEodnU6bC+DA=
git.ego.cloudns.be/egommerce/api-entities v0.2.5/go.mod h1:xr9mW9DKq+oNO4cMqtqY3VCAVCn6iImw4MqNj51dTFc=
git.ego.cloudns.be/egommerce/go-api-pkg v0.3.36 h1:RfCAifTf2VIJEOgA6to1Z7ObTo9HrrICdI64Iu5yALI=
git.ego.cloudns.be/egommerce/go-api-pkg v0.3.36/go.mod h1:ztg4ai8bw6gRjD4Sln35gUz0DLMcRXDgYViidjpx6BQ=
github.com/Azure/azure-sdk-for-go v44.0.0+incompatible h1:e82Yv2HNpS0kuyeCrV29OPKvEiqfs2/uJHic3/3iKdg=
github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs=
github.com/Azure/go-autorest/autorest v0.11.18 h1:90Y4srNYrwOtAgVo3ndrQkTYn6kf1Eg/AjTFJ8Is2aM=

View File

@ -9,10 +9,10 @@ import (
redis "github.com/go-redis/redis/v8"
amqp "github.com/rabbitmq/amqp091-go"
"git.pbiernat.io/egommerce/go-api-pkg/consul"
"git.pbiernat.io/egommerce/go-api-pkg/fluentd"
"git.ego.cloudns.be/egommerce/go-api-pkg/consul"
"git.ego.cloudns.be/egommerce/go-api-pkg/fluentd"
db "git.pbiernat.io/egommerce/catalog-service/pkg/database"
db "git.ego.cloudns.be/egommerce/catalog-service/pkg/database"
)
type (

View File

@ -6,10 +6,10 @@ import (
"github.com/gofiber/fiber/v2"
"github.com/google/uuid"
def "git.pbiernat.io/egommerce/api-entities/http"
def "git.ego.cloudns.be/egommerce/api-entities/http"
"git.pbiernat.io/egommerce/catalog-service/internal/service"
"git.pbiernat.io/egommerce/catalog-service/internal/ui"
"git.ego.cloudns.be/egommerce/catalog-service/internal/service"
"git.ego.cloudns.be/egommerce/catalog-service/internal/ui"
)
func (s *Server) GetProductListHandler(c *fiber.Ctx) error {

View File

@ -6,7 +6,7 @@ import (
"os"
"time"
cnf "git.pbiernat.io/egommerce/go-api-pkg/config"
cnf "git.ego.cloudns.be/egommerce/go-api-pkg/config"
)
const (

View File

@ -1,7 +1,7 @@
package server
import (
def "git.pbiernat.io/egommerce/api-entities/http"
def "git.ego.cloudns.be/egommerce/api-entities/http"
"github.com/gofiber/fiber/v2"
)

View File

@ -3,7 +3,7 @@ package server
import (
"github.com/gofiber/fiber/v2"
"git.pbiernat.io/egommerce/go-api-pkg/fluentd"
"git.ego.cloudns.be/egommerce/go-api-pkg/fluentd"
)
// "github.com/gofiber/fiber/v2"

View File

@ -11,9 +11,9 @@ import (
"github.com/jackc/pgx/v5/pgxpool"
amqp "github.com/rabbitmq/amqp091-go"
"git.pbiernat.io/egommerce/api-entities/http"
"git.pbiernat.io/egommerce/go-api-pkg/consul"
"git.pbiernat.io/egommerce/go-api-pkg/fluentd"
"git.ego.cloudns.be/egommerce/api-entities/http"
"git.ego.cloudns.be/egommerce/go-api-pkg/consul"
"git.ego.cloudns.be/egommerce/go-api-pkg/fluentd"
)
type (

View File

@ -3,11 +3,11 @@ package service
import (
"context"
"git.pbiernat.io/egommerce/api-entities/model"
"git.pbiernat.io/egommerce/catalog-service/internal/event"
"git.ego.cloudns.be/egommerce/api-entities/model"
"git.ego.cloudns.be/egommerce/catalog-service/internal/event"
"git.pbiernat.io/egommerce/go-api-pkg/fluentd"
"git.pbiernat.io/egommerce/go-api-pkg/rabbitmq"
"git.ego.cloudns.be/egommerce/go-api-pkg/fluentd"
"git.ego.cloudns.be/egommerce/go-api-pkg/rabbitmq"
"github.com/georgysavva/scany/v2/pgxscan"
"github.com/jackc/pgx/v5/pgxpool"

View File

@ -4,8 +4,8 @@ import (
"context"
"time"
def "git.pbiernat.io/egommerce/api-entities/http"
"git.pbiernat.io/egommerce/catalog-service/internal/service"
def "git.ego.cloudns.be/egommerce/api-entities/http"
"git.ego.cloudns.be/egommerce/catalog-service/internal/service"
)
func GetProductList(srv *service.CatalogService, categoryID int, reqID string) ([]def.GetProductResponse, error) {

View File

@ -1,7 +1,7 @@
package worker
import (
"git.pbiernat.io/egommerce/catalog-service/internal/service"
"git.ego.cloudns.be/egommerce/catalog-service/internal/service"
)
var (

View File

@ -5,7 +5,7 @@ import (
"net"
"os"
cnf "git.pbiernat.io/egommerce/go-api-pkg/config"
cnf "git.ego.cloudns.be/egommerce/go-api-pkg/config"
)
const (

View File

@ -10,11 +10,11 @@ import (
"github.com/jackc/pgx/v5/pgxpool"
amqp "github.com/rabbitmq/amqp091-go"
"git.pbiernat.io/egommerce/go-api-pkg/fluentd"
"git.pbiernat.io/egommerce/go-api-pkg/rabbitmq"
"git.ego.cloudns.be/egommerce/go-api-pkg/fluentd"
"git.ego.cloudns.be/egommerce/go-api-pkg/rabbitmq"
"git.pbiernat.io/egommerce/catalog-service/internal/event"
"git.pbiernat.io/egommerce/catalog-service/internal/service"
"git.ego.cloudns.be/egommerce/catalog-service/internal/event"
"git.ego.cloudns.be/egommerce/catalog-service/internal/service"
)
type (