Helper for copying when we do not want to change user's version.
()
| 300 | |
| 301 | // Helper for copying when we do not want to change user's version. |
| 302 | func (ss *StreamSource) copy() *StreamSource { |
| 303 | nss := *ss |
| 304 | // Check pointers |
| 305 | if ss.OptStartTime != nil { |
| 306 | t := *ss.OptStartTime |
| 307 | nss.OptStartTime = &t |
| 308 | } |
| 309 | if ss.External != nil { |
| 310 | ext := *ss.External |
| 311 | nss.External = &ext |
| 312 | } |
| 313 | return &nss |
| 314 | } |
| 315 | |
| 316 | // If we have a Domain, convert to the appropriate ext.APIPrefix. |
| 317 | // This will change the stream source, so should be a copy passed in. |
no outgoing calls
no test coverage detected