Skip to content

Commit f09967f

Browse files
committed
wip
1 parent 112b5da commit f09967f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/create-plugin/templates/datasource/.config/AGENTS/instructions.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)