koofr / gothriftpool

Go Thrift pool proxy generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gothriftpool

Go Thrift pool proxy generator.

Example

go install github.com/koofr/gothriftpool/gothriftpool
thrift --gen go -out . gothriftpooltest/myservice.thrift
gothriftpool -w myservice.MyService

The latter will create ./myserviceproxy/myserviceproxy.go file.

Testing

go test ./gothriftpooltest

Coverage:

cd gothriftpooltest
go test -coverpkg=./myserviceproxy -coverprofile=test.coverprofile && go tool cover -html=test.coverprofile

Regenerate test service

thrift --gen go -out `pwd`/gothriftpooltest gothriftpooltest/myservice.thrift
go run ./gothriftpool myservice.MyService > gothriftpooltest/myserviceproxy/myserviceproxy.go

About

Go Thrift pool proxy generator

License:MIT License


Languages

Language:Go 98.3%Language:Thrift 1.7%