MCPcopy
hub / github.com/cloudfoundry/cli / NewRetryRequest

Function NewRetryRequest

api/cfnetworking/wrapper/retry_request.go:17–21  ·  view source on GitHub ↗

NewRetryRequest returns a pointer to a RetryRequest wrapper.

(maxRetries int)

Source from the content-addressed store, hash-verified

15
16// NewRetryRequest returns a pointer to a RetryRequest wrapper.
17func NewRetryRequest(maxRetries int) *RetryRequest {
18 return &RetryRequest{
19 maxRetries: maxRetries,
20 }
21}
22
23// Wrap sets the connection in the RetryRequest and returns itself.
24func (retry *RetryRequest) Wrap(innerconnection cfnetworking.Connection) cfnetworking.Connection {

Callers 2

NewNetworkingClientFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected