Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventData ¶
type EventData struct { EventType string UniqKey string EventData string EventOption *esyncdao.EventOption }
事件数据结构
type EventService ¶
type EventService struct{}
type HandlerBase ¶
type HandlerBase interface { GetHandlerID() string // 建议日期加三位数字 比如 210916002 Do(ctx context.Context, params *HandlerParams) error }
func GetHandlerList ¶
func GetHandlerList(handlerParams *HandlerParams) []HandlerBase
type HandlerParams ¶
type HandlerParams struct { EventID int64 EventDefaultDao *esyncdao.EsyncEventDefaultDao }
func (*HandlerParams) LogIDStr ¶
func (hp *HandlerParams) LogIDStr() string
type TimeWheel ¶
type TimeWheel struct {
// contains filtered or unexported fields
}
TimeWheel 时间轮
func GetEventTimeWheel ¶
func GetEventTimeWheel() *TimeWheel
func NewTimeWheel ¶
New 创建时间轮
func (*TimeWheel) RemoveTimer ¶
func (tw *TimeWheel) RemoveTimer(key interface{})
RemoveTimer 删除定时器 key为添加定时器时传递的定时器唯一标识
Click to show internal directories.
Click to hide internal directories.