34 lines
658 B
Protocol Buffer
34 lines
658 B
Protocol Buffer
syntax = 'proto3';
|
|
package overpush;
|
|
|
|
option go_package = '.;pb';
|
|
|
|
enum AlertType {
|
|
AlertTypeInvalid = 0;
|
|
AlertTypeMessage = 1;
|
|
AlertTypeMessageWithTitle = 2;
|
|
AlertTypeMessageWithAttachment = 3;
|
|
}
|
|
|
|
enum Priority {
|
|
PriorityInvalid = 0;
|
|
PriorityLowest = 1;
|
|
PriorityLow = 2;
|
|
PriorityNormal = 3;
|
|
PriorityHigh = 4;
|
|
PriorityEmergency = 5;
|
|
}
|
|
|
|
message Message {
|
|
uint64 timestamp = 1;
|
|
AlertType type = 2;
|
|
Priority priority = 3;
|
|
repeated string recipients = 4;
|
|
string stream_name = 5;
|
|
// string transmitter = 6;
|
|
|
|
string title = 8;
|
|
string text = 9;
|
|
bytes attachment = 10;
|
|
}
|