initial commit

This commit is contained in:
2022-02-04 20:23:04 +01:00
parent 0c44f26522
commit 2b614f6bd3
21 changed files with 1236 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
syntax = "proto3";
package gocron_server;
option go_package = "github.com/strnophix/gocron-server;gocron_server";
service Scheduler {
rpc RunJob(RunJobRequest) returns (RunJobResponse);
rpc ListenJobs(ListenJobRequest) returns (stream ListenJobResponse);
}
message RunJobRequest {
string UnitName = 1;
int64 RunAt = 10;
}
message RunJobResponse {}
message ListenJobRequest {}
message ListenJobResponse {
string JobName = 1;
string JobResult = 2;
}