feat: add optional http server config params

This commit was merged in pull request #11.
This commit is contained in:
Levente Nas
2025-09-15 13:04:21 -04:00
committed by Levente Batuska
parent 3d413a8605
commit a25edc65b7
3 changed files with 46 additions and 10 deletions

View File

@@ -9,6 +9,7 @@ import (
"time"
Testing "github.com/lbatuska/goutils/testing"
Type "github.com/lbatuska/goutils/type"
)
func setupServer(wg *sync.WaitGroup) {
@@ -23,7 +24,7 @@ func setupServer(wg *sync.WaitGroup) {
w.WriteHeader(200)
}))
simpleRouter.StartWithGracefulShutdown("0.0.0.0:8080")
simpleRouter.StartWithGracefulShutdown("0.0.0.0:8080", Type.None[ServerConfig]())
}
func sendKillSignal(wg *sync.WaitGroup) {