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

Function ErrCommandOutOfSequence

server/datamodel.go:1534–1545  ·  view source on GitHub ↗

ErrCommandOutOfSequence invalid sequence of comments, i.e. attempt to {sub} before {hi} (409).

(id, unused string, ts time.Time)

Source from the content-addressed store, hash-verified

1532
1533// ErrCommandOutOfSequence invalid sequence of comments, i.e. attempt to {sub} before {hi} (409).
1534func ErrCommandOutOfSequence(id, unused string, ts time.Time) *ServerComMessage {
1535 return &ServerComMessage{
1536 Ctrl: &MsgServerCtrl{
1537 Id: id,
1538 Code: http.StatusConflict, // 409
1539 Text: "command out of sequence",
1540 Timestamp: ts,
1541 },
1542 Id: id,
1543 Timestamp: ts,
1544 }
1545}
1546
1547// ErrGone topic deleted or user banned (410).
1548func ErrGone(id, topic string, ts time.Time) *ServerComMessage {

Callers 2

dispatchMethod · 0.85
helloMethod · 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…