コード例 #1
0
ファイル: kafka_listener.py プロジェクト: taftsanders/koku
def rpc_thread():
    """RPC Server to serve PATCH requests."""
    LOG.info(f"Starting RPC server. Port: {Config.SOURCES_CLIENT_RPC_PORT}")
    with SimpleXMLRPCServer(("0.0.0.0", Config.SOURCES_CLIENT_RPC_PORT), allow_none=True) as server:
        server.register_introspection_functions()
        server.register_instance(SourcesPatchHandler())
        server.serve_forever()
コード例 #2
0
 def update_authentication(self, source_id, authentication):
     return SourcesPatchHandler().update_authentication(
         source_id, authentication)
コード例 #3
0
 def update_billing_source(self, source_id, billing_source):
     return SourcesPatchHandler().update_billing_source(
         source_id, billing_source)