MCPcopy Create free account
hub / github.com/gotify/server / SendMessage

Method SendMessage

plugin/messagehandler.go:23–36  ·  view source on GitHub ↗

SendMessage sends a message to the underlying message channel.

(msg compat.Message)

Source from the content-addressed store, hash-verified

21
22// SendMessage sends a message to the underlying message channel.
23func (c redirectToChannel) SendMessage(msg compat.Message) error {
24 c.Messages <- MessageWithUserID{
25 Message: model.MessageExternal{
26 ApplicationID: c.ApplicationID,
27 Message: msg.Message,
28 Title: msg.Title,
29 Priority: &msg.Priority,
30 Date: time.Now(),
31 Extras: msg.Extras,
32 },
33 UserID: c.UserID,
34 }
35 return nil
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected