refactor: improve route healthcheck

This commit is contained in:
Jonas Kaninda
2024-11-12 12:54:42 +01:00
parent e541d0066d
commit a99c40940e
2 changed files with 30 additions and 17 deletions

View File

@@ -20,6 +20,7 @@ package pkg
import (
"context"
"github.com/gorilla/mux"
"time"
)
type Config struct {
@@ -275,3 +276,10 @@ type JWTSecret struct {
ISS string `yaml:"iss"`
Secret string `yaml:"secret"`
}
// Health represents the health check content for a route
type Health struct {
URL string
TimeOut time.Duration
HealthyStatuses []int
}