| Component | Technology | Filename | Description |
|---|---|---|---|
| Model | JSON | descriptor.json | The descriptor.json describes the model, the meta data, of the activity. It describes, among other things, what the input and outputs are, who built it and which version you’re using. |
| Runtime | Go | functioName.go | Every extension must write the runtime code in Go (functionName.go). You can, and really should, leverage the Go testing framework for writing unit test cases (functionName_test.go) for your extension. |
| Runtime dependence | go.mod | go.mod | The go.mod file describes all dependencies requires for this function and the function model name. Note here: The module name should be the ref of the contribution. |
Note
category name. Take JSON as example, the name must be jsoncategory name.category name as well.Name methodfunc (fnPath) Name() string {
return "path"
}