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

Method GetDisplay

plugin/example/echo/echo.go:98–110  ·  view source on GitHub ↗

GetDisplay implements plugin.Displayer.

(location *url.URL)

Source from the content-addressed store, hash-verified

96
97// GetDisplay implements plugin.Displayer.
98func (c *EchoPlugin) GetDisplay(location *url.URL) string {
99 loc := &url.URL{
100 Path: c.basePath,
101 }
102 if location != nil {
103 loc.Scheme = location.Scheme
104 loc.Host = location.Host
105 }
106 loc = loc.ResolveReference(&url.URL{
107 Path: "echo",
108 })
109 return "Echo plugin running at: " + loc.String()
110}
111
112// NewGotifyPluginInstance creates a plugin instance for a user context.
113func NewGotifyPluginInstance(ctx plugin.UserContext) plugin.Plugin {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.80

Tested by

no test coverage detected