synapse/federation/federation_server.py
def register_edu_handler(self, edu_type, handler):
        """Sets the handler callable that will be used to handle an incoming
        federation EDU of the given type.

        Args:
            edu_type (str): The type of the incoming EDU to register handler for
            handler (Callable[[str, dict]]): A callable invoked on incoming EDU
                of the given type. The arguments are the origin server name and
                the EDU contents.
        """
        if edu_type in self.edu_handlers:
            raise KeyError("Already have an EDU handler for %s" % (edu_type,))

        self.edu_handlers[edu_type] = handler
Sets the handler callable that will be used to handle an incoming
        federation EDU of the given type.

        Args:
            edu_type (str): The type of the incoming EDU to register handler for
            handler (Callable[[str, dict]]): A callable invoked on incoming EDU
                of the given type. The arguments are the origin server name and
                the EDU contents.
        
Sets the handler callable that will be used to handle an incoming
federation EDU of the given type.
Sets the handler callable that will be used to handle an incoming federation EDU of the given type .
def register_edu_handler(self, edu_type, handler):
        if edu_type in self.edu_handlers:
            raise KeyError("Already have an EDU handler for %s" % (edu_type,))
        self.edu_handlers[edu_type] = handler
def register_edu_handler ( self , edu_type , handler ) : if edu_type in self . edu_handlers : raise KeyError ( "Already have an EDU handler for %s" % ( edu_type , ) ) self . edu_handlers [ edu_type ] = handler
Sets the handler callable that will be used to handle an incoming
federation EDU of the given type.
Sets the handler callable that will be used to handle an incoming federation EDU of the given type .
"""Sets the handler callable that will be used to handle an incoming
        federation EDU of the given type.

        Args:
            edu_type (str): The type of the incoming EDU to register handler for
            handler (Callable[[str, dict]]): A callable invoked on incoming EDU
                of the given type. The arguments are the origin server name and
                the EDU contents.
        """
self
edu_type
The type of the incoming EDU to register handler for
The type of the incoming EDU to register handler for
handler
A callable invoked on incoming EDU
of the given type. The arguments are the origin server name and
the EDU contents.
A callable invoked on incoming EDU of the given type . The arguments are the origin server name and the EDU contents .