MCPcopy
hub / github.com/tinode/chat / ErrNotFoundExplicitTs

Function ErrNotFoundExplicitTs

server/datamodel.go:1392–1404  ·  view source on GitHub ↗

ErrNotFoundExplicitTs is an error for missing objects other than user or topic with explicit server and incoming request timestamps (404).

(id, topic string, serverTs, incomingReqTs time.Time)

Source from the content-addressed store, hash-verified

1390// ErrNotFoundExplicitTs is an error for missing objects other than user or topic
1391// with explicit server and incoming request timestamps (404).
1392func ErrNotFoundExplicitTs(id, topic string, serverTs, incomingReqTs time.Time) *ServerComMessage {
1393 return &ServerComMessage{
1394 Ctrl: &MsgServerCtrl{
1395 Id: id,
1396 Code: http.StatusNotFound, // 404
1397 Text: "not found",
1398 Topic: topic,
1399 Timestamp: serverTs,
1400 },
1401 Id: id,
1402 Timestamp: incomingReqTs,
1403 }
1404}
1405
1406// ErrNotFoundReply is an error for missing objects other than user or topic
1407// with explicit server and incoming request timestamps in response to a client request (404).

Callers 5

replyOfflineTopicGetSubFunction · 0.85
replyOfflineTopicSetSubFunction · 0.85
ErrNotFoundFunction · 0.85
ErrNotFoundReplyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…