Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountHealth ¶
type AccountHealth struct {
ProviderID string `json:"provider_id"`
AccountID string `json:"account_id"`
Status string `json:"status"` // "healthy", "refreshing", "expired", "error"
LastCheck time.Time `json:"last_check"`
LastError string `json:"last_error,omitempty"`
LatencyMs int64 `json:"latency_ms"`
}
type ProviderRegistry ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
var GlobalScheduler *Scheduler
func InitScheduler ¶
func InitScheduler(registry ProviderRegistry, interval time.Duration) *Scheduler
func (*Scheduler) ListHealth ¶
func (s *Scheduler) ListHealth() []*AccountHealth
func (*Scheduler) RunHealthCheck ¶
Click to show internal directories.
Click to hide internal directories.