refactor: improve route healthcheck
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user