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

Function ErrUserNotFound

server/datamodel.go:1365–1377  ·  view source on GitHub ↗

ErrUserNotFound user is not found with explicit server and incoming request timestamps (404).

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

Source from the content-addressed store, hash-verified

1363// ErrUserNotFound user is not found
1364// with explicit server and incoming request timestamps (404).
1365func ErrUserNotFound(id, topic string, serverTs, incomingReqTs time.Time) *ServerComMessage {
1366 return &ServerComMessage{
1367 Ctrl: &MsgServerCtrl{
1368 Id: id,
1369 Code: http.StatusNotFound, // 404
1370 Text: "user not found",
1371 Topic: topic,
1372 Timestamp: serverTs,
1373 },
1374 Id: id,
1375 Timestamp: incomingReqTs,
1376 }
1377}
1378
1379// ErrUserNotFoundReply user is not found
1380// with explicit server and incoming request timestamps in response to a client request (404).

Callers 2

ErrUserNotFoundReplyFunction · 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…