type
AdminPluginMetadata
Static pairing metadata for a plugin admin package.
Properties
| Property | Type | Description |
|---|---|---|
Package | string | Installed bare JavaScript package specifier. |
Export | string | Named AdminPlugin export in Package. |
APIVersion | uint32 | Admin contract version; must equal AdminPluginAPIVersion. |
PairingVersion | uint32 | Backend/admin pairing version checked during generation. |
Routes | []string | Authenticated admin route paths in exact registration order. |
Assets | []string | Package-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
}