(messageType string, id interface{}, data interface{})
| 33 | } |
| 34 | |
| 35 | func NewMessage(messageType string, id interface{}, data interface{}) *Message { |
| 36 | return &Message{ |
| 37 | Type: messageType, |
| 38 | ID: id, |
| 39 | Data: data, |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | // Dispatcher simply calls functions when any project (not just the current one) changes; this is used to do things only when necessary, rather than constantly. |
| 44 | type Dispatcher struct { |
no outgoing calls
no test coverage detected