File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ option go_package = "github.com/roadrunner-server/api-go/v6/jobs/v2;jobsV2";
88option php_metadata_namespace = "RoadRunner\\Jobs\\DTO\\V2\\GPBMetadata" ;
99option php_namespace = "RoadRunner\\Jobs\\DTO\\V2" ;
1010
11- message PushRequest {
11+ message JobsHandlerRequest {
1212 Job job = 1 ;
1313}
1414
Original file line number Diff line number Diff 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 {}
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments