2024-12-23 12:54:51 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package konfa.server.v1;
|
|
|
|
|
|
|
|
option go_package = "/serverv1";
|
|
|
|
|
|
|
|
// import "google/protobuf/timestamp.proto";
|
2024-12-25 18:22:29 +00:00
|
|
|
import "konfa/user/v1/user.proto";
|
2024-12-23 12:54:51 +00:00
|
|
|
import "konfa/channel/v1/channels.proto";
|
|
|
|
|
2024-12-25 18:22:29 +00:00
|
|
|
|
2024-12-23 12:54:51 +00:00
|
|
|
service ServerService {
|
|
|
|
rpc ListServerChannels(ListServerChannelsRequest) returns (ListServerChannelsResponse) {}
|
2024-12-25 18:22:29 +00:00
|
|
|
rpc ListServerUsers(ListServerUsersRequest) returns (ListServerUsersResponse) {}
|
|
|
|
rpc GetUser(GetUserRequest) returns (GetUserResponse) {}
|
2024-12-23 12:54:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ListServerChannelsRequest {
|
|
|
|
string server_id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListServerChannelsResponse {
|
|
|
|
repeated konfa.channel.v1.Channel channels = 1;
|
2024-12-25 18:22:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ListServerUsersRequest {
|
|
|
|
string server_id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListServerUsersResponse {
|
|
|
|
repeated konfa.user.v1.User users = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetUserRequest {
|
|
|
|
string user_id = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetUserResponse {
|
|
|
|
konfa.user.v1.User user = 1;
|
2024-12-23 12:54:51 +00:00
|
|
|
}
|