cs

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 NewApplication(ctx context.Context, cfg config.Config, metricsGroup *metrics.Group) (*Application, error)

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.

func (*Application) Run

func (app *Application) Run(ctx context.Context) error

func (*Application) Sync added in v0.5.0

func (app *Application) Sync(ctx context.Context, trigger string) (sync.Result, error)

Sync runs the normal synchronization flow for the given trigger.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL