MCPcopy Create free account
hub / github.com/daodst/chat / ErrTopicNotFound

Function ErrTopicNotFound

server/datamodel.go:538–546  ·  view source on GitHub ↗
(id, topic string, ts time.Time)

Source from the content-addressed store, hash-verified

536}
537
538func 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
548func ErrUserNotFound(id, topic string, ts time.Time) *ServerComMessage {
549 msg := &ServerComMessage{Ctrl: &MsgServerCtrl{

Callers 1

topicInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected