Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Locale and timezone setting support #18

Merged
merged 6 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ console = "0.15"
http = "0.2"
http-body = "0.4.2"
hyper = "0.14"
tokio = {version = "1.0", features = ["rt-multi-thread", "time", "macros"]}
prost = "0.12"
regex = "1.11"
tokio = {version = "1.0", features = ["rt-multi-thread", "time", "macros", "fs"]}
tokio-stream = "0.1"
tokio-vsock = "0.5"
tonic = {version="0.12.2", features = ["tls"]}
Expand Down
385 changes: 261 additions & 124 deletions api/admin/admin.pb.go

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion api/admin/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ message RegistryRequest {
}

message RegistryResponse {
string CmdStatus = 1;
optional string Error = 1;
}

message ApplicationRequest {
Expand Down Expand Up @@ -65,12 +65,22 @@ message WatchItem {
}
}

message LocaleRequest {
string Locale = 1;
}

message TimezoneRequest {
string Timezone = 1;
}

service AdminService {
rpc RegisterService(RegistryRequest) returns (RegistryResponse) {}
rpc StartApplication(ApplicationRequest) returns (ApplicationResponse) {}
rpc PauseApplication(ApplicationRequest) returns (ApplicationResponse) {}
rpc ResumeApplication(ApplicationRequest) returns (ApplicationResponse) {}
rpc StopApplication(ApplicationRequest) returns (ApplicationResponse) {}
rpc SetLocale(LocaleRequest) returns (Empty) {}
rpc SetTimezone(TimezoneRequest) returns (Empty) {}
rpc Poweroff(Empty) returns (Empty) {}
rpc Reboot(Empty) returns (Empty) {}
rpc Suspend(Empty) returns (Empty) {}
Expand Down
76 changes: 75 additions & 1 deletion api/admin/admin_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions api/hwid/hwid.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/hwid/hwid_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading