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

yarpc / yarpc-go / 4364
80%
master: %

Build:
Build:
LAST BUILD BRANCH: nooptrace
DEFAULT BRANCH: master
Ran 28 Feb 2017 07:44PM UTC
Jobs 2
Files 0
Run time –
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
4364

push

travis-ci

abhinav
Redo registration API

Instead of users providing us TransportBuilder, etc. we will let people
just specify functions.

Something like,

    c.RegisterTransport(TransportSpec{
        Name: "foo",
        BuildTransport: func(cfg *MyTransportConfig) (transport.Transport, error) {
            // ...
        },
        BuildInbound: func(t transport.Transport, cfg *MyInboundConfig) (transport.Inbound, error) {
            // ...
        },
    })

This has a couple advantages:

-   Configuration structs are now separated from logic that builds the
    Transport/Inbound/etc.

-   Since registration logic is no longer tied to a vtable, you could
    theoretically inject other context into it. For example you can now
    do,

        BuildTransport: someObject.BuildTransport,

    Where someObject has other information attached to it.

-   Less reflection from user point-of-view with regards to how their
    TransportBuilder/whatever gets instantiated.
Jobs
ID Job ID Ran Files Coverage
3 4364.3 (TYPE=test) 28 Feb 2017 07:46PM UTC 0
Travis Job 4364.3
4 4364.4 (TYPE=test) 28 Feb 2017 07:46PM UTC 0
Travis Job 4364.4
Source Files on build 4364
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4364
  • 2b5b5e5a on github
  • Prev Build on config (#4359)
  • Next Build on config (#4413)
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