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

yarpc / yarpc-go / 1902
92%
master: %

Build:
Build:
LAST BUILD BRANCH: nooptrace
DEFAULT BRANCH: master
Ran 07 Oct 2016 05:08PM UTC
Jobs 2
Files 95
Run time 11s
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
1902

push

travis-ci

abhinav
This deprecates encoding-specific Register functions in favor of a single
`Dispatcher.Register` method. So instead of,

    raw.Register(dispatcher, raw.Procedure("foo", fooHandler))
    json.Register(dispatcher, json.Procedure("bar", barHandler))
    thrift.Register(dispatcher, keyvalueserver.New(keyValueHandler))

You now do,

    dispatcher.Register(raw.Procedure("foo", fooHandler))
    dispatcher.Register(json.Procedure("bar", barHandler))
    dispatcher.Register(keyvalueserver.New(keyValueHandler))

Encoding-specific register methods now have a dumb replacement in place which
just calls `dispatcher.Register` to make migration easier.

    func Register(d Dispatcher, rs []Registrant) { d.Register(rs) }

Further, for Thrift, registration options are now provided to `New` rather
than `thrift.Register`:

    // Instead of,
    thrift.Register(dispatcher, keyvalueserver.New(keyValueHandler), thrift.DisableEnveloping)

    // You now do,
    dispatcher.Register(keyvalueserver.New(keyValueHandler, thrift.DisableEnveloping))

Note that generated Thrift code will have to be updated because of this
change.

Resolves #379

4336 of 4689 relevant lines covered (92.47%)

1.95 hits per line

Jobs
ID Job ID Ran Files Coverage
3 1902.3 (TYPE=test) 07 Oct 2016 05:08PM UTC 0
92.47
Travis Job 1902.3
4 1902.4 (TYPE=test) 07 Oct 2016 05:08PM UTC 0
92.47
Travis Job 1902.4
Source Files on build 1902
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1902
  • d614c522 on github
  • Prev Build on single-register (#1901)
  • Next Build on single-register (#1904)
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