def run(): channel = grpc.insecure_channel('localhost:50051') connector = Connector(channel) print("Square") print(connector.square(7)) print() print("NaturalNumberGenerator") int_array = connector.natural_numbers_lq(7) for v in int_array: print(v) print() print("Summation") print(connector.summation([1, 2, 3, 4, 5, 6, 7])) print() print("Buffer3Sum") int_array = connector.buffer3_sum([1, 2, 3, 4, 5, 6, 7]) for v in int_array: print(v) print()
def run(scenario, channel): connector = Connector(channel) return connector.summation(scenario)
def run(scenario, channel): connector = Connector(channel) return connector.natural_numbers_lq(scenario)
def run(scenario, channel): connector = Connector(channel) return connector.square(scenario) # test target
def run(scenario, channel): connector = Connector(channel) return connector.buffer3_sum(scenario)