| 6 | ) |
| 7 | |
| 8 | type Action interface { |
| 9 | |
| 10 | /* |
| 11 | * The unique identifier for the component. |
| 12 | * This is how nodes reference it, and is used for registration. |
| 13 | */ |
| 14 | Name() string |
| 15 | |
| 16 | /* |
| 17 | * The label for the component. |
| 18 | * This is how nodes are displayed in the UI. |
| 19 | */ |
| 20 | Label() string |
| 21 | |
| 22 | /* |
| 23 | * A good description of what the component does. |
| 24 | * Helpful for documentation and user interfaces. |
| 25 | */ |
| 26 | Description() string |
| 27 | |
| 28 | /* |
| 29 | * Detailed markdown documentation explaining how to use the component. |
| 30 | * This should provide in-depth information about the component's purpose, |
| 31 | * configuration options, use cases, and examples. |
| 32 | */ |
| 33 | Documentation() string |
| 34 | |
| 35 | /* |
| 36 | * The icon for the component. |
| 37 | * This is used in the UI to represent the component. |
| 38 | */ |
| 39 | Icon() string |
| 40 | |
| 41 | /* |
| 42 | * The color for the component. |
| 43 | * This is used in the UI to represent the component. |
| 44 | */ |
| 45 | Color() string |
| 46 | |
| 47 | /* |
| 48 | * Example output data for the component. |
| 49 | */ |
| 50 | ExampleOutput() map[string]any |
| 51 | |
| 52 | /* |
| 53 | * The output channels used by the component. |
| 54 | * If none is returned, the 'default' one is used. |
| 55 | */ |
| 56 | OutputChannels(configuration any) []OutputChannel |
| 57 | |
| 58 | /* |
| 59 | * The configuration fields exposed by the component. |
| 60 | */ |
| 61 | Configuration() []configuration.Field |
| 62 | |
| 63 | /* |
| 64 | * Setup the component. |
| 65 | */ |
no outgoing calls
no test coverage detected