Source

event_shipper / lib / event_shipper / protocol / v1.proto

Full commit

// V1 of the on the wire protocol. Use
//  rprotoc -o lib/event_shipper/protocol/ lib/event_shipper/protocol/v1.proto
// to generate this. 

package event_shipper.protocol;

message Encrypted {
  required bytes salt = 1; 
  required bytes iv = 2; 
  required bytes ciphertext = 3; 
  required string user = 4; 
}

message Event {
  // The queue to write this event to.
  required string queue = 1; 
  // A JSON hash of the event
  required string json = 2; 
}

message Transmission {
  // Should be set to the number 1 to match this file (v1.proto)
  // Allows for breaking change versioning on top of field versioning. 
  //
  required uint32 version = 1; 

  // Currently, a transmission will only include one event. This may change.
  repeated Event events = 2; 
}