mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 02:12:29 +08:00

* start pdf refactor * Update AppChrome.tsx * Update AppChrome.tsx * add encoding param to rendering grpc service * fix plugin mode * clean up * fix backend tests * fix lint errors * Support pdf encoding in render http api --------- Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
49 lines
945 B
Protocol Buffer
49 lines
945 B
Protocol Buffer
syntax = "proto3";
|
|
package pluginextensionv2;
|
|
|
|
option go_package = "./;pluginextensionv2";
|
|
|
|
message StringList {
|
|
repeated string values = 1;
|
|
}
|
|
|
|
message RenderRequest {
|
|
string url = 1;
|
|
int32 width = 2;
|
|
int32 height = 3;
|
|
float deviceScaleFactor = 4;
|
|
string filePath = 5;
|
|
string renderKey = 6;
|
|
string domain = 7;
|
|
int32 timeout = 8;
|
|
string timezone = 9;
|
|
map<string, StringList> headers = 10;
|
|
string authToken = 11;
|
|
string encoding = 12;
|
|
}
|
|
|
|
message RenderResponse {
|
|
string error = 1;
|
|
}
|
|
|
|
message RenderCSVRequest {
|
|
string url = 1;
|
|
string filePath = 2;
|
|
string renderKey = 3;
|
|
string domain = 4;
|
|
int32 timeout = 5;
|
|
string timezone = 6;
|
|
map<string, StringList> headers = 7;
|
|
string authToken = 8;
|
|
}
|
|
|
|
message RenderCSVResponse {
|
|
string error = 1;
|
|
string fileName = 2;
|
|
}
|
|
|
|
service Renderer {
|
|
rpc Render(RenderRequest) returns (RenderResponse);
|
|
rpc RenderCSV(RenderCSVRequest) returns (RenderCSVResponse);
|
|
}
|