Skip to content

Commit

Permalink
Adding comment for WithTransport
Browse files Browse the repository at this point in the history
  • Loading branch information
denismakogon committed Jan 21, 2018
1 parent d35e79d commit 560fb41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ func NewVersionedClient(endpoint string, apiVersionString string) (*Client, erro
return c, nil
}

// WithTransport replaces underlying HTTP client of Docker Client by accepting
// a function that returns pointer to a transport object.
func (c *Client) WithTransport(trFunc func () *http.Transport) {
c.initializeNativeClient(trFunc)
}
Expand Down

0 comments on commit 560fb41

Please sign in to comment.