Skip to content

Commit

Permalink
Merge pull request #67 from dolittle/rename-alias-things
Browse files Browse the repository at this point in the history
Change AggregateRoot registration so we can do cool things in the future
  • Loading branch information
jakhog authored Oct 28, 2021
2 parents 027fb34 + fff088a commit 36e84fb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions Source/Runtime/Aggregates/AggregateRoots.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@ syntax = "proto3";

import "Fundamentals/Artifacts/Artifact.proto";
import "Fundamentals/Protobuf/Failure.proto";
import "Fundamentals/Services/CallContext.proto";

package dolittle.runtime.aggregates;

option csharp_namespace = "Dolittle.Runtime.Aggregates.Contracts";
option go_package = "go.dolittle.io/contracts/runtime/aggregates";

message AggregateRootRegistrationRequest {
artifacts.Artifact aggregateRoot = 1;
optional string alias = 2;
message AggregateRootAliasRegistrationRequest {
services.CallRequestContext callContext = 1;
artifacts.Artifact aggregateRoot = 2;
optional string alias = 3;
}

message AggregateRootRegistrationResponse {
message AggregateRootAliasRegistrationResponse {
protobuf.Failure failure = 1;
}

service AggregateRoots {
rpc Register(AggregateRootRegistrationRequest) returns(AggregateRootRegistrationResponse);
rpc RegisterAlias(AggregateRootAliasRegistrationRequest) returns(AggregateRootAliasRegistrationResponse);
}
6 changes: 3 additions & 3 deletions Source/Runtime/Embeddings/Store.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ option csharp_namespace = "Dolittle.Runtime.Embeddings.Contracts";
option go_package = "go.dolittle.io/contracts/runtime/embeddings";

message GetOneRequest {
services.CallRequestContext callContext = 1;
services.CallRequestContext callContext = 1;
protobuf.Uuid embeddingId = 2;
string key = 3;
}

message GetKeysRequest {
services.CallRequestContext callContext = 1;
services.CallRequestContext callContext = 1;
protobuf.Uuid embeddingId = 2;
}

message GetAllRequest {
services.CallRequestContext callContext = 1;
services.CallRequestContext callContext = 1;
protobuf.Uuid embeddingId = 2;
}

Expand Down
6 changes: 4 additions & 2 deletions Source/Runtime/Events/EventTypes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ syntax = "proto3";

import "Fundamentals/Artifacts/Artifact.proto";
import "Fundamentals/Protobuf/Failure.proto";
import "Fundamentals/Services/CallContext.proto";

package dolittle.runtime.events;

option csharp_namespace = "Dolittle.Runtime.Events.Contracts";
option go_package = "go.dolittle.io/contracts/runtime/events";

message EventTypeRegistrationRequest {
artifacts.Artifact eventType = 1;
optional string alias = 2;
services.CallRequestContext callContext = 1;
artifacts.Artifact eventType = 2;
optional string alias = 3;
}

message EventTypeRegistrationResponse {
Expand Down

0 comments on commit 36e84fb

Please sign in to comment.