/thrift-tracker

Primary LanguageGoMIT LicenseMIT

thriftpy-like tracker for golang

Only support request header currently, response header is not so useful as request header.

Unlike example/, always use client/processor factory to avoid state race.

Requirements

A modified version of thrift compiler: https://github.com/eleme/thrift

$ git clone git@github.com:eleme/thrift.git
$ git checkout tracker
$ ./bootstrap.sh
$ ./configure --prefix=/usr/local/ --without-haskell --without-java --without-php --without-nodejs --without-python --without-cpp --without-lua --without-perl --without-ruby --without-erlang --without-rust
$ make
$ sudo make install  # Or, sudo cp compiler/cpp/thrift /usr/local/bin/tracker-thrift
$ # You can now use thrift compiler to generate go code, see example/