EndpointURL returns the URL of the S3-compatible endpoint that this client connects to. Returns a copy of the endpoint URL to prevent modification of internal state.
()
| 224 | // |
| 225 | // Returns a copy of the endpoint URL to prevent modification of internal state. |
| 226 | func (c *Client) EndpointURL() *url.URL { |
| 227 | endpoint := *c.endpointURL // copy to prevent callers from modifying internal state |
| 228 | return &endpoint |
| 229 | } |
| 230 | |
| 231 | // lockedRandSource provides protected rand source, implements rand.Source interface. |
| 232 | type lockedRandSource struct { |