type

AdminPluginMetadata

Static pairing metadata for a plugin admin package.

Properties

PropertyTypeDescription
PackagestringInstalled bare JavaScript package specifier.
ExportstringNamed AdminPlugin export in Package.
APIVersionuint32Admin contract version; must equal AdminPluginAPIVersion.
PairingVersionuint32Backend/admin pairing version checked during generation.
Routes[]stringAuthenticated admin route paths in exact registration order.
Assets[]stringPackage-relative static assets in exact registration order.

How it works

Package and Export are statically imported at admin build time. Increment PairingVersion when backend and admin halves cease to be compatible.

Full signature

type AdminPluginMetadata struct { // Package is an installed bare JavaScript package specifier. Package string // Export is the named AdminPlugin export in Package. Export string // APIVersion must equal AdminPluginAPIVersion. APIVersion uint32 // PairingVersion changes when backend and admin halves cease to match. PairingVersion uint32 // Routes lists authenticated admin route paths in exact registration order. Routes []string // Assets lists package-relative static assets in exact registration order. Assets []string }

Source core/plugin.go:116