aboutsummaryrefslogtreecommitdiff
path: root/forged/internal/unsorted/config.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-05-02 17:57:56 +0800
committerRunxi Yu <me@runxiyu.org>2025-05-02 17:57:56 +0800
commit1344fc974d77d890d5b1c9721538e0911854fc0c (patch)
treeab0ad47e77a01c9234ed3048703553c4b075c441 /forged/internal/unsorted/config.go
parentgit2c: Some perror (diff)
downloadforge-1344fc974d77d890d5b1c9721538e0911854fc0c.tar.gz
forge-1344fc974d77d890d5b1c9721538e0911854fc0c.tar.zst
forge-1344fc974d77d890d5b1c9721538e0911854fc0c.zip
Add pprof endpointHEADmaster
Diffstat (limited to 'forged/internal/unsorted/config.go')
-rw-r--r--forged/internal/unsorted/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/forged/internal/unsorted/config.go b/forged/internal/unsorted/config.go
index 9eae13b..9f07480 100644
--- a/forged/internal/unsorted/config.go
+++ b/forged/internal/unsorted/config.go
@@ -55,6 +55,10 @@ type Config struct {
Type string `scfg:"type"`
Conn string `scfg:"conn"`
} `scfg:"db"`
+ Pprof struct {
+ Net string `scfg:"net"`
+ Addr string `scfg:"addr"`
+ } `scfg:"pprof"`
}
// LoadConfig loads a configuration file from the specified path and unmarshals