-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add support for uuid request id. Fixes #31 * Map settings request id format value to http config and fix default values * Fix imports and formatting * Fix formatting * Add request-id-format flag
- Loading branch information
1 parent
7090273
commit 9267902
Showing
13 changed files
with
824 additions
and
13 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
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
package config | ||
|
||
type Settings struct { | ||
DefaultPort int `hcl:"default_port,optional"` | ||
HealthPath string `hcl:"health_path,optional"` | ||
LogFormat string `hcl:"log_format,optional"` | ||
XForwardedHost bool `hcl:"xfh,optional"` | ||
DefaultPort int `hcl:"default_port,optional"` | ||
HealthPath string `hcl:"health_path,optional"` | ||
LogFormat string `hcl:"log_format,optional"` | ||
XForwardedHost bool `hcl:"xfh,optional"` | ||
RequestIDFormat string `hcl:"request_id_format,optional"` | ||
} |
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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.