예제 #1
0
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()
예제 #2
0
 def run(scenario, channel):
     connector = Connector(channel)
     return connector.summation(scenario)
예제 #3
0
 def run(scenario, channel):
     connector = Connector(channel)
     return connector.natural_numbers_lq(scenario)
예제 #4
0
 def run(scenario, channel):
     connector = Connector(channel)
     return connector.square(scenario)  # test target
예제 #5
0
 def run(scenario, channel):
     connector = Connector(channel)
     return connector.buffer3_sum(scenario)