type
Plugin
type Plugin struct {
config Config
mu sync.RWMutex
collections map[schema.CollectionSlug]ridu.Collection
globals map[schema.CollectionSlug]ridu.Global
}A configured SEO extension implementing config transformation, descriptor, and endpoint capabilities.
Methods
Key()string- Return the stable seo identity.
Descriptor()ridu.PluginDescriptor- Describe Go/admin pairing and compatibility.
TransformConfig(config)(ridu.Config, error)- Validate targets and inject detached field definitions.
Endpoints()[]ridu.PluginEndpoint- Declare the four bounded generation endpoints.
Methods
Plugin.Descriptor()Descriptor exposes only deterministic build metadata. Generators remain executable Go values owned by the runtime plugin instance.
Plugin.Endpoints()Endpoints contributes generation calls below /api/plugins/seo/. All are declared for a stable OpenAPI surface; absent callbacks return an empty value.
Plugin.Key()Key implements ridu.Plugin.
Plugin.TransformConfig()TransformConfig injects one meta group into each selected resource.