MCPcopy
hub / github.com/gotify/server / NewMessage

Method NewMessage

test/testdb/database.go:173–177  ·  view source on GitHub ↗

NewMessage creates a message and returns the message.

(id uint)

Source from the content-addressed store, hash-verified

171
172// NewMessage creates a message and returns the message.
173func (mb *MessageBuilder) NewMessage(id uint) model.Message {
174 message := model.Message{ID: id, ApplicationID: mb.appID}
175 mb.db.CreateMessage(&message)
176 return message
177}
178
179// AssertAppNotExist asserts that the app does not exist.
180func (d *Database) AssertAppNotExist(id uint) {

Calls 1

CreateMessageMethod · 0.65