ComponentParams holds the common configuration parameters passed to components of all kinds.
| 21 | |
| 22 | // ComponentParams holds the common configuration parameters passed to components of all kinds. |
| 23 | type ComponentParams struct { |
| 24 | DecodedConfig interface{} // decoded component-specific struct (from configuration file) |
| 25 | CreateRecord func() Record // factory function to create new empty records |
| 26 | FieldByName func(string) (FieldIndex, bool) // translates field names to Record indexes |
| 27 | FieldNames []string // FieldNames holds field names, indexed by their FieldIndex |
| 28 | ValidateRecord ValidationFunc // function to validate a record |
| 29 | Metrics MetricsClient // Metrics allows components to add code instrumentation and have metrics exported to the configured backend, if any? |
| 30 | } |
| 31 | |
| 32 | // InputParams holds the parameters passed to Input constructor. |
| 33 | type InputParams struct { |
nothing calls this directly
no outgoing calls
no test coverage detected