Documentation ¶
Overview ¶
Package timer 群管定时器
Index ¶
- type Clock
- type Timer
- func (m *Timer) Day() (d int)
- func (m *Timer) En() (en bool)
- func (ts *Timer) GetTimerID() uint32
- func (ts *Timer) GetTimerInfo() string
- func (m *Timer) Hour() (h int)
- func (t *Timer) InsertInto(db *sql.Sqlite) error
- func (m *Timer) Minute() (min int)
- func (m *Timer) Month() (mon time.Month)
- func (m *Timer) SetDay(d int)
- func (m *Timer) SetEn(en bool)
- func (m *Timer) SetHour(h int)
- func (m *Timer) SetMinute(min int)
- func (m *Timer) SetMonth(mon time.Month)
- func (m *Timer) SetWeek(w time.Weekday)
- func (m *Timer) Week() (w time.Weekday)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timer ¶
type Timer struct { Id uint32 `db:"id"` En1Month4Day5Week3Hour5Min6 int32 `db:"emdwhm"` Selfid int64 `db:"sid"` GrpId int64 `db:"gid"` Alert string `db:"alert"` Cron string `db:"cron"` Url string `db:"url"` }
func GetFilledCronTimer ¶
GetFilledCronTimer 获得以cron填充好的ts
func GetFilledTimer ¶
GetFilledTimer 获得填充好的ts
func (*Timer) GetTimerID ¶ added in v1.2.3
GetTimerInfo 获得标准化 ID
Click to show internal directories.
Click to hide internal directories.