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

yarpc / yarpc-go / 3560 / 3
85%
master: %

Build:
Build:
LAST BUILD BRANCH: nooptrace
DEFAULT BRANCH: master
Ran 23 Dec 2016 10:50PM UTC
Files 123
Run time 5s
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

23 Dec 2016 10:35PM UTC coverage: 85.672%. Remained the same
TYPE=test

push

travis-ci

web-flow
Add OutboundCall for call site options (#648)

This adds an `OutboundCall` type which allows encoding authors to provide a
`CallOption`-based interface to customize request behavior and receive
response headers. Call options affect per-call options for a request at the
call site.

Client implementations in encodings will apply call options to a call and use
that to hydrate a `transport.Request`. For example, consider,

```
func Call(
    ctx context.Context,
    reqBody MyRequest,
    opts ...yarpc.CallOption,
) (resBody MyResponse, error) {
    // ...
}
```

Where `MyRequest` and `MyResponse` are encoding-specific representations of
request and response bodies. The implementation will simply do,

```
call := yarpc.NewOutboundCall(opts...)
req := transport.Request{
    // Fill with client-level information
    Caller: ...,
    Service: ...,
    // And the encoded request body
    Body: serialize(reqBody),
}

ctx, err := call.WriteToRequest(ctx, &req)
if err != nil {
    return err
}

// Call the outbound
res, err := outbound.Call(ctx, req)
if err != nil {
    return err
}

ctx, err = call.ReadFromResponse(ctx, res)
if err != nil {
    return err
}
```

Issue: #617

5764 of 6728 relevant lines covered (85.67%)

0.91 hits per line

Source Files on job 3560.3 (TYPE=test)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3560
  • Travis Job 3560.3
  • 4e89b2b0 on github
  • Prev Job for TYPE=test on rm-meta (#3537.4)
  • Next Job for TYPE=test on rm-meta (#3579.3)
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