Exemple #1
0
def start_grpc_server(server: Server):
    """
    Start the given gRPC `server`.

    This does not block so, if you don't have a mainloop, this will simply
    finish immediatly with the thread/process.
    """
    server.start()
Exemple #2
0
def start_collector(server: grpc.Server) -> None:
    print("Starting gRPC collector server")

    server.add_insecure_port("[::]:50051")
    server.start()