latest.ipv8.REST.schema
Module Contents
Classes
Every response contains its sucess status and optionally the error that occurred. |
|
The schema for address information. |
|
The schema for addresses that have a public key. |
|
The schema for overlay statistics. |
|
The schema describing discovery strategies for overlays. |
|
The schema to describe overlays. |
|
The schema to describe values in the DHT. |
Functions
|
Create a schema. Mostly useful for creating single-use schemas on-the-fly. |
- class latest.ipv8.REST.schema.DefaultResponseSchema(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool = False, context: dict | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: str | None = None)
Bases:
marshmallow.Schema
Every response contains its sucess status and optionally the error that occurred.
- success
- error
- class latest.ipv8.REST.schema.Address(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool = False, context: dict | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: str | None = None)
Bases:
marshmallow.Schema
The schema for address information.
- ip
- port
- class latest.ipv8.REST.schema.AddressWithPK(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool = False, context: dict | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: str | None = None)
Bases:
Address
The schema for addresses that have a public key.
- public_key
- class latest.ipv8.REST.schema.OverlayStatisticsSchema(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool = False, context: dict | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: str | None = None)
Bases:
marshmallow.Schema
The schema for overlay statistics.
- num_up
- num_down
- bytes_up
- bytes_down
- diff_time
- class latest.ipv8.REST.schema.OverlayStrategySchema(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool = False, context: dict | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: str | None = None)
Bases:
marshmallow.Schema
The schema describing discovery strategies for overlays.
- name
- target_peers
- class latest.ipv8.REST.schema.OverlaySchema(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool = False, context: dict | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: str | None = None)
Bases:
marshmallow.Schema
The schema to describe overlays.
- id
- my_peer
- global_time
- peers
- overlay_name
- max_peers
- is_isolated
- my_estimated_wan
- my_estimated_lan
- strategies
- statistics
- class latest.ipv8.REST.schema.DHTValueSchema(*, only: marshmallow.types.StrSequenceOrSet | None = None, exclude: marshmallow.types.StrSequenceOrSet = (), many: bool = False, context: dict | None = None, load_only: marshmallow.types.StrSequenceOrSet = (), dump_only: marshmallow.types.StrSequenceOrSet = (), partial: bool | marshmallow.types.StrSequenceOrSet | None = None, unknown: str | None = None)
Bases:
marshmallow.Schema
The schema to describe values in the DHT.
- public_key
- key
- value
- latest.ipv8.REST.schema.schema(**kwargs) marshmallow.Schema
Create a schema. Mostly useful for creating single-use schemas on-the-fly.