I want to get the options of B-select-field from the Grafana backend.
for example (unverified) in frontend:
const onChangeAFieldOptions = async() => {
const res = ????????; // get the options from Grafana backend method which is written in Golang
setOptionsBFieldSelect(res.data);
}
and in backend:
func GetOptionsBFieldSelect(aOptions string) (res []string) {
// ~~~~~~~~~
}
“Plugin protocol” in the Grafana docs say " The plugin protocol is built on gRPC", so I can probably call method through that, but how would I write it?
Also, is there a wrapper to help call backend, in the Grafana Toolkit?