Skip to content

Commit

Permalink
feat: add siren provider plugin proto
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdh committed Sep 8, 2023
1 parent 8300157 commit 43312ca
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions gotocompany/siren/provider/v1beta1/provider.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
syntax = "proto3";

package gotocompany.siren.provider.v1beta1;

import "gotocompany/siren/v1beta1/siren.proto";

option go_package = "github.com/goto/proton/gotocompany/siren/provider/v1beta1;sirenproviderv1beta1";
option java_multiple_files = true;
option java_outer_classname = "ServiceManager";
option java_package = "com.gotocompany.proton.siren.provider";

message SyncRuntimeConfigRequest {
string namespaceID = 1;

Check failure on line 13 in gotocompany/siren/provider/v1beta1/provider.proto

View workflow job for this annotation

GitHub Actions / validate

Field name "namespaceID" should be lower_snake_case, such as "namespace_id".
string namespaceURN = 2;

Check failure on line 14 in gotocompany/siren/provider/v1beta1/provider.proto

View workflow job for this annotation

GitHub Actions / validate

Field name "namespaceURN" should be lower_snake_case, such as "namespace_urn".
gotocompany.siren.v1beta1.Provider provider = 3;
}

message SyncRuntimeConfigResponse {}

message UpsertRuleRequest {
string namespaceURN = 1;

Check failure on line 21 in gotocompany/siren/provider/v1beta1/provider.proto

View workflow job for this annotation

GitHub Actions / validate

Field name "namespaceURN" should be lower_snake_case, such as "namespace_urn".
gotocompany.siren.v1beta1.Provider provider = 3;
gotocompany.siren.v1beta1.Rule rule = 4;
gotocompany.siren.v1beta1.Template template = 5;
}

message UpsertRuleResponse {}

service ProviderService {
rpc SyncRuntimeConfig(SyncRuntimeConfigRequest) returns (SyncRuntimeConfigResponse);
rpc UpsertRule(UpsertRuleRequest) returns (UpsertRuleResponse);
}
2 changes: 1 addition & 1 deletion gotocompany/siren/v1beta1/siren.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import "google/protobuf/timestamp.proto";
import "protoc-gen-openapiv2/options/annotations.proto";
import "validate/validate.proto";

option go_package = "github.com/goto/proton/siren/v1beta1;sirenv1beta1";
option go_package = "./v1beta1;sirenv1beta1";
option java_multiple_files = true;
option java_outer_classname = "ServiceManager";
option java_package = "com.gotocompany.proton.siren";
Expand Down

0 comments on commit 43312ca

Please sign in to comment.