Attention
This is the documentation for HARP Proxy, actually published as an early preview. Both the software and documentation are a work in progress, and although we already use it on various production servers, they may contain inaccuracies, typographical errors, huge mistakes and empty pages. We work hard to eradicate all mistakes and implement stuff, but it is a long and tedious process. We appreciate your patience and understanding. Of course, any help will be greatly appreciated.
Models (harp.models)¶
The Models (harp.models
) package define the base models for Harp, without any opinion on whether the
represented data will or should be stored, nor how it should be stored.
Contents¶
- class Blob[source]¶
Bases:
Entity
Blob(*, id: str, data: bytes, content_type: str = None)
- __init__(*, id, data, content_type=None)¶
- class Message[source]¶
Bases:
Entity
Message(*, id: int = None, transaction_id: str, kind: str, summary: str, headers: str, body: str, created_at: datetime.datetime = None)
- __init__(*, id=None, transaction_id, kind, summary, headers, body, created_at=None)¶
- class Transaction[source]¶
Bases:
Entity
Transaction(*, id: str = None, type: str, endpoint: str = None, started_at: datetime.datetime, finished_at: datetime.datetime = None, elapsed: float = None, tpdex: int = None, messages: List[harp.models.messages.Message] = None, tags: dict = <factory>, extras: dict = <factory>)
- __init__(*, id=None, type, endpoint=None, started_at, finished_at=None, elapsed=None, tpdex=None, messages=None, tags=<factory>, extras=<factory>)¶