interface

EndpointProvider

Contribute exact REST endpoints below a namespaced plugin prefix.

Properties

PropertyTypeDescription
PluginPluginThe Plugin value.
Endpointsfunc() []EndpointThe Endpoints value.

How it works

Routes live below /api/plugins/<key>/. Handlers receive exact actor identity, LocalAPI, trusted client IP, auth-admission, and diagnostic reporting helpers. Body limits inherit the application bound unless explicitly overridden.

Full signature

type EndpointProvider interface { Plugin Endpoints() []Endpoint }

Source core/plugin.go:149