Skip to content

Commit

Permalink
Merge pull request #55 from junghao/datalogger-pb
Browse files Browse the repository at this point in the history
Datalogger protobuf.
  • Loading branch information
danieldooley authored Mar 27, 2019
2 parents adb6c04 + 45d603b commit bbdd97e
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 0 deletions.
111 changes: 111 additions & 0 deletions datalogger_pb/datalogger.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions protobuf/datalogger/datalogger.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
syntax = "proto3";

// protoc --proto_path=protobuf/datalogger --go_out=datalogger_pb protobuf/datalogger/datalogger.proto

package datalogger;
option go_package = "datalogger_pb";

//A structure containing all the devices listed in the network repo.
message Devices {
map<string, Device> devices = 1;
}

message Device {
string hostname = 1;
string ipaddr = 2;
string model = 3;
repeated string tags = 4;
}

0 comments on commit bbdd97e

Please sign in to comment.