25 lines
351 B
Protocol Buffer
25 lines
351 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package mainflux;
|
||
|
|
||
|
service ClientsService {
|
||
|
rpc CanAccess(AccessReq) returns (Identity) {}
|
||
|
}
|
||
|
|
||
|
service UsersService {
|
||
|
rpc Identify(Token) returns (mainflux.Identity) {}
|
||
|
}
|
||
|
|
||
|
message AccessReq {
|
||
|
string token = 1;
|
||
|
string chanID = 2;
|
||
|
}
|
||
|
|
||
|
message Token {
|
||
|
string value = 1;
|
||
|
}
|
||
|
|
||
|
message Identity {
|
||
|
string value = 1;
|
||
|
}
|