newObject instantiates a new *minio.Object* ObjectInfo will be set by setObjectInfo
(ctx context.Context, cancel context.CancelFunc, reqCh chan<- getRequest, resCh <-chan getResponse)
| 661 | // newObject instantiates a new *minio.Object* |
| 662 | // ObjectInfo will be set by setObjectInfo |
| 663 | func newObject(ctx context.Context, cancel context.CancelFunc, reqCh chan<- getRequest, resCh <-chan getResponse) *Object { |
| 664 | return &Object{ |
| 665 | ctx: ctx, |
| 666 | cancel: cancel, |
| 667 | mutex: &sync.Mutex{}, |
| 668 | reqCh: reqCh, |
| 669 | resCh: resCh, |
| 670 | } |
| 671 | } |
| 672 | |
| 673 | // getObject - retrieve object from Object Storage. |
| 674 | // |