Beispiel #1
0
def write(key, value, start):
    op = msg_pb.Request()
    op.op.put.key = key
    op.op.put.value = value
    op.op.start = start

    return op
 def write(key, value, start, prereq=False):
     putOp = Msg.Request()
     putOp.op.put.key = key
     putOp.op.put.value = value
     putOp.op.start = start
     putOp.op.prereq = prereq
     return putOp
Beispiel #3
0
def read(key, start):
    op = msg_pb.Request()
    op.op.get.key = key
    op.op.start = start

    return op
 def finalise():
     finalise = Msg.Request()
     finalise.finalise.msg = ""
     return finalise
 def read(key, start, prereq=False):
     getOp = Msg.Request()
     getOp.op.get.key = key
     getOp.op.start = start
     getOp.op.prereq = prereq
     return getOp
 def start():
     start = Msg.Request()
     start.start.msg = ""
     return start