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

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

Build:
Build:
LAST BUILD BRANCH: nooptrace
DEFAULT BRANCH: master
Ran 07 Oct 2016 06:37PM UTC
Jobs 2
Files 95
Run time 2min
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
1919

push

travis-ci

web-flow
Consolidate registration methods (#384)

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

4334 of 4690 relevant lines covered (92.41%)

1.95 hits per line

Jobs
ID Job ID Ran Files Coverage
3 1919.3 (TYPE=test) 07 Oct 2016 06:37PM UTC 0
92.41
Travis Job 1919.3
4 1919.4 (TYPE=test) 07 Oct 2016 06:39PM UTC 0
92.41
Travis Job 1919.4
Source Files on build 1919
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1919
  • 443318db on github
  • Prev Build on dev (#1916)
  • Next Build on dev (#1947)
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