Closed rafaeling closed 3 months ago
- rpc Get(GetRequest) returns (GetResponse);
- rpc Set(stream SetRequest) returns (SetResponse);
- rpc Subscribe(SubscribeRequest) returns (stream SubscribeResponse);
- rpc Actuate(ActuateRequest) returns (ActuateResponse);
- rpc Metadata(MetadataRequest) returns (MetadataResponse);
- rpc GetServerInfo(GetServerInfoRequest) returns (GetServerInfoResponse);
https://grpc.github.io/grpc/core/md_doc_statuscodes.html
I suggest we rename Metadata to GetMetadata to more closely reflect what it is doing.
Metadata
GetMetadata
Service calls draft:
- rpc Get(GetRequest) returns (GetResponse);
- rpc Set(stream SetRequest) returns (SetResponse);
- rpc Subscribe(SubscribeRequest) returns (stream SubscribeResponse);
- rpc Actuate(ActuateRequest) returns (ActuateResponse);
- rpc Metadata(MetadataRequest) returns (MetadataResponse);
- rpc GetServerInfo(GetServerInfoRequest) returns (GetServerInfoResponse);
Actor + Request Type + Use cases + Response{Ok, Error/s}:
rpc Get(GetRequest) returns (GetResponse)
rpc Set(stream SetRequest) returns (SetResponse)
rpc Subscribe(SubscribeRequest) returns (stream SubscribeResponse)
rpc Actuate(ActuateRequest) returns (ActuateResponse)
rpc Metadata(MetadataRequest) returns (MetadataResponse)
rpc GetServerInfo(GetServerInfoRequest) returns (GetServerInfoResponse)
References:
https://grpc.github.io/grpc/core/md_doc_statuscodes.html