Skip to content

Commit

Permalink
feat: upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
limes-cloud committed Jun 27, 2024
1 parent ea43b6b commit 8f5c5c1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions cmd/resource/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/go-kratos/kratos/v2"
"github.com/go-kratos/kratos/v2/transport/grpc"
"github.com/go-kratos/kratos/v2/transport/http"
"github.com/limes-cloud/configure/api/configure/client"
"github.com/limes-cloud/kratosx"
"github.com/limes-cloud/kratosx/config"
"github.com/limes-cloud/kratosx/pkg/filex"
Expand All @@ -21,6 +22,7 @@ import (

func main() {
app := kratosx.New(
kratosx.Config(client.NewFromEnv()),
kratosx.RegistrarServer(RegisterServer),
kratosx.Options(kratos.AfterStart(func(ctx context.Context) error {
kt := kratosx.MustContext(ctx)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ require (
github.com/go-kratos/kratos/v2 v2.7.3
github.com/go-redis/redis/v8 v8.11.5
github.com/google/uuid v1.6.0
github.com/limes-cloud/configure v1.0.35
github.com/limes-cloud/kratosx v1.0.44
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
github.com/tencentyun/cos-go-sdk-v5 v0.7.49
Expand Down Expand Up @@ -50,7 +51,6 @@ require (
github.com/go-logr/logr v1.4.1 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/go-playground/assert/v2 v2.2.0 // indirect
github.com/go-playground/form/v4 v4.2.1 // indirect
github.com/go-redsync/redsync/v4 v4.12.1 // indirect
github.com/go-resty/resty/v2 v2.12.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1564,6 +1564,8 @@ github.com/lestrrat-go/option v1.0.0/go.mod h1:5ZHFbivi4xwXxhxY9XHDe2FHo6/Z7WWmt
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
github.com/lib/pq v1.10.6 h1:jbk+ZieJ0D7EVGJYpL9QTz7/YW6UHbmdnZWYyK5cdBs=
github.com/lib/pq v1.10.6/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/limes-cloud/configure v1.0.35 h1:GS3VqDhSTWLH+A7CC2A+2260+8p8sAqhEGE/3c0mQks=
github.com/limes-cloud/configure v1.0.35/go.mod h1:Yf6rQdxJhbHbUeax4Ix4WrC1HlZNN06Cs5gDerjktCQ=
github.com/limes-cloud/kratosx v1.0.44 h1:tQhWL6um+3P41y7XMHvJ8L8IJnH8DeXs5LzWre+cqAY=
github.com/limes-cloud/kratosx v1.0.44/go.mod h1:b+EkbsoRm0w6261odWdPmTUyL5F5NMiA19OZpHQjaM4=
github.com/linuxkit/virtsock v0.0.0-20201010232012-f8cee7dfc7a3/go.mod h1:3r6x7q95whyfWQpmGZTu3gk3v2YkMi05HEzl7Tf7YEo=
Expand Down
3 changes: 0 additions & 3 deletions internal/conf/conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ business:
endpoint: xxx
id: xxx
secret: xxx
bucket: resource-1323879016
region: ap-nanjing
# serverUrl: http://cos.qlime.cn
serverUrl: http://127.0.0.1:7003/resource/api/v1/static
localDir: static
temporaryExpire: 600s
Expand Down
Binary file modified static/export/37a6259cc0c1dae299a7866489dff0bd.zip
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8f5c5c1

Please sign in to comment.