Checking in vendor folder for ease of using go get.
This commit is contained in:
parent
7a1251853b
commit
cdb4b5a1d0
3554 changed files with 1270116 additions and 0 deletions
vendor/git.apache.org/thrift.git/contrib/async-test
24
vendor/git.apache.org/thrift.git/contrib/async-test/test-leaf.py
generated
vendored
Executable file
24
vendor/git.apache.org/thrift.git/contrib/async-test/test-leaf.py
generated
vendored
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env python
|
||||
import sys
|
||||
import time
|
||||
from thrift.transport import TTransport
|
||||
from thrift.transport import TSocket
|
||||
from thrift.protocol import TBinaryProtocol
|
||||
from thrift.server import THttpServer
|
||||
from aggr import Aggr
|
||||
|
||||
|
||||
class AggrHandler(Aggr.Iface):
|
||||
def __init__(self):
|
||||
self.values = []
|
||||
|
||||
def addValue(self, value):
|
||||
self.values.append(value)
|
||||
|
||||
def getValues(self, ):
|
||||
time.sleep(1)
|
||||
return self.values
|
||||
|
||||
processor = Aggr.Processor(AggrHandler())
|
||||
pfactory = TBinaryProtocol.TBinaryProtocolFactory()
|
||||
THttpServer.THttpServer(processor, ('', int(sys.argv[1])), pfactory).serve()
|
Loading…
Add table
Add a link
Reference in a new issue