feat(http): add healthcheck endpoints liveness and readiness (#240)

* feat(http): add liveness and readiness endpoints

* feat(http): improve unhealthy msg
This commit is contained in:
Ludvig Lundgren 2022-04-12 18:19:07 +02:00 committed by GitHub
parent 4b74a006c8
commit 2a3b5ce448
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 61 additions and 2 deletions

View file

@ -100,7 +100,7 @@ func main() {
errorChannel := make(chan error)
go func() {
httpServer := http.NewServer(cfg, serverEvents, version, commit, date, actionService, authService, downloadClientService, filterService, indexerService, ircService, notificationService, releaseService)
httpServer := http.NewServer(cfg, serverEvents, db, version, commit, date, actionService, authService, downloadClientService, filterService, indexerService, ircService, notificationService, releaseService)
errorChannel <- httpServer.Open()
}()