(hash string, workflow config.Workflow)
| 9 | ) |
| 10 | |
| 11 | func (api *API) StoreWorkflow(hash string, workflow config.Workflow) error { |
| 12 | _, err := api.db.Exec("REPLACE INTO workflows (config_hash, id, text) VALUES ($1, $2, $3)", |
| 13 | hash, workflow.ID, workflow.String(), |
| 14 | ) |
| 15 | return err |
| 16 | } |
| 17 | |
| 18 | func (api *API) StartWorkflow(hash, id string, workflowInput map[string]interface{}) error { |
| 19 | // Create a workflow run |