23 lines
623 B
Protocol Buffer
23 lines
623 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
import "google/protobuf/timestamp.proto";
|
|
|
|
option go_package = "github.com/tech/sendico/pkg/generated/gmessaging";
|
|
|
|
message NotificationEvent {
|
|
string type = 1; // NotificationType
|
|
string action = 2; // NotificationAction
|
|
}
|
|
|
|
message EventMetadata {
|
|
string sender = 1;
|
|
string message_id = 2;
|
|
google.protobuf.Timestamp timestamp = 3;
|
|
}
|
|
|
|
message Envelope {
|
|
NotificationEvent event = 2; // Notification event with type and action
|
|
bytes message_data = 3; // Serialized Protobuf message data
|
|
EventMetadata metadata = 4; // Metadata about the event
|
|
}
|