Skip to content

Commit

Permalink
refactor: use common suite
Browse files Browse the repository at this point in the history
Signed-off-by: rogerogers <[email protected]>
  • Loading branch information
rogerogers committed Apr 23, 2024
1 parent 0075437 commit e5265d5
Show file tree
Hide file tree
Showing 50 changed files with 1,987 additions and 1,436 deletions.
3 changes: 2 additions & 1 deletion gomall/app/cart/biz/dal/mysql/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ import (
"fmt"
"os"

"github.com/cloudwego/biz-demo/gomall/common/mtl"

"github.com/cloudwego/biz-demo/gomall/app/cart/biz/model"
"github.com/cloudwego/biz-demo/gomall/app/cart/conf"
"github.com/cloudwego/biz-demo/gomall/app/cart/infra/mtl"
"gorm.io/driver/mysql"
"gorm.io/gorm"
"gorm.io/plugin/opentelemetry/tracing"
Expand Down
32 changes: 20 additions & 12 deletions gomall/app/cart/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,19 @@ module github.com/cloudwego/biz-demo/gomall/app/cart

go 1.21

replace github.com/apache/thrift => github.com/apache/thrift v0.13.0

replace github.com/cloudwego/biz-demo/gomall/rpc_gen => ../../rpc_gen
replace (
github.com/apache/thrift => github.com/apache/thrift v0.13.0
github.com/cloudwego/biz-demo/gomall/common => ../../common
github.com/cloudwego/biz-demo/gomall/rpc_gen => ../../rpc_gen
)

require (
github.com/cloudwego/biz-demo/gomall/common v0.0.0-00010101000000-000000000000
github.com/cloudwego/biz-demo/gomall/rpc_gen v0.0.0-00010101000000-000000000000
github.com/cloudwego/kitex v0.8.0
github.com/joho/godotenv v1.5.1
github.com/kitex-contrib/obs-opentelemetry v0.2.6
github.com/kitex-contrib/obs-opentelemetry/logging/zap v0.0.0-20240305123358-828863cc5853
github.com/kitex-contrib/registry-consul v0.0.0-20230406075225-7d341f036654
github.com/kr/pretty v0.3.1
github.com/prometheus/client_golang v1.19.0
github.com/redis/go-redis/v9 v9.3.1
go.opentelemetry.io/otel v1.25.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.25.0
go.opentelemetry.io/otel/sdk v1.25.0
go.uber.org/zap v1.27.0
gopkg.in/natefinch/lumberjack.v2 v2.0.0
gopkg.in/validator.v2 v2.0.1
gopkg.in/yaml.v2 v2.4.0
Expand All @@ -39,10 +34,12 @@ require (
github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect
github.com/chenzhuoyu/iasm v0.9.1 // indirect
github.com/choleraehyq/pid v0.0.17 // indirect
github.com/cloudwego/biz-demo/gomall/app/checkout v0.0.0-20240419092035-96ff37f3792b // indirect
github.com/cloudwego/configmanager v0.2.0 // indirect
github.com/cloudwego/dynamicgo v0.1.6 // indirect
github.com/cloudwego/fastpb v0.0.4 // indirect
github.com/cloudwego/frugal v0.1.12 // indirect
github.com/cloudwego/hertz v0.7.3 // indirect
github.com/cloudwego/localsession v0.0.2 // indirect
github.com/cloudwego/netpoll v0.5.1 // indirect
github.com/cloudwego/thriftgo v0.3.3 // indirect
Expand All @@ -63,14 +60,19 @@ require (
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/golang-lru v1.0.2 // indirect
github.com/hashicorp/serf v0.10.1 // indirect
github.com/hertz-contrib/obs-opentelemetry/provider v0.2.3 // indirect
github.com/iancoleman/strcase v0.3.0 // indirect
github.com/jhump/protoreflect v1.8.2 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/kitex-contrib/config-consul v0.1.2 // indirect
github.com/kitex-contrib/monitor-prometheus v0.2.0 // indirect
github.com/kitex-contrib/obs-opentelemetry v0.2.6 // indirect
github.com/kitex-contrib/obs-opentelemetry/logging/zap v0.0.0-20240305123358-828863cc5853 // indirect
github.com/kitex-contrib/registry-consul v0.0.0-20230406075225-7d341f036654 // indirect
github.com/klauspost/cpuid/v2 v2.2.6 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand All @@ -82,6 +84,7 @@ require (
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/oleiade/lane v1.0.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_golang v1.19.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.48.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
Expand All @@ -94,14 +97,18 @@ require (
go.opentelemetry.io/contrib/instrumentation/runtime v0.45.0 // indirect
go.opentelemetry.io/contrib/propagators/b3 v1.20.0 // indirect
go.opentelemetry.io/contrib/propagators/ot v1.20.0 // indirect
go.opentelemetry.io/otel v1.25.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.42.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.42.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.25.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.25.0 // indirect
go.opentelemetry.io/otel/metric v1.25.0 // indirect
go.opentelemetry.io/otel/sdk v1.25.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.19.0 // indirect
go.opentelemetry.io/otel/trace v1.25.0 // indirect
go.opentelemetry.io/proto/otlp v1.1.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/arch v0.6.0 // indirect
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 // indirect
golang.org/x/net v0.23.0 // indirect
Expand All @@ -114,4 +121,5 @@ require (
google.golang.org/grpc v1.63.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)
Loading

0 comments on commit e5265d5

Please sign in to comment.