Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller executes the selected flow
func NewController ¶
func NewController(flows ...Flow) *Controller
func (*Controller) Active ¶
func (c *Controller) Active() string
FlowNames returns the list of available flows
func (*Controller) FlowNames ¶
func (c *Controller) FlowNames() []string
FlowNames returns the list of available flows
func (*Controller) SelectFlow ¶
func (c *Controller) SelectFlow(ctx context.Context, name string) error
SelectFlow selects the flow to be executed previous flow will be stopped
func (*Controller) SubscribeToErrors ¶
func (c *Controller) SubscribeToErrors() <-chan error
SubscribeToErrors returns the channel to subscribe to errors
Click to show internal directories.
Click to hide internal directories.