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

Method String

config.go:151–160  ·  view source on GitHub ↗

String returns a string representation of the exported fields of c.

()

Source from the content-addressed store, hash-verified

149
150// String returns a string representation of the exported fields of c.
151func (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
162func (c *Config) fillDefaults() error {
163 c.Input.fillDefaults()

Callers 15

TestGenerateHelpFunction · 0.45
wrapStringFunction · 0.45
MainCLIFunction · 0.45
displayProgramUsageFunction · 0.45
checkHostPortFunction · 0.45
replaceEnvVarsFunction · 0.45
TestClientMetricsFunction · 0.45
FireMethod · 0.45
renderSQLitePathStringFunction · 0.45
RunMethod · 0.45
makePathMethod · 0.45

Calls

no outgoing calls

Tested by 7

TestGenerateHelpFunction · 0.36
TestClientMetricsFunction · 0.36
mockS3ServiceFunction · 0.36
BenchmarkUrlParseFunction · 0.36
mockS3ServiceFunction · 0.36
TestGzipStreamFunction · 0.36