29 lines
383 B
Cap'n Proto
29 lines
383 B
Cap'n Proto
using Go = import "/go.capnp";
|
|
@0xb29021ef7421cc32;
|
|
|
|
$Go.package("schema");
|
|
$Go.import("schema");
|
|
|
|
|
|
struct ConnectRequest{
|
|
dest @0 :Text;
|
|
type @1 :ConnectionType;
|
|
metadata @2 :List(Metadata);
|
|
}
|
|
|
|
enum ConnectionType{
|
|
http @0;
|
|
websocket @1;
|
|
tcp @2;
|
|
}
|
|
|
|
struct Metadata {
|
|
key @0 :Text;
|
|
val @1 :Text;
|
|
}
|
|
|
|
struct ConnectResponse{
|
|
error @0 :Text;
|
|
metadata @1 :List(Metadata);
|
|
}
|