Skip to content

koofr/gothriftpool

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published