GitHub

RunnersTransport

API reference for RunnersTransport.

The remote half of a Runners service, which make completes with local delivery: notify gets the runner (None when unknown), the message and whether its caller discards the reply; codec_for encodes payloads when local sends simulate a remote one.

Attributes

AttributeTypeDescription
codec_forCodecFor
pingCallable[[RunnerAddress], Effect[None, RunnerUnavailable]]
sendCallable[[RunnerAddress, Outgoing], Effect[None, SendError]]
notifyCallable[[RunnerAddress | None, Outgoing, bool], Effect[None, SendError]]
on_runner_unavailableCallable[[RunnerAddress], Effect[None]]

Functions

__init__

__init__(*, codec_for, ping, send, notify, on_runner_unavailable) -> None
ParameterTypeDescription
codec_forCodecFor
pingCallable[[RunnerAddress], Effect[None, RunnerUnavailable]]
sendCallable[[RunnerAddress, Outgoing], Effect[None, SendError]]
notifyCallable[[RunnerAddress | None, Outgoing, bool], Effect[None, SendError]]
on_runner_unavailableCallable[[RunnerAddress], Effect[None]]