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

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

Build:
Build:
LAST BUILD BRANCH: nooptrace
DEFAULT BRANCH: master
Ran 13 Apr 2017 06:37PM UTC
Files 171
Run time 8s
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

13 Apr 2017 06:35PM UTC coverage: 80.545% (+0.06%) from 80.481%
CI_TYPES='deps examples goveralls' SUPPRESS_DOCKER=1 SUPPRESS_CROSSDOCK=1

push

travis-ci

web-flow
InjectClients: Support Thrift options (#928)

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, `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

8371 of 10393 relevant lines covered (80.54%)

40.48 hits per line

Source Files on job 5732.2 (CI_TYPES='deps examples goveralls' SUPPRESS_DOCKER=1 SUPPRESS_CROSSDOCK=1)
  • Tree
  • List 0
  • Changed 11
  • Source Changed 3
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5732
  • Travis Job 5732.2
  • 4a6728d6 on github
  • Prev Job for CI_TYPES='deps examples goveralls' SUPPRESS_DOCKER=1 SUPPRESS_CROSSDOCK=1 on dev (#5719.2)
  • Next Job for CI_TYPES='deps examples goveralls' SUPPRESS_DOCKER=1 SUPPRESS_CROSSDOCK=1 on dev (#5740.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