MCPcopy
hub / github.com/kenn-io/msgvault / SyncScheduler

Interface SyncScheduler

internal/api/server.go:50–56  ·  view source on GitHub ↗

SyncScheduler defines the scheduler operations the API needs.

Source from the content-addressed store, hash-verified

48
49// SyncScheduler defines the scheduler operations the API needs.
50type 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.
59type AccountStatus = scheduler.AccountStatus

Callers 29

handleTriggerSyncMethod · 0.65
IsScheduledMethod · 0.65
TestTriggerSyncFunction · 0.65
TestStatusAfterSyncErrorFunction · 0.65
TestTriggerSyncAfterStopFunction · 0.65
TestAddAccountFunction · 0.65

Implementers 3

Schedulerinternal/scheduler/scheduler.go
mockSchedulerinternal/api/server_test.go
schedulerAdaptercmd/msgvault/cmd/serve.go

Calls

no outgoing calls

Tested by

no test coverage detected