proxystore.endpoint.messages¶
Endpoint to endpoint messages.
EndpointRequest
dataclass
¶
EndpointRequest(
kind: Literal["request", "response"],
op: Literal["evict", "exists", "get", "set"],
uuid: str,
key: str,
data: bytes | None = None,
exists: bool | None = None,
error: Exception | None = None,
)
Message type for requests between endpoints.
Attributes:
-
kind(Literal['request', 'response']) –One of
'request'or'response'. -
op(Literal['evict', 'exists', 'get', 'set']) –One of
'evict','exists','get', or'set'. -
uuid(str) –UUID of sender.
-
key(str) –Key to operate on.
-
data(bytes | None) –Optional data to operate on.
-
exists(bool | None) –Result of
existsoperation. -
error(Exception | None) –Error raised by operation.