MCPcopy Create free account
hub / github.com/AdRoll/baker / Run

Method Run

input/inputtest/logline.go:36–48  ·  view source on GitHub ↗
(output chan<- *baker.Data)

Source from the content-addressed store, hash-verified

34}
35
36func (in *LogLine) Run(output chan<- *baker.Data) error {
37 var buf []byte
38
39 // Send all lines via a single baker.Data blob.
40 for _, ll := range in.Lines {
41 buf = ll.ToText(buf)
42 buf = append(buf, '\n')
43 }
44
45 output <- &baker.Data{Bytes: buf, Meta: in.Metadata}
46
47 return nil
48}
49
50func (in *LogLine) Stop() {}
51func (in *LogLine) FreeMem(data *baker.Data) {}

Callers

nothing calls this directly

Calls 1

ToTextMethod · 0.65

Tested by

no test coverage detected