generated from go-kratos/kratos-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(helloworld): improve app initialization and config management
- Rename wireApp to buildApp for clarity - Add NewApp function for creating a new kratos App instance - Move config file to TOML format for better readability and structure - Remove unused pagination import in greeter.biz.go - Add absolute path resolution for config file path - Print config path and bootstrap config for debugging purposes
- Loading branch information
Showing
13 changed files
with
962 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[server.http] | ||
addr = "0.0.0.0:8000" | ||
timeout = "1s" | ||
|
||
[server.grpc] | ||
addr = "0.0.0.0:9000" | ||
timeout = "1s" | ||
|
||
[data.database] | ||
driver = "mysql" | ||
source = "root:root@tcp(127.0.0.1:3306)/test?parseTime=True&loc=Local" | ||
|
||
[data.redis] | ||
addr = "127.0.0.1:6379" | ||
read_timeout = "0.2s" | ||
write_timeout = "0.2s" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package internal | ||
|
||
//generate config proto file | ||
//go:generate protoc -I. -I../third_party --go_out=../ --go-http_out=../ --go-grpc_out=../ ./mods/helloworld/conf/*.proto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.