• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yarpc / yarpc-go / 5702
81%
master: %

Build:
Build:
LAST BUILD BRANCH: nooptrace
DEFAULT BRANCH: master
Ran 11 Apr 2017 10:25PM UTC
Jobs 1
Files 171
Run time 17s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5702

push

travis-ci

abhinav
InjectClients: Support Thrift options

This adds support for specifying Thrift options `multiplexed` and
`enveloped` for clients instantiated using `yarpc.InjectClients`. This
is done by adding a `thrift` tag:

    type handler struct {
      Client keyvalueclient.Interface `service:"foo" thrift:"enveloped"`
    }

Now,

    var h handler
    yarpc.InjectClients(dispatcher, &h)

Is equivalent to,

    h := handler{
      Client: keyvalueclient.New(
          dispatcher.ClientConfig("foo"), thrift.Enveloped)
    }

We do this by altering the RegisterClientBuilder API slightly: In
addition to accepting functions with the signature

    func(transport.ClientConfig) T

Where T is the client interface type, the RegisterClientBuilder now also
accepts functions with the signature,

    func(transport.ClientConfig, reflect.StructField) T

The second parameter provides access to the struct tags, etc. for the
field being filled with that client.

Resolves #772

8350 of 10387 relevant lines covered (80.39%)

39.81 hits per line

Jobs
ID Job ID Ran Files Coverage
2 5702.2 (CI_TYPES='deps examples goveralls' SUPPRESS_DOCKER=1 SUPPRESS_CROSSDOCK=1) 11 Apr 2017 10:25PM UTC 0
80.39
Travis Job 5702.2
Source Files on build 5702
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5702
  • f3c851fe on github
  • Next Build on inject-options (#5704)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc