{"modulePath":"github.com/GoCodeAlone/workflow","version":"v0.87.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package setup\n\nPackage setup bridges the root workflow package with the handlers and module packages to register default workflow handlers and triggers. It exists to break the import cycle that would occur if the root package directly imported handlers (which has test files that import the root package).\n\nTypical usage is to blank-import this package so that its init function registers the default handler and trigger factories with the workflow engine, and then build an engine using the workflow package:\n\n\timport (\n\t\t\"github.com/GoCodeAlone/workflow\"\n\t\t_ \"github.com/GoCodeAlone/workflow/setup\"\n\t)\n\n\tengine, err := workflow.NewEngineBuilder().\n\t\tWithAllDefaults().\n\t\tBuild()\n\n## Functions\n\n```go\nfunc DefaultHandlers() []workflow.WorkflowHandler\n```\nDefaultHandlers returns all built-in workflow handlers.\n\n```go\nfunc DefaultTriggers() []interfaces.Trigger\n```\nDefaultTriggers returns all built-in triggers.\n\n","path":"github.com/GoCodeAlone/workflow/setup","name":"setup","synopsis":"Package setup bridges the root workflow package with the handlers and module packages to register default workflow handlers and triggers.","isRedistributable":true}
