Sha256: d7d3ce77e150f6ef4ac006c623cf59a4c177e87674a6b808c859c9be771ada52

Contents?: true

Size: 992 Bytes

Versions: 7

Compression:

Stored size: 992 Bytes

Contents

syntax = "proto3";

package anycable;

service RPC {
  rpc Connect (ConnectionRequest) returns (ConnectionResponse) {}
  rpc Command (CommandMessage) returns (CommandResponse) {}
  rpc Disconnect (DisconnectRequest) returns (DisconnectResponse) {}
}

enum Status {
  ERROR = 0;
  SUCCESS = 1;
}

message ConnectionRequest {
  string path = 1;
  map<string,string> headers = 2;
}

message ConnectionResponse {
  Status status = 1;
  string identifiers = 2;
  repeated string transmissions = 3;
}

message CommandMessage {
  string command = 1;
  string identifier = 2;
  string connection_identifiers = 3;
  string data = 4;
}

message CommandResponse {
  Status status = 1;
  bool disconnect = 2;
  bool stop_streams = 3;
  repeated string streams = 4;
  repeated string transmissions = 5;
}

message DisconnectRequest {
  string identifiers = 1;
  repeated string subscriptions = 2;
  string path = 3;
  map<string,string> headers = 4;
}

message DisconnectResponse {
  Status status = 1;
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
anycable-0.4.6 protos/rpc.proto
anycable-0.4.5 protos/rpc.proto
anycable-0.4.4 protos/rpc.proto
anycable-0.4.3 protos/rpc.proto
anycable-0.4.2 protos/rpc.proto
anycable-0.4.1 protos/rpc.proto
anycable-0.4.0 protos/rpc.proto