Documentation ¶
Index ¶
- func DoJob(cmd, handler string)
- type JdcronTasks
- func (j JdcronTasks) Add(name, spec, cmd, handler string)
- func (j JdcronTasks) GetAll() []JdcronTasks
- func (j JdcronTasks) GetBy(id int) *JdcronTasks
- func (j *JdcronTasks) Insert(task *JdcronTasks)
- func (j *JdcronTasks) Run()
- func (j JdcronTasks) UpdateTID(id int, tid string, status int)
- func (j JdcronTasks) UpdateTaskStatus(taskId int, status int)
- type User
- func (User) Delete(id int) error
- func (User) GetAll() []User
- func (User) GetById(id int) *User
- func (User) GetByPage(limit, offset int) *pageModel.PageInfo
- func (User) GetSequence() string
- func (User) Insert(data *User) error
- func (User) TableName() string
- func (User) Update(data *User, columns []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JdcronTasks ¶
type JdcronTasks struct { Id int `xorm:"not null pk autoincr INT(11)"` TaskId int `xorm:"not null default 0 INT(11)"` Spec string `xorm:"VARCHAR(255)"` Command string `xorm:"VARCHAR(255)"` Status int `xorm:"not null default 0 TINYINT(1)"` CreateTime time.Time `xorm:"not null DATETIME"` Name string `xorm:"VARCHAR(255)"` Handler string `xorm:"not null default '' VARCHAR(255)"` }
func (JdcronTasks) Add ¶
func (j JdcronTasks) Add(name, spec, cmd, handler string)
func (JdcronTasks) GetAll ¶
func (j JdcronTasks) GetAll() []JdcronTasks
func (JdcronTasks) GetBy ¶
func (j JdcronTasks) GetBy(id int) *JdcronTasks
func (*JdcronTasks) Insert ¶
func (j *JdcronTasks) Insert(task *JdcronTasks)
func (JdcronTasks) UpdateTaskStatus ¶
func (j JdcronTasks) UpdateTaskStatus(taskId int, status int)
Click to show internal directories.
Click to hide internal directories.