SyncScheduler defines the scheduler operations the API needs.
| 48 | |
| 49 | // SyncScheduler defines the scheduler operations the API needs. |
| 50 | type SyncScheduler interface { |
| 51 | IsScheduled(email string) bool |
| 52 | TriggerSync(email string) error |
| 53 | AddAccount(email, schedule string) error |
| 54 | Status() []AccountStatus |
| 55 | IsRunning() bool |
| 56 | } |
| 57 | |
| 58 | // AccountStatus is an alias for scheduler.AccountStatus — single source of truth. |
| 59 | type AccountStatus = scheduler.AccountStatus |
no outgoing calls
no test coverage detected