(ctx context.Context, src any, dest any, opts ...transfer.Opt)
| 26 | ) |
| 27 | |
| 28 | func (c *Client) Transfer(ctx context.Context, src any, dest any, opts ...transfer.Opt) error { |
| 29 | ctx, done, err := c.WithLease(ctx) |
| 30 | if err != nil { |
| 31 | return err |
| 32 | } |
| 33 | defer done(ctx) |
| 34 | |
| 35 | return proxy.NewTransferrer(c.conn, c.streamCreator()).Transfer(ctx, src, dest, opts...) |
| 36 | } |
| 37 | |
| 38 | func (c *Client) streamCreator() streaming.StreamCreator { |
| 39 | return streamproxy.NewStreamCreator(c.conn) |
nothing calls this directly
no test coverage detected