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

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

Build:
Build:
LAST BUILD BRANCH: nooptrace
DEFAULT BRANCH: master
Ran 11 Apr 2017 10:25PM UTC
Files 171
Run time 16s
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

11 Apr 2017 10:23PM UTC coverage: 80.389%. First build
CI_TYPES='deps examples goveralls' SUPPRESS_DOCKER=1 SUPPRESS_CROSSDOCK=1

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

Source Files on job 5702.2 (CI_TYPES='deps examples goveralls' SUPPRESS_DOCKER=1 SUPPRESS_CROSSDOCK=1)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5702
  • Travis Job 5702.2
  • f3c851fe on github
  • Next Job for CI_TYPES='deps examples goveralls' SUPPRESS_DOCKER=1 SUPPRESS_CROSSDOCK=1 on inject-options (#5704.2)
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