Run manual diagnostic attachments in the background

This commit is contained in:
ayurishchev committed 2026-11-22 20:50:39 +03:00
1 parent d845a5e4b6
commit 89ac4d5bcd
40 files changed
+1560 -58

No files matched your search

+23
View File
@@ -506,3 +506,26 @@ func (a autoCycleDTO) OutcomePillClass() string {
return "pill-neutral"
}
}
// diagnosticDTO is one address held in diagnostic mode.
type diagnosticDTO struct {
Address string `json:"address"`
ValidatorID string `json:"validator_id"`
FIPID string `json:"fip_id"`
Note string `json:"note"`
CreatedAt time.Time `json:"created_at"`
}
// diagnosticResult is the per-address outcome of an attach/detach call.
type diagnosticResult struct {
Address string `json:"address"`
Status string `json:"status"`
ValidatorID string `json:"validator_id"`
FIPID string `json:"fip_id"`
Reason string `json:"reason"`
}
type diagnosticAttachItem struct {
Address string `json:"address"`
ValidatorID string `json:"validator_id,omitempty"`
}