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

Method TriggerMessage

plugin/testing/mock/mock.go:168–177  ·  view source on GitHub ↗

TriggerMessage triggers a test message

()

Source from the content-addressed store, hash-verified

166
167// TriggerMessage triggers a test message
168func (c *PluginInstance) TriggerMessage() {
169 c.messageHandler.SendMessage(compat.Message{
170 Title: "test message",
171 Message: "test",
172 Priority: 2,
173 Extras: map[string]interface{}{
174 "test::string": "test",
175 },
176 })
177}

Callers 1

TestTriggerMessageMethod · 0.80

Implementers 2

PluginV1Instanceplugin/compat/v1.go
PluginInstanceplugin/testing/mock/mock.go

Calls 1

SendMessageMethod · 0.65

Tested by 1

TestTriggerMessageMethod · 0.64