Skip to content

Commit

Permalink
feat: 1. upgrade go.mod; 2. regenerate proto; 3. refactor consul regi…
Browse files Browse the repository at this point in the history
…stry config.go
  • Loading branch information
tx7do committed Sep 14, 2023
1 parent 1487596 commit 6de157c
Show file tree
Hide file tree
Showing 71 changed files with 565 additions and 346 deletions.
6 changes: 5 additions & 1 deletion blog-backend/api/common/conf/registry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ message Registry {
message Consul {
string scheme = 1; // 网络样式
string address = 2; // 服务端地址
bool health_check = 3; // 健康检查
optional string data_center = 3; // 数据中心
optional google.protobuf.Duration timeout = 4; // 超时时间
optional bool heartbeat = 5; // 心跳检查
optional bool health_check = 6; // 健康检查
optional int32 health_check_interval = 7; // 健康检查时间间隔
}

// Etcd
Expand Down
2 changes: 2 additions & 0 deletions blog-backend/app/admin/service/configs/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ registry:
consul:
address: "localhost:8500"
scheme: "http"
heartbeat: false
health_check: false
health_check_interval: 5

etcd:
endpoints:
Expand Down
2 changes: 2 additions & 0 deletions blog-backend/app/core/service/configs/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ registry:
consul:
address: "localhost:8500"
scheme: "http"
heartbeat: false
health_check: false
health_check_interval: 5

etcd:
endpoints:
Expand Down
2 changes: 2 additions & 0 deletions blog-backend/app/front/service/configs/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ registry:
consul:
address: "localhost:8500"
scheme: "http"
heartbeat: false
health_check: false
health_check_interval: 5

etcd:
endpoints:
Expand Down
2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/admin/service/v1/admin_error.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_category.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_comment.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_link.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_link_http.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_menu.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_menu_http.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_photo.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_photo_http.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_post.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_post_http.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_system.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_system_http.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_tag.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_tag_http.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_user.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/admin/service/v1/i_user_http.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/comment/service/v1/comment.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/common/conf/bootstrap.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/common/conf/client.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/common/conf/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/common/conf/data.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/common/conf/logger.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blog-backend/gen/api/go/common/conf/middleware.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6de157c

Please sign in to comment.