-
-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add Connect-RPC service definitions for 6 plugins #70
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -14,3 +14,4 @@ | |
| # Dependency directories (remove the comment below to include it) | ||
| # vendor/ | ||
| .idea | ||
| .claude/settings.local.json | ||
This file contains hidden or 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 hidden or 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,28 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package applogger.v2; | ||
|
|
||
| import "applogger/v2/applogger.proto"; | ||
|
|
||
| option go_package = "github.com/roadrunner-server/api-go/v6/applogger/v2;apploggerV2"; | ||
| option php_metadata_namespace = "RoadRunner\\AppLogger\\DTO\\V2\\GPBMetadata"; | ||
| option php_namespace = "RoadRunner\\AppLogger\\DTO\\V2"; | ||
|
|
||
| // LogMessage carries a plain string log payload for the Error/Info/Warning/Debug/Log RPCs. | ||
| // Domain-specific so future fields (level, caller skip, etc.) can be added without breaking the wire. | ||
| message LogMessage { | ||
| string message = 1; | ||
| } | ||
|
|
||
| service AppLoggerService { | ||
| rpc Error(LogMessage) returns (LogResponse); | ||
| rpc ErrorWithContext(LogEntry) returns (LogResponse); | ||
| rpc Info(LogMessage) returns (LogResponse); | ||
| rpc InfoWithContext(LogEntry) returns (LogResponse); | ||
| rpc Warning(LogMessage) returns (LogResponse); | ||
| rpc WarningWithContext(LogEntry) returns (LogResponse); | ||
| rpc Debug(LogMessage) returns (LogResponse); | ||
| rpc DebugWithContext(LogEntry) returns (LogResponse); | ||
| rpc Log(LogMessage) returns (LogResponse); | ||
| rpc LogWithContext(LogEntry) returns (LogResponse); | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,20 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package kv.v2; | ||
|
|
||
| import "kv/v2/request.proto"; | ||
| import "kv/v2/response.proto"; | ||
|
|
||
| option go_package = "github.com/roadrunner-server/api-go/v6/kv/v2;kvV2"; | ||
| option php_metadata_namespace = "RoadRunner\\KV\\DTO\\V2\\GPBMetadata"; | ||
| option php_namespace = "RoadRunner\\KV\\DTO\\V2"; | ||
|
|
||
| service KvService { | ||
| rpc Has(KvRequest) returns (KvResponse); | ||
| rpc Set(KvRequest) returns (KvResponse); | ||
| rpc MGet(KvRequest) returns (KvResponse); | ||
| rpc MExpire(KvRequest) returns (KvResponse); | ||
| rpc TTL(KvRequest) returns (KvResponse); | ||
| rpc Delete(KvRequest) returns (KvResponse); | ||
| rpc Clear(KvRequest) returns (KvResponse); | ||
| } |
This file contains hidden or 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,18 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package lock.v1; | ||
|
|
||
| import "lock/v1/lock.proto"; | ||
|
|
||
| option go_package = "github.com/roadrunner-server/api-go/v6/lock/v1;lockV1"; | ||
| option php_metadata_namespace = "RoadRunner\\Lock\\DTO\\V1\\GPBMetadata"; | ||
| option php_namespace = "RoadRunner\\Lock\\DTO\\V1"; | ||
|
|
||
| service LockService { | ||
| rpc Lock(LockRequest) returns (LockResponse); | ||
| rpc LockRead(LockRequest) returns (LockResponse); | ||
| rpc Release(LockRequest) returns (LockResponse); | ||
| rpc ForceRelease(LockRequest) returns (LockResponse); | ||
| rpc Exists(LockRequest) returns (LockResponse); | ||
| rpc UpdateTTL(LockRequest) returns (LockResponse); | ||
| } |
This file contains hidden or 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,21 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package service.v1; | ||
|
|
||
| import "service/v1/service.proto"; | ||
|
|
||
| option go_package = "github.com/roadrunner-server/api-go/v6/service/v1;serviceV1"; | ||
| option php_metadata_namespace = "RoadRunner\\Service\\DTO\\V1\\GPBMetadata"; | ||
| option php_namespace = "RoadRunner\\Service\\DTO\\V1"; | ||
|
|
||
| // ServiceManager exposes lifecycle and status RPCs for the service plugin. | ||
| // RPC method names are prefixed (CreateService, GetStatus, …) to avoid | ||
| // collisions with same-named messages in this package (Create, Status, …). | ||
| service ServiceManager { | ||
| rpc CreateService(Create) returns (Response); | ||
| rpc Terminate(Service) returns (Response); | ||
| rpc Restart(Service) returns (Response); | ||
| rpc GetStatus(Service) returns (Status); | ||
| rpc GetStatuses(Service) returns (Statuses); | ||
| rpc ListServices(Service) returns (List); | ||
| } |
This file contains hidden or 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,15 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package status.v2; | ||
|
|
||
| import "status/v2/request.proto"; | ||
| import "status/v2/response.proto"; | ||
|
|
||
| option go_package = "github.com/roadrunner-server/api-go/v6/status/v2;statusV2"; | ||
| option php_metadata_namespace = "RoadRunner\\Status\\DTO\\V2\\GPBMetadata"; | ||
| option php_namespace = "RoadRunner\\Status\\DTO\\V2"; | ||
|
|
||
| service StatusService { | ||
| rpc Status(StatusRequest) returns (StatusResponse); | ||
| rpc Ready(StatusRequest) returns (StatusResponse); | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.