File tree Expand file tree Collapse file tree 5 files changed +59
-3
lines changed Expand file tree Collapse file tree 5 files changed +59
-3
lines changed Original file line number Diff line number Diff line change 1818<project xmlns =" http://maven.apache.org/POM/4.0.0"
1919 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2020 xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
21+ <modelVersion >4.0.0</modelVersion >
2122 <parent >
2223 <artifactId >groza</artifactId >
2324 <groupId >iot.technology</groupId >
2425 <version >1.0-SNAPSHOT</version >
2526 </parent >
26- <modelVersion >4.0.0</modelVersion >
2727
2828 <artifactId >groza-dao</artifactId >
29+ <name >Groza :: Server :: Dao</name >
2930
3031 <properties >
3132 <maven .compiler.source>8</maven .compiler.source>
Original file line number Diff line number Diff line change 1010 <modelVersion >4.0.0</modelVersion >
1111
1212 <artifactId >groza-transport-api</artifactId >
13+ <name >Groza :: Server :: Transport :: Api</name >
1314
1415 <properties >
1516 <maven .compiler.source>8</maven .compiler.source>
Original file line number Diff line number Diff line change 1+ syntax = "proto3" ;
2+
3+ package transport ;
4+
5+ option java_package = "iot.technology.server.gen.transport" ;
6+ option java_outer_classname = "TransportProtos" ;
7+
8+ enum KeyValueType {
9+ BOOLEAN_V = 0 ;
10+ LONG_V = 1 ;
11+ DOUBLE_V = 2 ;
12+ STRING_V = 3 ;
13+ JSON_V = 4 ;
14+ }
15+
16+ message KeyValueProto {
17+ string key = 1 ;
18+ KeyValueType type = 2 ;
19+ bool bool_v = 3 ;
20+ int64 long_v = 4 ;
21+ double double_v = 5 ;
22+ string string_v = 6 ;
23+ string json_v = 7 ;
24+ }
25+
26+ message TsKvProto {
27+ int64 ts = 1 ;
28+ KeyValueProto kv = 2 ;
29+ }
30+
31+ message TsKvListProto {
32+ int64 ts = 1 ;
33+ repeated KeyValueProto kv = 2 ;
34+ }
35+
36+ message PostTelemetryMsg {
37+ repeated TsKvListProto tsKvList = 1 ;
38+ }
39+
40+ message PostAttributeMsg {
41+ repeated KeyValueProto kv = 1 ;
42+ }
Original file line number Diff line number Diff line change 1+ syntax = "proto3" ;
2+ package transportapi ;
3+
4+ option java_package = "iot.technology.server.gen.transport" ;
5+ option java_outer_classname = "TransportApiProtos" ;
6+
7+ import "queue.proto" ;
8+
9+ message TelemetryMsg {
10+ string deviceName = 1 ;
11+ transport.PostTelemetryMsg msg = 2 ;
12+ }
Original file line number Diff line number Diff line change 5959 <commons-lang3 .version>3.4</commons-lang3 .version>
6060 <gson .version>2.6.2</gson .version>
6161 <protobuf .version>3.11.4</protobuf .version>
62- <grpc .version>1.22 .1</grpc .version>
62+ <grpc .version>1.42 .1</grpc .version>
6363 <mysql .version>8.0.16</mysql .version>
6464 <postgresql .driver.version>9.4.1211</postgresql .driver.version>
6565 <cassandra .version>3.5.0</cassandra .version>
441441 -->
442442 <protocArtifact >com.google.protobuf:protoc:${protobuf.version} :exe:${os.detected.classifier} </protocArtifact >
443443 <pluginId >grpc-java</pluginId >
444- <pluginArtifact >io.grpc:protoc-gen-grpc-java:1.0.0 :exe:${os.detected.classifier} </pluginArtifact >
444+ <pluginArtifact >io.grpc:protoc-gen-grpc-java:${grpc.version} :exe:${os.detected.classifier} </pluginArtifact >
445445 </configuration >
446446 <executions >
447447 <execution >
You can’t perform that action at this time.
0 commit comments