Public Member Functions | Private Attributes | List of all members
tests_aio.unit._common.AdhocGenericHandler Class Reference
Inheritance diagram for tests_aio.unit._common.AdhocGenericHandler:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 
def service (self, handler_call_details)
 
def set_adhoc_handler (self, grpc.RpcMethodHandler handler)
 

Private Attributes

 _handler
 

Detailed Description

A generic handler to plugin testing server methods on the fly.

Definition at line 107 of file tests/tests_aio/unit/_common.py.

Constructor & Destructor Documentation

◆ __init__()

def tests_aio.unit._common.AdhocGenericHandler.__init__ (   self)

Definition at line 111 of file tests/tests_aio/unit/_common.py.

Member Function Documentation

◆ service()

def tests_aio.unit._common.AdhocGenericHandler.service (   self,
  handler_call_details 
)
Returns the handler for servicing the RPC.

Args:
  handler_call_details: A HandlerCallDetails describing the RPC.

Returns:
  An RpcMethodHandler with which the RPC may be serviced if the
  implementation chooses to service this RPC, or None otherwise.

Reimplemented from grpc.GenericRpcHandler.

Definition at line 117 of file tests/tests_aio/unit/_common.py.

◆ set_adhoc_handler()

def tests_aio.unit._common.AdhocGenericHandler.set_adhoc_handler (   self,
grpc.RpcMethodHandler  handler 
)

Definition at line 114 of file tests/tests_aio/unit/_common.py.

Member Data Documentation

◆ _handler

tests_aio.unit._common.AdhocGenericHandler._handler
private

Definition at line 112 of file tests/tests_aio/unit/_common.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:53