2018-05-10 23:53:25 +02:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package mainflux;
|
|
|
|
|
2018-05-15 17:13:09 +02:00
|
|
|
service ThingsService {
|
2018-05-21 12:51:46 +02:00
|
|
|
rpc CanAccess(AccessReq) returns (ThingID) {}
|
|
|
|
rpc Identify(Token) returns (ThingID) {}
|
2018-05-10 23:53:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
service UsersService {
|
2018-05-21 12:51:46 +02:00
|
|
|
rpc Identify(Token) returns (UserID) {}
|
2018-05-10 23:53:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message AccessReq {
|
|
|
|
string token = 1;
|
2018-05-21 12:51:46 +02:00
|
|
|
uint64 chanID = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ThingID {
|
|
|
|
uint64 value = 1;
|
2018-05-10 23:53:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message Token {
|
|
|
|
string value = 1;
|
|
|
|
}
|
|
|
|
|
2018-05-21 12:51:46 +02:00
|
|
|
message UserID {
|
2018-05-10 23:53:25 +02:00
|
|
|
string value = 1;
|
|
|
|
}
|