-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: file based configuration reloading support, relocate http
This change moves the http listener utility for the *http.Server out of the api package. In addition we implement http.Handler on the *api.API object so we may wrap it with the recently committed *reloader.AtomicHandler. I've also removed the sync.WaitGroup that previously coordinated shutdown with main.go. A single environment based configuration is still used at startup, but these changes set us up to add config reloads in an upcoming commit. Note: I added a sync.WaitGroup to serve, this means the maximum shutdown time is now time.Minute*2. More intrusive options to fix this exist if the team thinks it's important.
- Loading branch information
Chris Stockton
committed
Sep 4, 2024
1 parent
b54250e
commit a03ae72
Showing
5 changed files
with
49 additions
and
77 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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