Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadClient ¶
LoadClient loads a client depending on the config vendor.
Types ¶
type Config ¶
type Config struct {
ContinueOnSyncItemError bool
}
Config contains configurable behavior flags for the syncer.
type LogHook ¶
type LogHook struct {
LogLevels []log.Level
Dao *daos.Dao
// contains filtered or unexported fields
}
LogHook is a logrus hook that writes the logs to the database.
type Syncer ¶
type Syncer struct {
TenantGroupName string
Dao *daos.Dao
Tenants map[string]models.IntegrationClient
IntentTenant models.IntegrationClient
Config Config
Logger *log.Logger
}
Syncer orchestrates how to sync items across multiple tenants.
func (*Syncer) CollectAllItems ¶
CollectAllItems collects and saves fresh item details from each of the registered tenants for the syncer.
func (*Syncer) RefreshCredentials ¶
Click to show internal directories.
Click to hide internal directories.