29 lines
551 B
Protocol Buffer
29 lines
551 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = ".;proto";
|
|
|
|
package proto;
|
|
|
|
service StreamController {
|
|
rpc CountStreamConnection(CountConnectionRequest) returns (CountConnectionResponse) {}
|
|
rpc PushStream(PushStreamRequest) returns (PushStreamResponse) {}
|
|
}
|
|
|
|
message CountConnectionRequest {
|
|
uint64 user_id = 1;
|
|
}
|
|
|
|
message CountConnectionResponse {
|
|
int64 count = 1;
|
|
}
|
|
|
|
message PushStreamRequest {
|
|
uint64 user_id = 1;
|
|
bytes body = 2;
|
|
}
|
|
|
|
message PushStreamResponse {
|
|
bool is_all_success = 1;
|
|
int64 affected_count = 2;
|
|
int64 failed_count = 3;
|
|
} |