Skip to content

Commit 716e022

Browse files
committed
feature: jobs service
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
1 parent 5bc4692 commit 716e022

5 files changed

Lines changed: 40 additions & 2 deletions

File tree

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
CGO_ENABLED ?= 0
2+
3+
GOBIN := $(if $(shell go env GOBIN),$(shell go env GOBIN),$(GOPATH)/bin)
4+
PATH := $(GOBIN):$(PATH)
5+
6+
generate:
7+
buf generate
8+
clean:
9+
rm -rf build
10+
11+
regenerate: clean generate
12+
13+
install:
14+
@go install github.com/bufbuild/buf/cmd/buf@latest

buf.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: v2
2+
modules:
3+
- path: roadrunner/api
4+
- path: third_party/api
5+
lint:
6+
disallow_comment_ignores: true
7+
ignore:
8+
- third_party/api
9+
- roadrunner/api/centrifugo/api
10+
- roadrunner/api/centrifugo/proxy

roadrunner/api/jobs/v2/request.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ option go_package = "github.com/roadrunner-server/api-go/v6/jobs/v2;jobsV2";
88
option php_metadata_namespace = "RoadRunner\\Jobs\\DTO\\V2\\GPBMetadata";
99
option php_namespace = "RoadRunner\\Jobs\\DTO\\V2";
1010

11-
message PushRequest {
11+
message JobsHandlerRequest {
1212
Job job = 1;
1313
}
1414

roadrunner/api/jobs/v2/response.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ option php_namespace = "RoadRunner\\Jobs\\DTO\\V2";
88

99
// some endpoints receives nothing
1010
// all endpoints returns nothing, except error
11-
message JobResponse {}
11+
message JobsHandlerResponse {}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
syntax = "proto3";
2+
3+
package jobs.v2;
4+
5+
import "jobs/v2/request.proto";
6+
import "jobs/v2/response.proto";
7+
8+
option go_package = "github.com/roadrunner-server/api-go/v6/jobs/v2;jobsV2";
9+
option php_metadata_namespace = "RoadRunner\\Jobs\\DTO\\V2\\GPBMetadata";
10+
option php_namespace = "RoadRunner\\Jobs\\DTO\\V2";
11+
12+
service JobsProxyService {
13+
rpc JobsHandler(JobsHandlerRequest) returns (JobsHandlerResponse);
14+
}

0 commit comments

Comments
 (0)