String returns a string representation of the exported fields of c.
()
| 149 | |
| 150 | // String returns a string representation of the exported fields of c. |
| 151 | func (c *Config) String() string { |
| 152 | s := fmt.Sprintf("Input:{Name:%s, ChanSize:%d} ", c.Input.Name, c.Input.ChanSize) |
| 153 | s += fmt.Sprintf("FilterChain:{Procs:%d} ", c.FilterChain.Procs) |
| 154 | for i, f := range c.Filter { |
| 155 | s += fmt.Sprintf("Filter-%d:{Name:%s} ", i, f.Name) |
| 156 | } |
| 157 | s += fmt.Sprintf("Output:{Name:%s, Procs:%d, ChanSize:%d, Sharding:%s, Fields:[%s]} ", c.Output.Name, c.Output.Procs, c.Output.ChanSize, c.Output.Sharding, strings.Join(c.Output.Fields, ",")) |
| 158 | s += fmt.Sprintf("Upload:{Name:%s}", c.Upload.Name) |
| 159 | return s |
| 160 | } |
| 161 | |
| 162 | func (c *Config) fillDefaults() error { |
| 163 | c.Input.fillDefaults() |
no outgoing calls