Created
July 12, 2020 02:48
-
-
Save dipeshdulal/9c0f384f39acd4b9d2fc4ba543a0410b to your computer and use it in GitHub Desktop.
Chat Protocol Buffer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
option go_package = "./chatpb"; | |
package chatpb; | |
service ChatService { | |
rpc JoinChannel(Channel) returns (stream Message) {} | |
rpc SendMessage(stream Message) returns (MessageAck) {} | |
} | |
message Channel { | |
string name = 1; | |
string senders_name = 2; | |
} | |
message Message { | |
string sender = 1; | |
Channel channel = 2; | |
string message = 3; | |
} | |
message MessageAck { | |
string status = 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment