Documentation ¶
Index ¶
- Constants
- type Clock
- type Date
- type Job
- type JobJSON
- type JobType
- type JobTypeJSON
- type Module
- type Scheduler
- func (s *Scheduler) CreateJob(jobJSON string) (id int64, busErr *dbus.Error)
- func (s *Scheduler) CreateType(typeJSON string) (id int64, busErr *dbus.Error)
- func (s *Scheduler) DebugRemindJob(id int64) *dbus.Error
- func (s *Scheduler) DeleteJob(id int64) *dbus.Error
- func (s *Scheduler) DeleteType(id int64) *dbus.Error
- func (v *Scheduler) GetExportedMethods() dbusutil.ExportedMethods
- func (s *Scheduler) GetInterfaceName() string
- func (s *Scheduler) GetJob(id int64) (jobJSON string, busErr *dbus.Error)
- func (s *Scheduler) GetJobs(startYear, startMonth, startDay, endYear, endMonth, endDay int32) (jobsJSON string, busErr *dbus.Error)
- func (s *Scheduler) GetJobsWithLimit(startYear, startMonth, startDay, endYear, endMonth, endDay int32, maxNum int32) (jobsJSON string, busErr *dbus.Error)
- func (s *Scheduler) GetJobsWithRule(startYear, startMonth, startDay, endYear, endMonth, endDay int32, rule string) (jobsJSON string, busErr *dbus.Error)
- func (s *Scheduler) GetType(id int64) (typeJSON string, busErr *dbus.Error)
- func (s *Scheduler) GetTypes() (typesJSON string, busErr *dbus.Error)
- func (s *Scheduler) QueryJobs(params string) (jobsJSON string, busErr *dbus.Error)
- func (s *Scheduler) QueryJobsWithLimit(params string, maxNum int32) (jobsJSON string, busErr *dbus.Error)
- func (s *Scheduler) QueryJobsWithRule(params string, rule string) (jobsJSON string, busErr *dbus.Error)
- func (s *Scheduler) UpdateJob(jobJSON string) *dbus.Error
- func (s *Scheduler) UpdateType(typeJSON string) *dbus.Error
- type TimeRange
Constants ¶
View Source
const (
JobTypeFestival
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Job ¶
type Job struct { gorm.Model Type int // 类型 Title string // 标题 Description string // 描述 TitlePinyin string // 拼音 AllDay bool // 全天 Start time.Time // 开始 End time.Time // 结束 RRule string // 重复规则 Remind string // 提醒 RecurID int `gorm:"-"` Ignore string // 忽略,JSON // contains filtered or unexported fields }
type JobTypeJSON ¶
type Module ¶
type Module struct { *loader.ModuleBase // contains filtered or unexported fields }
func (*Module) GetDependencies ¶
func (*Module) WaitEnable ¶
func (m *Module) WaitEnable()
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func (*Scheduler) CreateType ¶
func (*Scheduler) GetExportedMethods ¶
func (v *Scheduler) GetExportedMethods() dbusutil.ExportedMethods
func (*Scheduler) GetInterfaceName ¶
func (*Scheduler) GetJobsWithLimit ¶
func (*Scheduler) GetJobsWithRule ¶
func (*Scheduler) QueryJobsWithLimit ¶
func (*Scheduler) QueryJobsWithRule ¶
Click to show internal directories.
Click to hide internal directories.