-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update configuration and remove dead codes
- Loading branch information
1 parent
02f745b
commit da3e3bb
Showing
9 changed files
with
52 additions
and
17 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
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
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,17 +1,17 @@ | ||
package config | ||
|
||
type Config struct { | ||
Trace Trace `koanf:"trace"` | ||
Metric Metric `koanf:"metric"` | ||
Trace Trace `json:"trace,omitempty" koanf:"trace"` | ||
Metric Metric `json:"metric,omitempty" koanf:"metric"` | ||
} | ||
|
||
type Trace struct { | ||
Enabled bool `koanf:"enabled"` | ||
Ratio float64 `koanf:"ratio"` | ||
Endpoint string `koanf:"endpoint"` | ||
Enabled bool `json:"enabled,omitempty" koanf:"enabled"` | ||
Ratio float64 `json:"ratio,omitempty" koanf:"ratio"` | ||
Endpoint string `json:"endpoint,omitempty" koanf:"endpoint"` | ||
} | ||
|
||
type Metric struct { | ||
Address string `koanf:"address"` | ||
Enabled bool `koanf:"enabled"` | ||
Address string `json:"address,omitempty" koanf:"address"` | ||
Enabled bool `json:"enabled,omitempty" koanf:"enabled"` | ||
} |
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