(id, topic string, ts time.Time)
| 536 | } |
| 537 | |
| 538 | func ErrTopicNotFound(id, topic string, ts time.Time) *ServerComMessage { |
| 539 | msg := &ServerComMessage{Ctrl: &MsgServerCtrl{ |
| 540 | Id: id, |
| 541 | Code: http.StatusNotFound, |
| 542 | Text: "topic not found", // 404 |
| 543 | Topic: topic, |
| 544 | Timestamp: ts}} |
| 545 | return msg |
| 546 | } |
| 547 | |
| 548 | func ErrUserNotFound(id, topic string, ts time.Time) *ServerComMessage { |
| 549 | msg := &ServerComMessage{Ctrl: &MsgServerCtrl{ |