Package Profiling

- new package to use/consume CPU / MEM pprof root package
- create a file on same location as runable binary to store profile

Package HTTPClient
- add message function called on each Dial/DialContext call function
- function message can be nil

Package Server
- add generic function for recover message / catching
- implement this recovring function into runner StartStop & Ticker

Package Logger:
- implement generic recovering function into hook
- fix bug if instance is an invalid instance of fields or entry
This commit is contained in:
Nicolas JUHEL
2024-02-28 12:58:31 +01:00
parent 9b350cb499
commit a9a4d1e7c2
19 changed files with 345 additions and 36 deletions

View File

@@ -73,7 +73,7 @@ func initDNSMapper() htcdns.DNSMapper {
TimeoutIdleConn: libdur.ParseDuration(30 * time.Second),
TimeoutResponseHeader: 0,
},
}, nil)
}, nil, nil)
}
func DefaultDNSMapper() htcdns.DNSMapper {