Skip to content

Commit

Permalink
[chore] Add README documentation (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-cordenier authored Jan 16, 2025
1 parent e56b78c commit 5ef3235
Show file tree
Hide file tree
Showing 4 changed files with 140 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/workflows/sdk/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"github.com/smartcontractkit/chainlink-common/pkg/capabilities"
)

// WorkflowSpecFactory is used to build WorkflowSpecs.
type WorkflowSpecFactory struct {
spec *WorkflowSpec
names map[string]bool
Expand Down Expand Up @@ -125,6 +126,8 @@ func (c *capDefinitionImpl[O]) self() CapDefinition[O] {

func (c *capDefinitionImpl[O]) private() {}

// NewWorkflowSpecFactory initializes a WorkflowSpecFactory. This is usually the first function that is called
// when writing a new workflow.
func NewWorkflowSpecFactory() *WorkflowSpecFactory {
return &WorkflowSpecFactory{
spec: &WorkflowSpec{
Expand Down
Loading

0 comments on commit 5ef3235

Please sign in to comment.