File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
packages/create-plugin/templates/datasource/.config/AGENTS Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,12 @@ A typical datasource with backend plugin includes:
4040- React component where users manage and configure a data source instance
4141- Configures instance specific settings (like URLs or credentials)
4242
43+ ** Main module (` pkg/main.go ` )**
44+
45+ - Register a factory function with ` grafana-plugin-sdk-go ` to create datasource backend instances.
46+
47+ ** Data source (` pkg/plugin/datasource.go ` )**
48+
4349### Repository layout
4450
4551- ` src/ ` - Frontend (TypeScript/React)
@@ -54,8 +60,7 @@ A typical datasource with backend plugin includes:
5460- ` README.md ` — Human documentation
5561- ` pkg/ ` - Backend (Go)
5662- ` pkg/main.go ` - Backend entry point
57- - ` pkg/datasource.go ` - Datasource implementation
58- - ` pkg/models.go ` - Query/response models
63+ - ` pkg/plugin/datasource.go ` - Datasource implementation
5964- ` Magefile.go ` - Backend build tasks
6065- ` package.json ` - Frontend build scripts + deps
6166
You can’t perform that action at this time.
0 commit comments