MCPcopy Index your code
hub / github.com/gotify/server / supportOrAbort

Function supportOrAbort

api/plugin.go:410–416  ·  view source on GitHub ↗
(ctx *gin.Context, instance compat.PluginInstance, module compat.Capability)

Source from the content-addressed store, hash-verified

408}
409
410func supportOrAbort(ctx *gin.Context, instance compat.PluginInstance, module compat.Capability) (aborted bool) {
411 if compat.HasSupport(instance, module) {
412 return false
413 }
414 ctx.AbortWithError(400, fmt.Errorf("plugin does not support %s", module))
415 return true
416}

Callers 2

GetConfigMethod · 0.85
UpdateConfigMethod · 0.85

Calls 2

HasSupportFunction · 0.92
ErrorfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…