Mainflux.mainflux/internal.proto

37 lines
507 B
Protocol Buffer
Raw Normal View History

//
// Copyright (c) 2018
// Mainflux
//
// SPDX-License-Identifier: Apache-2.0
//
2018-05-11 05:53:25 +08:00
syntax = "proto3";
package mainflux;
service ThingsService {
rpc CanAccess(AccessReq) returns (ThingID) {}
rpc Identify(Token) returns (ThingID) {}
2018-05-11 05:53:25 +08:00
}
service UsersService {
rpc Identify(Token) returns (UserID) {}
2018-05-11 05:53:25 +08:00
}
message AccessReq {
string token = 1;
uint64 chanID = 2;
}
message ThingID {
uint64 value = 1;
2018-05-11 05:53:25 +08:00
}
message Token {
string value = 1;
}
message UserID {
2018-05-11 05:53:25 +08:00
string value = 1;
}