{"modulePath":"github.com/GoCodeAlone/workflow","version":"v0.87.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package all\n\nPackage all provides a single import point for all built-in workflow engine plugins. Applications that embed the workflow engine can call [LoadAll](#LoadAll) to register every standard plugin in one step instead of importing and wiring each plugin package individually.\n\nExample – minimal embedded engine setup:\n\n\tengine := workflow.NewStdEngine(app, logger)\n\tif err := all.LoadAll(engine); err != nil {\n\t    log.Fatalf(\"failed to load plugins: %v\", err)\n\t}\n\nIf you need finer control (e.g. to skip a plugin or add your own), use [DefaultPlugins](#DefaultPlugins) to obtain the slice and modify it before loading:\n\n\tplugins := all.DefaultPlugins()\n\tplugins = append(plugins, myCustomPlugin)\n\tfor _, p := range plugins {\n\t    engine.LoadPlugin(p)\n\t}\n\n## Functions\n\n```go\nfunc DefaultPlugins() []plugin.EnginePlugin\n```\nDefaultPlugins returns the standard set of built-in engine plugins. The slice is freshly allocated on each call so callers may safely append custom plugins without affecting other callers.\n\n```go\nfunc LoadAll(engine PluginLoader) error\n```\nLoadAll loads all default built-in plugins into the given engine. It is equivalent to calling engine.LoadPlugin for each plugin returned by [DefaultPlugins](#DefaultPlugins). The first error encountered is returned immediately.\n\n## Types\n\n```go\ntype PluginLoader interface {\n\tLoadPlugin(p plugin.EnginePlugin) error\n}\n```\nPluginLoader is the minimal interface required by [LoadAll](#LoadAll). \\*workflow.StdEngine satisfies this interface.\n\n","path":"github.com/GoCodeAlone/workflow/plugins/all","name":"all","synopsis":"Package all provides a single import point for all built-in workflow engine plugins.","isRedistributable":true}
