Documentation ¶
Index ¶
Constants ¶
View Source
const ( JobNameUserCsvImport = "UserCsvImport" JobNameDatabaseReset = "DatabaseReset" )
Variables ¶
View Source
var (
ErrItemSkip = errors.New("item skip")
)
Functions ¶
func CleanOutdatedJobs ¶
func CleanOutdatedJobs()
------------------------------------ CleanOutdatedJobs iterate schemas to clean outdated jobs
Types ¶
type ArgFilter ¶
type DatabaseResetArg ¶
type DatabaseResetArg ArgLocale
type DatabaseReseter ¶
type DatabaseReseter struct { *JobRunner // contains filtered or unexported fields }
func NewDatabaseReseter ¶
func NewDatabaseReseter(tt tenant.Tenant, job *xjm.Job) *DatabaseReseter
func (*DatabaseReseter) Run ¶
func (dr *DatabaseReseter) Run()
type ItemSkip ¶
type JobResult ¶
type JobResult struct {
Skips []*ItemSkip `json:"skips,omitempty"`
}
func (*JobResult) AddSkipItem ¶
type TenantJobs ¶
type TenantJobs struct {
// contains filtered or unexported fields
}
func NewTenantJobs ¶
func NewTenantJobs() *TenantJobs
func (*TenantJobs) Stats ¶
func (tj *TenantJobs) Stats() string
func (*TenantJobs) Total ¶
func (tj *TenantJobs) Total() int
type UserCsvImportArg ¶
type UserCsvImportArg ArgLocale
type UserCsvImporter ¶
func NewUserCsvImporter ¶
func NewUserCsvImporter(tt tenant.Tenant, job *xjm.Job) *UserCsvImporter
func (*UserCsvImporter) Run ¶
func (uci *UserCsvImporter) Run()
Click to show internal directories.
Click to hide internal directories.