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

Function NewLogLine

input/inputtest/logline.go:26–34  ·  view source on GitHub ↗

NewLogLine creates a LogLine baker input.

(cfg baker.InputParams)

Source from the content-addressed store, hash-verified

24
25// NewLogLine creates a LogLine baker input.
26func NewLogLine(cfg baker.InputParams) (baker.Input, error) {
27 if cfg.DecodedConfig == nil {
28 cfg.DecodedConfig = &LogLineConfig{}
29 }
30 dcfg := cfg.DecodedConfig.(*LogLineConfig)
31 return &LogLine{
32 LogLineConfig: *dcfg,
33 }, nil
34}
35
36func (in *LogLine) Run(output chan<- *baker.Data) error {
37 var buf []byte

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected