Method
Run
(output chan<- *baker.Data)
Source from the content-addressed store, hash-verified
| 33 | } |
| 34 | |
| 35 | func (in *Records) Run(output chan<- *baker.Data) error { |
| 36 | |
| 37 | var buf []byte |
| 38 | |
| 39 | // Send all lines via a single baker.Data blob. |
| 40 | for _, ll := range in.Records { |
| 41 | buf = ll.ToText(buf) |
| 42 | buf = append(buf, '\n') |
| 43 | } |
| 44 | output <- &baker.Data{Bytes: buf} |
| 45 | |
| 46 | return nil |
| 47 | } |
| 48 | |
| 49 | func (Records) Stop() {} |
| 50 | func (Records) FreeMem(data *baker.Data) {} |
Callers
nothing calls this directly
Tested by
no test coverage detected