viam.resource.rpc_client_base
Classes
Base RPC client for a resource. |
|
A base RPC client that can reset its channel. |
Module Contents
- class viam.resource.rpc_client_base.ResourceRPCClientBase[source]
Bases:
Protocol
Base RPC client for a resource. Resource RPC clients must inherit from this class
- class Metadata[source]
- metadata: Dict[str, str]
- enable_debug_logging(key: str = '')[source]
Enables server-side debug logging for resource methods.
- Parameters:
key (str) – The key to associate debug logs with. If not provided, will default to a randomly generated string value.
- property proto
- Returns metadata in a gRPC-appropriate form
- channel: grpclib.client.Channel
- client: Any
- class viam.resource.rpc_client_base.ReconfigurableResourceRPCClientBase[source]
Bases:
ResourceRPCClientBase
A base RPC client that can reset its channel.
Useful if connection is lost and then regained.