MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / Sent

Method Sent

api/pkg/entities/message.go:160–168  ·  view source on GitHub ↗

Sent registers a message as sent

(timestamp time.Time)

Source from the content-addressed store, hash-verified

158
159// Sent registers a message as sent
160func (message *Message) Sent(timestamp time.Time) *Message {
161 sendDuration := timestamp.UnixNano() - message.RequestReceivedAt.UnixNano()
162 message.SentAt = &timestamp
163 message.Status = MessageStatusSent
164 message.updateOrderTimestamp(timestamp)
165 message.SendDuration = &sendDuration
166
167 return message
168}
169
170// Failed registers a message as failed
171func (message *Message) Failed(timestamp time.Time, errorMessage string) *Message {

Callers 1

HandleMessageSentMethod · 0.80

Calls 1

updateOrderTimestampMethod · 0.95

Tested by

no test coverage detected