makes datasource handshake more explicit

This commit is contained in:
bergquist 2018-01-09 15:04:59 +01:00
parent 44e485af41
commit dbd1ba465f

View File

@ -62,8 +62,8 @@ func (p *DataSourcePlugin) Load(decoder *json.Decoder, pluginDir string) error {
var handshakeConfig = plugin.HandshakeConfig{ var handshakeConfig = plugin.HandshakeConfig{
ProtocolVersion: 1, ProtocolVersion: 1,
MagicCookieKey: "GRAFANA_BACKEND_DATASOURCE", MagicCookieKey: "grafana_plugin_type",
MagicCookieValue: "55d2200a-6492-493a-9353-73b728d468aa", MagicCookieValue: "datasource",
} }
func buildExecutablePath(pluginDir, executable, os, arch string) string { func buildExecutablePath(pluginDir, executable, os, arch string) string {