osrm-backend/traffic_updater/proxy.thrift
Jay f0ef92c87a Update proxy thrift RPC protocol (#29)
* feat: make fromId,toId to optional; add new interface getFlowsByIds

* feat: generate new go proxy codes by thrift 0.12.0
2019-06-26 11:29:58 -07:00

15 lines
300 B
Thrift

struct Flow {
1: optional i64 fromId;
2: optional i64 toId;
3: required i64 wayId;
4: required double speed;
5: required i32 trafficLevel;
}
service ProxyService {
list<Flow> getAllFlows()
Flow getFlowById(1:i64 wayId)
list<Flow> getFlowsByIds(1:list<i64> wayIds)
}