micro/network/proto/network.proto
2019-07-01 23:12:05 +01:00

29 lines
552 B
Protocol Buffer

syntax = "proto3";
package go.micro.network;
// A connect message is for connecting to the network
message Connect {
// Lease specifies an existing lease to indicate
// we don't need a new address, we just want to
// establish a link.
Lease lease = 1;
}
// A lease is returned to anyone attempting to connect.
message Lease {
// unique lease id
string id = 1;
// timestamp of lease
int64 timestamp = 2;
// the node
Node node = 3;
}
// A node is the network node
message Node {
string id = 1;
string address = 2;
string network = 3;
}