Documentation ¶ Index ¶ type API func New(workflows Workflows, publisher Publisher, executions Executions, ...) *API func (a *API) Register(app *fiber.App, token string) type Catalog type Executions type NodeTypes type Publisher type Resumer type Workflows Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type API ¶ type API struct { // contains filtered or unexported fields } func New ¶ func New(workflows Workflows, publisher Publisher, executions Executions, catalog Catalog, resumer Resumer, nodeTypes NodeTypes) *API func (*API) Register ¶ func (a *API) Register(app *fiber.App, token string) type Catalog ¶ type Catalog interface { Save(ctx context.Context, definition *models.EventDefinition) error Get(ctx context.Context, key string) (*models.EventDefinition, error) List(ctx context.Context) ([]*models.EventDefinition, error) } type Executions ¶ type Executions interface { GetExecutionContext(ctx context.Context, executionID string) (*models.ExecutionContext, error) GetExecutionsByWorkflow(ctx context.Context, workflowID string, limit int) ([]*models.ExecutionContext, error) } type NodeTypes ¶ type NodeTypes interface { Save(ctx context.Context, nodeType *models.RemoteNodeType) error Get(ctx context.Context, id string) (*models.RemoteNodeType, error) } type Publisher ¶ type Publisher interface { PublishWorkflow(ctx context.Context, workflowID string) (*models.Workflow, error) UnpublishWorkflow(ctx context.Context, workflowID string) (*models.Workflow, error) } type Resumer ¶ type Resumer interface { Resume(ctx context.Context, executionID, nodeID string, data map[string]any) error } type Workflows ¶ type Workflows interface { FetchAll(ctx context.Context, tenantID string) ([]*models.Workflow, error) FetchByID(ctx context.Context, id string) (*models.Workflow, error) Create(ctx context.Context, workflow *models.Workflow) (*models.Workflow, error) } Source Files ¶ View all Source files api.go Click to show internal directories. Click to hide internal directories.