Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComponentStmt ¶
Represents a statement for adding in a diagram.
func DrawCase ¶
func DrawCase(d Drawer, c types.Component) (ComponentStmt, error)
DrawCase converts a component with type types.CaseComponent to a statement
func DrawDecision ¶
func DrawDecision(d Drawer, c types.Component) (ComponentStmt, error)
DrawDecision converts a component with type types.DecisionComponent to a statement
func DrawSimple ¶
func DrawSimple(d Drawer, c types.Component) (ComponentStmt, error)
DrawSimple converts a component with type types.SimpleComponent to a statement
type Drawer ¶
type Drawer interface { // Draws a flow. Takes array of components and a failure component and returns dsl in plantuml DrawFlow([]types.Component, types.Component) (string, error) // DrawComponent generates a statement from a component DrawComponent(types.Component) (ComponentStmt, error) // DrawBlock generates multi-statement from an array of components DrawBlock([]types.Component, types.Component) (ComponentStmt, error) // Register is a method for adding a new generator for a custom component type Register(string, Generator) error }
Drawer draws diagram fora business flow
Click to show internal directories.
Click to hide internal directories.