feat(heartbeat): add heartbeat endpoint and logic for service health check

This commit is contained in:
Chang lue Tsen
2025-11-09 10:49:51 -05:00
parent 750a33cca2
commit 1172ecc2f1
5 changed files with 69 additions and 0 deletions
+6
View File
@@ -1158,6 +1158,12 @@ type HasMigrateSeverNodeResponse struct {
HasMigrate bool `json:"has_migrate"`
}
type HeartbeatResponse struct {
Status bool `json:"status"`
Message string `json:"message,omitempty"`
Timestamp int64 `json:"timestamp,omitempty"`
}
type Hysteria2 struct {
Port int `json:"port" validate:"required"`
HopPorts string `json:"hop_ports" validate:"required"`