Documentation ¶
Overview ¶
Package timer 群管定时器
Index ¶
- type Clock
- type Timer
- func (m *Timer) Day() (d int)
- func (m *Timer) En() (en bool)
- func (ts *Timer) GetTimerInfo(grp int64) string
- func (m *Timer) Hour() (h int)
- 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)
- type TimersMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
type Clock struct {
// contains filtered or unexported fields
}
func (*Clock) RegisterTimer ¶
RegisterTimer 注册计时器
type Timer ¶
type Timer struct { Alert string `protobuf:"bytes,1,opt"` Cron string `protobuf:"bytes,2,opt"` En1Month4Day5Week3Hour5Min6 int32 `protobuf:"varint,4,opt"` Selfid int64 `protobuf:"varint,8,opt"` Url string `protobuf:"bytes,16,opt"` }
func GetFilledCronTimer ¶
GetFilledCronTimer 获得以cron填充好的ts
func GetFilledTimer ¶
GetFilledTimer 获得填充好的ts
func (*Timer) GetTimerInfo ¶
GetTimerInfo 获得标准化定时字符串
Click to show internal directories.
Click to hide internal directories.