-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
055805d
commit fd3d5d9
Showing
23 changed files
with
331 additions
and
62 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "com.soulfiremc.grpc.generated"; | ||
option java_multiple_files = true; | ||
|
||
package soulfire.v1; | ||
|
||
import "soulfire/common.proto"; | ||
|
||
message ServerConfig { | ||
repeated SettingsNamespace settings = 1; | ||
} | ||
|
||
message ServerUpdateConfigRequest { | ||
ServerConfig config = 1; | ||
} | ||
|
||
message ServerUpdateConfigResponse { | ||
} | ||
|
||
service ServerService { | ||
rpc updateServerConfig(ServerUpdateConfigRequest) returns (ServerUpdateConfigResponse); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
syntax = "proto3"; | ||
|
||
option java_package = "com.soulfiremc.grpc.generated"; | ||
option java_multiple_files = true; | ||
|
||
package soulfire.v1; | ||
|
||
import "soulfire/common.proto"; | ||
|
||
enum UserRole { | ||
ADMIN = 0; | ||
USER = 1; | ||
} | ||
|
||
message UserCreateRequest { | ||
string username = 1; | ||
UserRole role = 2; | ||
} | ||
|
||
message UserCreateResponse { | ||
string id = 1; | ||
} | ||
|
||
message UserDeleteRequest { | ||
string id = 1; | ||
} | ||
|
||
message UserDeleteResponse { | ||
} | ||
|
||
message UserListRequest { | ||
} | ||
|
||
message UserListResponse { | ||
message User { | ||
string id = 1; | ||
string username = 2; | ||
UserRole role = 3; | ||
} | ||
|
||
repeated User users = 1; | ||
} | ||
|
||
message UserInfoRequest { | ||
string id = 1; | ||
} | ||
|
||
message UserInfoResponse { | ||
string username = 1; | ||
UserRole role = 2; | ||
} | ||
|
||
service UserService { | ||
rpc createUser(UserCreateRequest) returns (UserCreateResponse); | ||
rpc deleteUser(UserDeleteRequest) returns (UserDeleteResponse); | ||
rpc listUsers(UserListRequest) returns (UserListResponse); | ||
rpc getUserInfo(UserInfoRequest) returns (UserInfoResponse); | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.