AddRoot adds another OID to be included in the walk.
(oid OID)
| 124 | |
| 125 | // AddRoot adds another OID to be included in the walk. |
| 126 | func (iter *ObjectIter) AddRoot(oid OID) error { |
| 127 | select { |
| 128 | case iter.oidCh <- oid: |
| 129 | return nil |
| 130 | case <-iter.ctx.Done(): |
| 131 | return iter.ctx.Err() |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | // Close closes the iterator and frees up resources. |
| 136 | func (iter *ObjectIter) Close() { |
no test coverage detected