20 lines
445 B
Protocol Buffer
20 lines
445 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package notify.v1;
|
||
|
|
||
|
import "notify/v1/send_notification.proto";
|
||
|
|
||
|
service NotifyService {
|
||
|
rpc SendNotification(SendNotificationRequest) returns (SendNotificationResponse);
|
||
|
rpc SendAttachment(stream SendAttachmentRequest) returns (SendAttachmentResponse);
|
||
|
}
|
||
|
|
||
|
message SendAttachmentRequest {
|
||
|
string notification_id = 1;
|
||
|
string name = 2;
|
||
|
string content_type = 3;
|
||
|
bytes chunk = 4;
|
||
|
}
|
||
|
|
||
|
message SendAttachmentResponse {}
|