2018-08-26 13:15:48 +02:00
|
|
|
//
|
|
|
|
// Copyright (c) 2018
|
|
|
|
// Mainflux
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//
|
|
|
|
|
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-12-05 13:09:25 +01:00
|
|
|
string chanID = 2;
|
2018-05-21 12:51:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message ThingID {
|
2018-12-05 13:09:25 +01:00
|
|
|
string 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;
|
|
|
|
}
|