syntax = "proto3";
package panoptes;

option go_package = "panoptes.com/src/panoptes/main";

enum ComponentType {
    Text = 0;
    Chart = 1;
}

message Container {
    string name = 1;
    string port = 2;
}

message Component {
    string id = 1;
    string name = 2;
    ComponentType type = 3;
}

message Schema {
    repeated Component components = 1;
}

message TextComponent {
    string id = 1;
    string name = 2;
    string text = 3;
    bool websocket = 4;
}

message ChartComponent {
    int32 id = 1;
    string name = 2;
    string type = 3;
    repeated string labels = 4;
    repeated int32 values = 5;
    bool websocket = 6;
}
