(uuid string, processor *EventProcessor)
| 33 | } |
| 34 | |
| 35 | func NewEventWorker(uuid string, processor *EventProcessor) IWorker { |
| 36 | eWorker := &eventWorker{} |
| 37 | eWorker.init(uuid, processor) |
| 38 | go func() { |
| 39 | eWorker.Run() |
| 40 | }() |
| 41 | return eWorker |
| 42 | } |
| 43 | |
| 44 | func (this *eventWorker) init(uuid string, processor *EventProcessor) { |
| 45 | this.ticker = time.NewTicker(time.Millisecond * 100) |