Initial import.
This commit is contained in:
11
proto/Makefile
Normal file
11
proto/Makefile
Normal file
@@ -0,0 +1,11 @@
|
||||
all: telemetry.pb.go telemetry_pb2.py
|
||||
|
||||
%.pb.go: %.proto
|
||||
protoc -I=. --go_out=. *.proto
|
||||
|
||||
%_pb2.py: %.proto
|
||||
protoc -I=. --python_out=. *.proto
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f *.pb.go *_pb2.py
|
||||
9
proto/telemetry.proto
Normal file
9
proto/telemetry.proto
Normal file
@@ -0,0 +1,9 @@
|
||||
syntax = 'proto3';
|
||||
package telemetrypb;
|
||||
option go_package = '.;telemetrypb';
|
||||
|
||||
message Packet {
|
||||
string topic = 1;
|
||||
uint64 timestamp = 2;
|
||||
bytes payload = 3;
|
||||
}
|
||||
Reference in New Issue
Block a user