Documentation
¶
Index ¶
- func AddTask(task *Task)
- func Start()
- type Handler
- type Manager
- type Task
- type Timer
- type TimerAt
- func (at *TimerAt) GetNextDay(now time.Time)
- func (at *TimerAt) GetNextHour(now time.Time)
- func (at *TimerAt) GetNextMinute(now time.Time)
- func (at *TimerAt) GetNextMonth(now time.Time)
- func (at *TimerAt) GetNextSecond(now time.Time, every int, lastRun time.Time)
- func (at *TimerAt) GetNextWeek(now time.Time)
- func (at *TimerAt) GetNextYear(now time.Time)
- func (at *TimerAt) SetDay(v ...int) *TimerAt
- func (at *TimerAt) SetHour(v ...int) *TimerAt
- func (at *TimerAt) SetMinute(v ...int) *TimerAt
- func (at *TimerAt) SetMonth(v ...int) *TimerAt
- func (at *TimerAt) SetSecond(v ...int) *TimerAt
- func (at *TimerAt) SetWeek(v ...int) *TimerAt
- func (at *TimerAt) SetYear(v ...int) *TimerAt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
func GetManager ¶
func GetManager() *Manager
type TimerAt ¶
type TimerAt struct {
Second []int //0-59
SecondChan chan int
SecondV int
Minute []int //0-59
MinuteChan chan int
MinuteV int
Hour []int //0-23
HourChan chan int
HourV int
Day []int //1-28-30-31
DayChan chan int
DayV int
Week []int //1-7
WeekChan chan int
WeekV int
Month []int //1-12
MonthChan chan int
MonthV int
Year []int //2022
YearChan chan int
YearV int
Done chan int
Wg *sync.WaitGroup
}
func (*TimerAt) GetNextDay ¶
func (*TimerAt) GetNextHour ¶
func (*TimerAt) GetNextMinute ¶
func (*TimerAt) GetNextMonth ¶
func (*TimerAt) GetNextSecond ¶
func (*TimerAt) GetNextWeek ¶
func (*TimerAt) GetNextYear ¶
Click to show internal directories.
Click to hide internal directories.