service backend
All checks were successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful

This commit is contained in:
Stephan D
2025-11-07 18:35:26 +01:00
parent 20e8f9acc4
commit 62a6631b9a
537 changed files with 48453 additions and 0 deletions

22
api/proto/envelope.proto Normal file
View File

@@ -0,0 +1,22 @@
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
}