Skip to content

Commit

Permalink
feat: MapIPEndNodeRequirement proto declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
mishig25 committed Oct 14, 2018
1 parent ee0ea52 commit fb41a09
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from typing import List, Tuple
from protos.bfcp_pb2 import NodeTable
from protos.bfcp_pb2 import NodeTable, EndNodeRequirement
from google.protobuf import text_format


Expand Down Expand Up @@ -56,3 +56,4 @@ def write_to_file(self, file_dir: str, node_table: NodeTable) -> None:
file = open(file_dir, 'w')
file.write(text_proto)
file.close()

5 changes: 5 additions & 0 deletions protos/bfcp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,8 @@ message AESKey {
// encrypted with the public key of the receiver
bytes key = 1;
}

// Dictionary that stores a pair (ip_address: string, EndNodeRequirement)
message MapIPEndNodeRequirement {
map<string, EndNodeRequirement> table = 1;
}
90 changes: 89 additions & 1 deletion protos/bfcp_pb2.py

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

0 comments on commit fb41a09

Please sign in to comment.