Documentation ¶
Index ¶
Constants ¶
View Source
const (
// The function from Effe, which declares flow
BuildFLowExprType = "BuildFlow"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Drawer ¶
type Drawer interface { // DrawBuild takes a list of compoments and a failure components, returns // string in plantuml dsl DrawFlow([]types.Component, types.Component) (string, error) }
Drawe draws graphs for business flows.
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator loads dsl, generates code or diagrams.
func NewGenerator ¶
Initialize a new generator with options
type Loader ¶
type Loader interface { // Convert expressions to Components. Returns array of Components and a component with type Failure. LoadFlow([]ast.Expr, map[string]*ast.FuncDecl) ([]types.Component, types.Component, error) }
Loader executes parsers for components by type. Generator gets arguments from expression BuildFlow and passes to Loader.
type Option ¶
type Option func(g *Generator)
func WithSetttings ¶
WithSetttings is used for overriding settings Default is settings from a method DefaultSettings()
func WithStrategy ¶
WithDrawer is used for overriding a strategy
Click to show internal directories.
Click to hide internal directories.