syntax = "proto3";
option go_package = "data/";
import "data.proto";

message tx_list{
    repeated tx_info tx = 1;
}

message tx_host{
    repeated string host = 1; 
}

message tx_info{
    string name = 1;
    string drive = 2;
    bool serial  = 3;
    string host = 4;
    uint32 status  = 5;
    string description = 6;
    bool enable = 7;  
    repeated tx_device_info device = 8;
}

message tx_add{
    string name = 1;
    string drive = 2;
    bool serial  = 3;
    string description = 4;
    bytes config = 5;
}

message tx_add_device{
    string name = 1;
    repeated tx_device_info device = 2;
}

message tx_drive_list{
    repeated tx_drive_info tx_drive = 1;
}

message tx_drive_info{
    string name = 1;
    bool serial  = 2;
    bytes config = 3;
}

message tx_drive_config_modbusTCP{
    string host = 1;
    string port = 2;
}

message tx_device_info{
    string name = 1;
    string template = 2;
    repeated m_properties properties = 3;
}

message mb_list{
    repeated mb_info mb = 1;
}

message mb_info{
    string name = 1;
    string type = 2;
    string description = 3;
    repeated m_point points = 4;
}