The configuration for the topology is parsed from TOML format. Each of Input, Filter, Output have a separate section (table) in the file containing a key called "Name" that specifies which component will be used in the pipeline, plus a couple of other generic keys. Then, there are sub-tables called
| 35 | |
| 36 | // ConfigInput specifies the configuration for the input component. |
| 37 | type ConfigInput struct { |
| 38 | Name string |
| 39 | ChanSize int // ChanSize represents the size of the channel to send records from the input to the filters, the default value is 1024 |
| 40 | DecodedConfig interface{} |
| 41 | |
| 42 | Config *toml.Primitive |
| 43 | desc *InputDesc |
| 44 | } |
| 45 | |
| 46 | // ConfigFilterChain specifies the configuration for the whole fitler chain. |
| 47 | type ConfigFilterChain struct { |
nothing calls this directly
no outgoing calls
no test coverage detected