[tor-bugs] #20542 [Metrics/CollecTor]: structure bridgedescs and modernize
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Nov 2 12:53:27 UTC 2016
#20542: structure bridgedescs and modernize
-----------------------------------+--------------------
Reporter: iwakeh | Owner:
Type: enhancement | Status: new
Priority: Medium | Milestone:
Component: Metrics/CollecTor | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID: #20518
Points: | Reviewer:
Sponsor: |
-----------------------------------+--------------------
* All parsing should be delegated to metrics-lib code.
* Create 'BridgeMain'.
Current picture:
BridgeSnapshotReader only has a constructor of more than 200 lines of
code.
BridgeDescriptorParser actually only determines the descriptor type and
SanitizedBridgesWriter performes parsing and obfuscation.
{{{
+------------------------+
| SanitizedBridgesWriter |
+---o----+---------------+
--/ /- \
--/ /- \
--/ /- \
--/ /- \
--/ /- +------+----------------+
+----------+---------o---+ | BridgeSnapshotReader |
| BridgeDescriptorParser +--------------o-----------------------+
+------------------------+
X o----------+ Y : X holds a Y reference somewhere
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20542>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list