Moving from govendor to dep, updated dependencies (#48)
* Moving from govendor to dep. * Making the pull request template more friendly. * Fixing akward space in PR template. * goimports run on whole project using ` goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./gen-go/*")` source of command: https://gist.github.com/bgentry/fd1ffef7dbde01857f66
This commit is contained in:
parent
9631aa3aab
commit
8d445c1c77
2186 changed files with 400410 additions and 352 deletions
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