Documentation
¶
Index ¶
- Variables
- type Application
- func (app *Application) Close() error
- func (app *Application) LastSyncAt() (time.Time, bool)
- func (app *Application) NextSyncAt() (time.Time, bool)
- func (app *Application) ProviderDefinition() contracts.ProviderDefinition
- func (app *Application) Run(ctx context.Context) error
- func (app *Application) Sync(ctx context.Context, trigger string) (sync.Result, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSyncInProgress = errors.New("synchronization is already in progress")
ErrSyncInProgress is returned when another synchronization is already running.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func NewApplication ¶
func (*Application) Close ¶
func (app *Application) Close() error
func (*Application) LastSyncAt ¶ added in v0.5.0
func (app *Application) LastSyncAt() (time.Time, bool)
LastSyncAt returns the last successful synchronization time known by this process.
func (*Application) NextSyncAt ¶ added in v0.5.0
func (app *Application) NextSyncAt() (time.Time, bool)
NextSyncAt returns the next scheduled interval synchronization time.
func (*Application) ProviderDefinition ¶ added in v0.5.0
func (app *Application) ProviderDefinition() contracts.ProviderDefinition
ProviderDefinition returns human-readable metadata for the configured provider.
Click to show internal directories.
Click to hide internal directories.