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

Struct ComponentParams

desc.go:23–30  ·  view source on GitHub ↗

ComponentParams holds the common configuration parameters passed to components of all kinds.

Source from the content-addressed store, hash-verified

21
22// ComponentParams holds the common configuration parameters passed to components of all kinds.
23type 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.
33type InputParams struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected