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

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

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

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

Jobs
ID Job ID Ran Files Coverage
2 5732.2 (CI_TYPES='deps examples goveralls' SUPPRESS_DOCKER=1 SUPPRESS_CROSSDOCK=1) 13 Apr 2017 06:37PM UTC 0
80.54
Travis Job 5732.2
Source Files on build 5732
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5732
  • 4a6728d6 on github
  • Prev Build on dev (#5719)
  • Next Build on dev (#5740)
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