NewEvent create a new event
(e constant.EventType, userID string)
| 45 | |
| 46 | // NewEvent create a new event |
| 47 | func NewEvent(e constant.EventType, userID string) *EventMsg { |
| 48 | return &EventMsg{ |
| 49 | UserID: userID, |
| 50 | EventType: e, |
| 51 | ExtraInfo: make(map[string]string), |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | // QID get question id |
| 56 | func (e *EventMsg) QID(questionID, userID string) *EventMsg { |
no outgoing calls
no test coverage detected