mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 05:41:49 +08:00
26 lines
667 B
Go
26 lines
667 B
Go
package clientmiddleware
|
|
|
|
import (
|
|
"github.com/grafana/grafana-plugin-sdk-go/backend"
|
|
)
|
|
|
|
const (
|
|
statusOK = "ok"
|
|
statusError = "error"
|
|
statusCancelled = "cancelled"
|
|
|
|
endpointCallResource = "callResource"
|
|
endpointCheckHealth = "checkHealth"
|
|
endpointCollectMetrics = "collectMetrics"
|
|
endpointQueryData = "queryData"
|
|
endpointSubscribeStream = "subscribeStream"
|
|
endpointPublishStream = "publishStream"
|
|
endpointRunStream = "runStream"
|
|
)
|
|
|
|
type callResourceResponseSenderFunc func(res *backend.CallResourceResponse) error
|
|
|
|
func (fn callResourceResponseSenderFunc) Send(res *backend.CallResourceResponse) error {
|
|
return fn(res)
|
|
}
|