Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotListeningList = errors.New("不是一个好的监听列表")
监听列表获取错误
View Source
var Users db.DB
全局数据库
Functions ¶
Types ¶
type Job ¶
type Job struct { // 数据库内序号 ID int64 `gorm:"primaryKey;autoIncrement" json:"id"` UserUid string `json:"-"` Pattern string `form:"pattern" json:"pattern" yaml:"pattern"` request.Job }
回调任务封装
func GetJobsByID ¶ added in v0.12.0
获取指定序号任务
type Replie ¶ added in v0.11.2
type User ¶
type User struct { Uid string `json:"uid" gorm:"primaryKey"` Token string `json:"token,omitempty"` Permission float64 `json:"permission"` Jobs []Job `json:"jobs,omitempty" gorm:"references:Uid"` Listening Listening `json:"listening,omitempty"` }
用户
func (*User) RemoveJobs ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.