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

Struct Components

desc.go:5–20  ·  view source on GitHub ↗

Components holds the descriptions of all components one can use to build a topology.

Source from the content-addressed store, hash-verified

3// Components holds the descriptions of all components one can use
4// to build a topology.
5type Components struct {
6 Inputs []InputDesc // Inputs represents the list of available inputs
7 Filters []FilterDesc // Filters represents the list of available filters
8 Outputs []OutputDesc // Outputs represents the list of available outputs
9 Uploads []UploadDesc // Uploads represents the list of available uploads
10
11 Metrics []MetricsDesc // Metrics represents the list of available metrics clients
12 User []UserDesc // User represents the list of user-defined configurations
13
14 ShardingFuncs map[FieldIndex]ShardingFunc // ShardingFuncs are functions to calculate sharding based on field index
15 Validate ValidationFunc // Validate is the function used to validate a Record
16 CreateRecord func() Record // CreateRecord creates a new record
17
18 FieldByName func(string) (FieldIndex, bool) // FieldByName gets a field index by its name
19 FieldNames []string // FieldNames holds field names, indexed by their FieldIndex
20}
21
22// ComponentParams holds the common configuration parameters passed to components of all kinds.
23type ComponentParams struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected