Changeset 81e420c in nscp for libs


Ignore:
Timestamp:
09/01/11 07:05:41 (21 months ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
3b11e65
Parents:
1307e3f5
Message:
  • Added support for loading same plugin twice (in different sessions)
  • Added preliminary support for routing passive checks
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libs/protobuf/plugin.proto

    rb38e845 r81e420c  
    2323    optional bool bool_data = 5; 
    2424  } 
     25 
     26  message KeyValue { 
     27    required string key = 1; 
     28    required string value = 2; 
     29    repeated string data = 3; 
     30  } 
    2531   
    2632 
     
    3036 
    3137  message Header { 
    32     enum Type { 
    33       QUERY_REQUEST = 1; 
    34       QUERY_RESPONSE = 2; 
    35        
    36       EXEC_REQUEST = 3; 
    37       EXEC_RESPONSE = 4; 
    38        
    39       LOG_MESSAGE = 5; 
    40     }; 
    41     required Type type = 1; 
    42     required Common.Version version = 2; 
    43     optional Common.Version max_supported_version = 3; 
    44      
    45     optional string sender = 17; 
    46     optional string recipient = 18; 
    47     optional int64 id = 19; 
    48   }; 
    49  
     38     
     39    required Common.Version version = 1; 
     40    optional Common.Version max_supported_version = 2; 
     41     
     42    optional string sender = 3; 
     43    optional string recipient = 4; 
     44     
     45    optional int64 id = 16; 
     46     
     47    repeated Common.KeyValue metadata = 5; 
     48    repeated string tags = 6; 
     49  }; 
     50 
     51  message Attachment { 
     52     
     53    optional int64 id = 1; 
     54    required string type = 2; 
     55    repeated Common.KeyValue metadata = 3; 
     56    repeated string tags = 4; 
     57    required string data = 5; 
     58  }; 
     59   
    5060  message PerformanceData { 
    5161    message IntValue { 
     
    97107    required string command = 2; 
    98108    repeated string arguments = 3; 
     109    repeated Common.Attachment attachments = 17; 
    99110  }; 
    100111 
    101112  required Common.Header header = 1; 
    102113  repeated Request payload = 2; 
     114  repeated Common.Attachment attachments = 3; 
    103115} 
    104116message QueryResponseMessage { 
     
    112124    required Common.ResultCode result = 3; 
    113125    required string message = 4; 
    114     optional string legacyPerf = 17; 
    115126    repeated Common.PerformanceData perf = 5; 
     127    repeated Common.Attachment attachments = 17; 
    116128     
    117129  } 
     
    119131  required Common.Header header = 1; 
    120132  repeated Response payload = 2; 
     133  repeated Common.Attachment attachments = 3; 
    121134} 
    122135 
     
    160173    required string command = 2; 
    161174    repeated string arguments = 3; 
     175    repeated Common.Attachment attachments = 17; 
    162176  }; 
    163177 
    164178  required Common.Header header = 1; 
    165179  repeated Request payload = 2; 
     180  repeated Common.Attachment attachments = 3; 
    166181} 
    167182message ExecuteResponseMessage { 
     
    190205     
    191206    optional ResponseData data = 11; 
     207    repeated Common.Attachment attachments = 17; 
    192208     
    193209  } 
    194210  required Common.Header header = 1; 
    195211  repeated Response payload = 2; 
     212  repeated Common.Attachment attachments = 3; 
    196213} 
    197214 
     
    206223  required Common.Header header = 1; 
    207224  repeated QueryResponseMessage.Response payload = 2; 
     225  repeated Common.Attachment attachments = 3; 
    208226} 
    209227 
Note: See TracChangeset for help on using the changeset viewer.