Versions in this module Expand all Collapse all v0 v0.16.0 Oct 21, 2026 Changes in this version + var ErrNoIdentity = errors.New("wasm plugin: missing identity export") + var Exports = []string + var HostFunctions = []string + func ContractFieldNames() []string + func LoadWasmPlugins(registry *plugin.Registry, dir string, store plugin.Store) + func ReadSidecar(wasmPath string) ([]string, error) + func SidecarPath(wasmPath string) string + func Validate(path string) (plugin.Info, error) + func WriteAtomic(path string, data []byte) error + func WriteSidecar(wasmPath string, allowedHosts []string) error + type Identity struct + DisplayName string + Name string + Version string + type Options struct + AllowedHosts []string + Logf func(format string, args ...any) + NoCache bool + Posts func(limit int) ([]plugin.Post, error) + Store plugin.Store + type Plugin struct + func Load(path string, opts Options) (*Plugin, error) + func LoadBytes(data []byte, opts Options) (*Plugin, error) + func (p *Plugin) AllowedHosts() []string + func (p *Plugin) Close() error + func (p *Plugin) DisplayName() string + func (p *Plugin) Health() string + func (p *Plugin) Identity() Identity + func (p *Plugin) Name() string + func (p *Plugin) OnInit(db *gorm.DB) error + func (p *Plugin) Pages() []plugin.PageDefinition + func (p *Plugin) RenderPage(ctx *plugin.HookContext, pageType string) (string, gin.H) + func (p *Plugin) ScheduledJobs() []plugin.ScheduledJob + func (p *Plugin) Settings() []plugin.SettingDefinition + func (p *Plugin) TemplateData(ctx *plugin.HookContext) gin.H + func (p *Plugin) TemplateFooter(ctx *plugin.HookContext) string + func (p *Plugin) TemplateHead(ctx *plugin.HookContext) string + func (p *Plugin) Version() string