Documentation ¶
Overview ¶
Package repositories This package provides the interfaces and implementations to save and retrieve schedules and snapshots from the DB. Along with activating and deactivating the schedules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RepositoryConfigurationName = map[int32]string{
0: "POSTGRES",
}
Functions ¶
This section is empty.
Types ¶
type PostgresRepo ¶
type PostgresRepo struct {
// contains filtered or unexported fields
}
func (*PostgresRepo) SchedulableEntityRepo ¶
func (p *PostgresRepo) SchedulableEntityRepo() interfaces.SchedulableEntityRepoInterface
func (*PostgresRepo) ScheduleEntitiesSnapshotRepo ¶
func (p *PostgresRepo) ScheduleEntitiesSnapshotRepo() interfaces.ScheduleEntitiesSnapShotRepoInterface
type SchedulerRepoInterface ¶
type SchedulerRepoInterface interface { SchedulableEntityRepo() interfaces.SchedulableEntityRepoInterface ScheduleEntitiesSnapshotRepo() interfaces.ScheduleEntitiesSnapShotRepoInterface }
func GetRepository ¶
func GetRepository(repoType RepoConfig, dbConfig config.DbConfig, scope promutils.Scope) SchedulerRepoInterface
func NewPostgresRepo ¶
func NewPostgresRepo(db *gorm.DB, errorTransformer errors.ErrorTransformer, scope promutils.Scope) SchedulerRepoInterface
Click to show internal directories.
Click to hide internal directories.