Versions in this module Expand all Collapse all v1 v1.0.0 Jan 4, 2024 Changes in this version + const ActionJobClose + const ActionJobCreate + const ActionJobInputParams + const ActionJobProgressing + const ActionJobResponse + const I18nWorkerKey + const JobStatusCancelled + const JobStatusDone + const JobStatusException + const JobStatusKilled + const JobStatusNew + const JobStatusRunning + const JobStatusScheduled + const PermEdit + var DefaultOriginalPageContextHandler = func(ctx *web.EventContext) map[string]interface{} + var Messages_en_US = &Messages + var Messages_zh_CN = &Messages + type ActionJobBuilder struct + func (action *ActionJobBuilder) ContextHandler(handler func(*web.EventContext) map[string]interface{}) *ActionJobBuilder + func (action *ActionJobBuilder) Description(description string) *ActionJobBuilder + func (action *ActionJobBuilder) DisplayLog(b bool) *ActionJobBuilder + func (action *ActionJobBuilder) Global(b bool) *ActionJobBuilder + func (action *ActionJobBuilder) Params(params interface{}) *ActionJobBuilder + func (action *ActionJobBuilder) ProgressingInterval(interval int) *ActionJobBuilder + func (action ActionJobBuilder) GetParamsModelBuilder() *presets.ModelBuilder + func (action ActionJobBuilder) URL() string + type Builder struct + func New(db *gorm.DB) *Builder + func NewWithQueue(db *gorm.DB, q Queue) *Builder + func (b *Builder) ActionJob(jobName string, model *presets.ModelBuilder, hander JobHandler) *ActionJobBuilder + func (b *Builder) Activity(ab *activity.ActivityBuilder) *Builder + func (b *Builder) Configure(pb *presets.Builder) *presets.ModelBuilder + func (b *Builder) GetCurrentUserIDFunc(f func(r *http.Request) string) *Builder + func (b *Builder) Listen() + func (b *Builder) NewJob(name string) *JobBuilder + func (b *Builder) Queue(q Queue) *Builder + func (b *Builder) Shutdown(ctx context.Context) error + type GoQueError struct + Error string + type JobBuilder struct + func (jb *JobBuilder) ContextHandler(handler func(*web.EventContext) map[string]interface{}) *JobBuilder + func (jb *JobBuilder) GetResourceBuilder() *presets.ModelBuilder + func (jb *JobBuilder) Handler(h JobHandler) *JobBuilder + func (jb *JobBuilder) Resource(r interface{}) *JobBuilder + type JobHandler func(context.Context, QorJobInterface) error + type JobInfo struct + Argument interface{} + Context map[string]interface{} + JobID string + JobName string + Operator string + type Messages struct + ActionAbortJob string + ActionCancelJob string + ActionRerunJob string + ActionUpdateJob string + DateTimePickerClearText string + DateTimePickerOkText string + DetailTitleLog string + DetailTitleStatus string + FilterTabAll string + FilterTabDone string + FilterTabErrors string + FilterTabRunning string + FilterTabScheduled string + NoticeJobCannotBeAborted string + NoticeJobWontBeExecuted string + PleaseSelectJob string + ScheduleTime string + StatusCancelled string + StatusDone string + StatusException string + StatusKilled string + StatusNew string + StatusRunning string + StatusScheduled string + type QorJob struct + Args interface{} + Job string + Status string + type QorJobDefinition struct + Handler JobHandler + Name string + type QorJobInstance struct + Args string + Context string + Job string + Operator string + Progress uint + ProgressText string + QorJobID uint + Status string + func (job *QorJobInstance) AddLog(log string) error + func (job *QorJobInstance) AddLogf(format string, a ...interface{}) error + func (job *QorJobInstance) FetchAndSetStatus() (string, error) + func (job *QorJobInstance) GetHandler() JobHandler + func (job *QorJobInstance) GetJobInfo() (ji *JobInfo, err error) + func (job *QorJobInstance) GetStatus() string + func (job *QorJobInstance) SetProgress(progress uint) error + func (job *QorJobInstance) SetProgressText(s string) error + func (job *QorJobInstance) SetStatus(status string) error + func (job *QorJobInstance) StartRefresh() + func (job *QorJobInstance) StopRefresh() + type QorJobInterface interface + AddLog func(string) error + AddLogf func(format string, a ...interface{}) error + GetJobInfo func() (*JobInfo, error) + SetProgress func(uint) error + SetProgressText func(string) error + type QorJobLog struct + CreatedAt time.Time + ID uint + Log string + QorJobInstanceID uint + type QueJobInterface interface + FetchAndSetStatus func() (string, error) + GetHandler func() JobHandler + GetStatus func() string + SetStatus func(string) error + StartRefresh func() + StopRefresh func() + type Queue interface + Add func(ctx context.Context, job QueJobInterface) error + Kill func(ctx context.Context, job QueJobInterface) error + Listen func(jobDefs []*QorJobDefinition, ...) error + Remove func(ctx context.Context, job QueJobInterface) error + Shutdown func(ctx context.Context) error + func NewCronQueue() Queue + func NewGoQueQueue(db *gorm.DB) Queue + type Schedule struct + ScheduleTime *time.Time + func (schedule *Schedule) GetScheduleTime() *time.Time + func (schedule *Schedule) SetScheduleTime(t *time.Time) + type Scheduler interface + GetScheduleTime func() *time.Time + SetScheduleTime func(t *time.Time) Other modules containing this package github.com/qor5/admin/v3