latest.ipv8.REST.tunnel_endpoint
Module Contents
Classes
This endpoint is responsible for handling requests for DHT data. |
Attributes
- latest.ipv8.REST.tunnel_endpoint.SpeedTestResponseSchema
- class latest.ipv8.REST.tunnel_endpoint.TunnelEndpoint
Bases:
latest.ipv8.REST.base_endpoint.BaseEndpoint
[latest.ipv8.types.IPv8
]This endpoint is responsible for handling requests for DHT data.
- initialize(session: latest.ipv8.types.IPv8) None
Initialize this endpoint for the given session instance.
- get_settings(_: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Return a dictionary of all tunnel settings.
- async get_circuits(_: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Return a list of all current circuits.
- async speed_test_existing_circuit(request: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Test the upload or download speed of a circuit.
- async speed_test_new_circuit(request: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Test the upload or download speed of a newly created circuit. The circuit is destroyed after the test has completed.
- async run_speed_test(circuit: latest.ipv8.messaging.anonymization.tunnel.Circuit, params: dict) latest.ipv8.REST.base_endpoint.Response
Run a speed test on the given circuit and form an HTTP response.
- async get_relays(_: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Return a list of all current relays.
- async get_exits(_: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Return a list of all current exits.
- async get_swarms(_: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Return a list of all current hidden swarms.
- async get_swarm_size(request: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Estimate the hidden swarm size for a given infohash.
- async get_peers(_: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Return a list of all peers currently part of the tunnel community.
- async get_dht_peers(_: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Return a list of all hidden services peers that are in the local DHT store.
- async get_pex_peers(_: aiohttp.abc.Request) latest.ipv8.REST.base_endpoint.Response
Return a list of all hidden services peers that are in the local PEX store.