Documentation ¶
Index ¶
- type ITimeHandler
- type ITimeHost
- type TimeItem
- type TimeList
- func (timer *TimeList) CreateItem(completeTime int, host ITimeHandler, params ...interface{}) *TimeItem
- func (timer *TimeList) Dispose()
- func (timer *TimeList) GetItems() []*TimeItem
- func (timer *TimeList) GetTimerById(id int) *TimeItem
- func (timer *TimeList) NextItemId() int
- func (timer *TimeList) Refresh(item *TimeItem)
- func (timer *TimeList) RefreshById(timerId int)
- func (timer *TimeList) Remove(item *TimeItem)
- func (timer *TimeList) RemoveById(timerId int)
- func (timer *TimeList) Reset()
- func (timer *TimeList) Update(now int, ctx interface{}, params ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITimeHandler ¶
type ITimeHandler interface {
// 更新时间集合
UpdateTimerSet(ctx interface{}, createParams, updateParams []interface{})
}
type TimeItem ¶
type TimeItem struct { // 识别号 Id int // 结束时间 Complete int // 处理函数的对象 //Target *factory.Link Target interface{} // 处理函数的参数 CreateParams []interface{} UpdateParams []interface{} // 是否已经清除掉的标记 Removed bool // Scale float64 // DebugTag string }
func CreateTimerItem ¶
func CreateTimerItem() *TimeItem
func NewTimeItem ¶
func NewTimeItem() (obj *TimeItem)
type TimeList ¶
type TimeList struct { // 静止 InStasis bool // contains filtered or unexported fields }
定时器
func NewTimeList ¶
func NewTimeList() *TimeList
func (*TimeList) CreateItem ¶
func (timer *TimeList) CreateItem(completeTime int, host ITimeHandler, params ...interface{}) *TimeItem
目标时间
func (*TimeList) GetTimerById ¶
func (*TimeList) NextItemId ¶
func (*TimeList) RefreshById ¶
func (*TimeList) RemoveById ¶
Click to show internal directories.
Click to hide internal directories.