Files
sendico/api/proto/envelope.proto
Stephan D 62a6631b9a
All checks were successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
service backend
2025-11-07 18:35:26 +01:00

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
}