NewActivityCommon new activity common
( activityRepo ActivityRepo, activityQueueService activityqueue.Service, )
| 54 | |
| 55 | // NewActivityCommon new activity common |
| 56 | func NewActivityCommon( |
| 57 | activityRepo ActivityRepo, |
| 58 | activityQueueService activityqueue.Service, |
| 59 | ) *ActivityCommon { |
| 60 | activity := &ActivityCommon{ |
| 61 | activityRepo: activityRepo, |
| 62 | activityQueueService: activityQueueService, |
| 63 | } |
| 64 | activity.activityQueueService.RegisterHandler(activity.HandleActivity) |
| 65 | return activity |
| 66 | } |
| 67 | |
| 68 | // HandleActivity handle activity message |
| 69 | func (ac *ActivityCommon) HandleActivity(ctx context.Context, msg *schema.ActivityMsg) error { |
nothing calls this directly
no test coverage detected