Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StatusInstance = &Status{Reloading: false}
Functions ¶
This section is empty.
Types ¶
type Payload ¶
type Payload struct {
Sources map[string]driversbase.SourceConfig `json:"sources,omitempty"`
}
type Service ¶
Service keep up-to-date sources
func NewService ¶
func NewService(ctx context.Context, sources *viper.Viper, sourcesURL string, destinationsService *destinations.Service, metaStorage meta.Storage, cronScheduler *scheduling.CronScheduler) (*Service, error)
NewService returns initialized Service instance or error if occurred
func (*Service) GetCollections ¶
func (*Service) IsConfigured ¶
type Status ¶
type Status struct {
Reloading bool
}
Status is a singleton struct for storing sources reloading state. Scheduler checks this flag and doesn't run Sync tasks
Click to show internal directories.
Click to hide internal directories.