MCPcopy Create free account

hub / github.com/AdRoll/baker / functions

Functions846 in github.com/AdRoll/baker

↓ 162 callersMethodRun
Start fetching data and pushing it into the channel. If this call blocks forever, the topology is permanent and acts like a long-running daemon; if th
api.go:65
↓ 96 callersMethodClose
Close releases resources allocated by the metrics client such as connections or files and flushes potentially buffered data that has not been processe
metrics_client.go:60
↓ 92 callersMethodSet
Set changes the value of a field (either standard or custom) to a new value.
logline.go:94
↓ 75 callersMethodGet
Get the value of a field.
record.go:36
↓ 68 callersMethodString
String returns a string representation of the exported fields of c.
config.go:151
↓ 59 callersMethodParse
Parse finds the next newline in data and parse log line fields from it into the current LogLine. This is the moral equivalent of bytes.Split(), but w
logline.go:118
↓ 48 callersMethodSet
Set the value of a field.
record.go:39
↓ 45 callersMethodPut
Put puts buf in the cache. Either a new index, key, is created with buf, or buf is appended to the previous buffer that is indexed by key. This may
pkg/buffercache/cache.go:150
↓ 41 callersMethodToText
ToText converts back the LogLine to textual format and appends it to the specified buffer. If called on a default constructed LogLine (zero-value), To
logline.go:152
↓ 34 callersMethodParse
Parse decodes a buffer representing a record in its data format into the current record instance. The given Metadata will be attached to that record.
record.go:15
↓ 32 callersMethodError
Return the global (sticky) error state of the topology. Calling this function makes sense after Wait() is complete (before that, it is potentially su
topology.go:323
↓ 31 callersMethodGet
Get the value of a field (either standard or custom).
logline.go:77
↓ 29 callersMethodError
Error implements the error interface.
input/inpututils/s3.go:128
↓ 29 callersMethodToText
ToText returns the reconstructed data format of a record. In case a big enough buf is passed, it will be used to serialize the record.
record.go:21
↓ 22 callersFunctionNew
New creates a new BufferCache. A BufferCache is made of 2 components, a cold cache for keys that have been presented to the cache only once, and a ho
pkg/buffercache/cache.go:96
↓ 21 callersFunctionNewConfigFromToml
NewConfigFromToml creates a Config from a reader reading from a TOML configuration. comp describes all the existing components.
config.go:281
↓ 19 callersMethodWait
Wait until the topology shuts itself down. This can happen because the input component exits (in a batch topology), or in response to a SIGINT signal
topology.go:302
↓ 18 callersMethodDone
()
output/websocket/client.go:103
↓ 18 callersMethodWrite
(msg []string)
output/websocket/client.go:96
↓ 14 callersMethodMerge
Merge merges metrics with the same name and types from another MetricsBag into this bag. Counters are summed up, gauges are averaged, and histograms a
metrics.go:50
↓ 14 callersFunctionNewTopologyFromConfig
NewTopologyFromConfig gets a baker configuration and returns a Topology
topology.go:55
↓ 14 callersMethodReset
(r io.Reader)
input/inpututils/fastreader_unix.go:45
↓ 14 callersFunctioncloseFiles
closeFiles closes a list of files and returns the first error (if any).
pkg/splitwriter/split_writer.go:320
↓ 13 callersMethodGauge
Gauge sets the value of a metric of type gauge. A Gauge represents a single numerical data point that can arbitrarily go up and down.
metrics_client.go:16
↓ 13 callersMethodStop
Force the input to stop as clean as possible, at a good boundary. This is usually issued at the user's request of exiting the process. For instance, i
api.go:72
↓ 13 callersMethodput
put copies buf into b and returns the index of the cell where it has been copied or false if the bucket is currently full.
pkg/buffercache/cold.go:114
↓ 12 callersMethodCopy
Copy creates and returns a copy of the current record. The copied record could have been obtained by: var dst Record src.Parse(dst.ToText(), nil) bu
record.go:30
↓ 12 callersFunctionDisableLogging
DisableLogging is a test helper that disable logging (in fact it sets its level to panic). It returns a function which when called, resets it to its p
testutil/helpers.go:79
↓ 12 callersMethodDuration
Duration adds a duration to a metric of type histogram. A histogram samples observations and counts them in different 'buckets'. Duration is basically
metrics_client.go:51
↓ 12 callersFunctionassertKeyInHotCache
(t *testing.T, cache *BufferCache, key string)
pkg/buffercache/helper_test.go:78
↓ 11 callersMethodClear
Clear clears the record internal state, making it empty.
record.go:33
↓ 11 callersFunctiongenBuffer
genBuffer generates a compressible buffer, useful for testing, since lz4 library fails on incompressible data.
pkg/buffercache/cold_test.go:115
↓ 10 callersMethodAddGauge
AddGauge adds a metric of type gauge to the bag and updates its value. A gauge represents a single numerical data point that can arbitrarily go up and
metrics.go:30
↓ 10 callersMethodCopy
Copy creates and returns a copy of the current log line.
logline.go:238
↓ 10 callersFunctionassertKeyInColdCache
(t *testing.T, cache *BufferCache, key string)
pkg/buffercache/helper_test.go:105
↓ 10 callersMethodcacheTotalize
()
pkg/buffercache/cache_test.go:197
↓ 10 callersFunctionfieldByName
(name string)
filter/clausefilter_test.go:15
↓ 9 callersMethodAddRawCounter
AddRawCounter adds a metric of type counter to the bag and sets its current value. A counter is a cumulative metric that can only increase. To be mean
metrics.go:17
↓ 9 callersMethodStart
Start starts the Topology, that is start all components. This function also intercepts the interrupt signal (ctrl+c) starting the graceful shutdown (c
topology.go:230
↓ 9 callersFunctionassertKeyNotInCache
(t *testing.T, cache *BufferCache, key string)
pkg/buffercache/helper_test.go:69
↓ 9 callersMethodsetFatalErr
Set this error as fatal: it will make List stop doing any processing, and Run() will report this error as return value
input/list.go:209
↓ 8 callersMethodAddDeltaCounter
AddDeltaCounter adds a metric of type counter to the bag and increments its value. A counter is a cumulative metric that can only increase. To be mean
metrics.go:24
↓ 8 callersMethodAddHistogram
AddHistogram adds a metrics of type histogram to the bag and tracks its value. A histogram samples observations and counts them in different 'buckets'
metrics.go:37
↓ 8 callersMethodAddTimings
AddTimings adds a metric of type histogram to the bag and tracks its value. Timing is basically a histogram but allows to sample values of type time.D
metrics.go:44
↓ 8 callersMethodCache
Cache returns the cache that is local to the current log line.
logline.go:233
↓ 8 callersMethodFlush
()
output/dyndb.go:292
↓ 8 callersMethodHistogram
Histogram adds a sample to a metric of type histogram. A histogram samples observations and counts them in different 'buckets' in order to track and s
metrics_client.go:42
↓ 8 callersMethodLoad
Load loads from the cache the value that is mapped to key, or bool if the cache doesn't contain key.
filter/metadata/cache.go:38
↓ 8 callersMethodWait
()
output/dyndb.go:163
↓ 7 callersMethodRawCount
RawCount sets the value of a metric of type counter. A counter is a cumulative metrics that can only increase. RawCount sets the current value of the
metrics_client.go:25
↓ 7 callersMethodStats
Return stats about the input
api.go:75
↓ 7 callersMethodStore
Store caches key and value in the cache.
filter/metadata/cache.go:22
↓ 7 callersMethodbit
getBit is mainly used for testing purposes
pkg/buffercache/bitmap_test.go:368
↓ 7 callersMethodcompress
compress compresses b and returns the compressed buffer. The compressed buffer is only valid until the next call to compres. If b is not-compressible
pkg/buffercache/compressor.go:29
↓ 7 callersFunctionmockS3Service
mockS3Service returns a mocked s3.S3 service which records all operations related to Upload S3 API calls. Once all interactions with the returned ser
upload/s3_test.go:33
↓ 6 callersMethodDeltaCountWithTags
DeltaCountWithTags increments the value of a metric or type counter and associates that value with a set of tags.
metrics_client.go:37
↓ 6 callersFunctionMain
Main runs the topology corresponding to the provided configuration. Depending on the input, it either blocks forever (daemon) or terminates when all t
baker.go:27
↓ 6 callersMethodMeta
Meta returns the value of the attached metadata for the given key, if any. Records implementers may implement that method by declaring: type MyRecord
record.go:51
↓ 6 callersFunctionNewClauseFilter
(cfg baker.FilterParams)
filter/clausefilter.go:103
↓ 6 callersFunctionNewS3
(cfg baker.UploadParams)
upload/s3.go:105
↓ 6 callersMethodProcess
(l baker.Record, next func(baker.Record))
filter/clausefilter.go:129
↓ 6 callersMethodProcessFile
Enqueue a file for processing by compressedInput. This function must be called by subclasses to schedule processing a (gzip|zstd) logfile. The functio
input/inpututils/compressedstream.go:224
↓ 6 callersMethodRead
(data []byte)
input/inpututils/compressedstream.go:91
↓ 6 callersMethodflush
flush calls f with each buffer in this bucket, afterwards the bucket is considered free again.
pkg/buffercache/cold.go:98
↓ 6 callersMethodget
get returns the buffer held at a specific cell. NOTE: the returned slice directly points to the bucket backing array, so the slice content may be ove
pkg/buffercache/cold.go:138
↓ 6 callersMethodisCold
isHot/isCold reports whether l points to an entry in the hot/cold cache.
pkg/buffercache/location.go:24
↓ 6 callersMethodparseClause
(ClauseRaw string)
filter/clausefilter.go:236
↓ 6 callersFunctionpathToURI
(p string)
input/list_test.go:85
↓ 6 callersMethoduncompressSimple
uncompressSimple decompresses b and returns the resulting buffer. The returned buffer is only valid until the next call to uncompress.
pkg/buffercache/compressor.go:80
↓ 5 callersFunctionDiffWithGolden
DiffWithGolden is a test helper that compares the src bytes with a file content whose path is provided in the 'golden' argument. If UpdateGolden flag
testutil/golden.go:16
↓ 5 callersMethodFlush
Flush flushes the whole cache.
pkg/buffercache/cache.go:174
↓ 5 callersMethodHistogramWithTags
HistogramWithTags adds a sample to an histogram and associates that sample with a set of tags.
metrics_client.go:46
↓ 5 callersFunctionNewList
(cfg baker.InputParams)
input/list.go:175
↓ 5 callersMethodRun
(inch chan<- *baker.Data)
input/list.go:393
↓ 5 callersMethodStart
()
input/kcl.go:359
↓ 5 callersFunctionassertErrInvalidConfig
(t *testing.T, err error)
pkg/buffercache/helper_test.go:9
↓ 5 callersFunctioncheckDecodedConfig
(t *testing.T, dcfg interface{})
desc_test.go:14
↓ 5 callersMethodchoosePathComponents
If the path is a full s3/s3a/s3n url the extract the bucket, key and scheme from it and return them, else use the bucket from the instance, path as ke
input/inpututils/s3.go:135
↓ 5 callersFunctioncloneConfig
cloneConfig clones a configuration object.
config.go:217
↓ 5 callersMethodcoldBucketIdx
coldBucketIdx/coldCellIdx returns the bucket/cell index in cold cache.
pkg/buffercache/location.go:28
↓ 5 callersFunctionconfigKeysFromStruct
(cfg interface{})
help_config.go:124
↓ 5 callersFunctiondecodeAndCheckConfig
(md toml.MetaData, compCfg interface{})
config.go:233
↓ 5 callersFunctiongenConfigKeysMarkdown
(w io.Writer, keys []helpConfigKey)
help_markdown.go:165
↓ 5 callersFunctiongenConfigKeysText
(w io.Writer, keys []helpConfigKey)
help_text.go:162
↓ 5 callersMethodinit
()
pkg/buffercache/compressor.go:19
↓ 5 callersMethodisHot
()
pkg/buffercache/location.go:25
↓ 5 callersMethodmetrics
metrics returns a snapshot of the cold cache metrics.
pkg/buffercache/cold.go:61
↓ 5 callersFunctionnewFastGzReader
(r io.Reader)
input/inpututils/fastreader.go:10
↓ 5 callersFunctionprepareUploadS3TestFolder
prepareUploadS3TestFolder creates a temp forlder and the selected number of files in it
upload/s3_test.go:90
↓ 5 callersFunctionsqliteQuote
sqliteQuote returns a manually escaped string replacing single quotes with double-single quotes
output/sqlite.go:253
↓ 5 callersFunctiontestE2EFullTopology
(pkg, toml, got, want string)
e2e_test.go:50
↓ 5 callersFunctiontestFileWriterIntegrationCheckRecords
testFileWriterIntegrationCheckRecords builds and run a topology reading from testdata/filewriter/input.csv.log.zst and using the FileWriter output, co
output/filewriter_test.go:325
↓ 5 callersMethoduploadDirectory
()
upload/s3.go:234
↓ 5 callersMethodvalidate
()
input/kcl.go:53
↓ 4 callersMethodGetObject
(input *s3.GetObjectInput)
input/sqs_test.go:536
↓ 4 callersFunctionLessLogging
LessLogging is a test helper that decreases logging (in fact it sets its level to Error). It returns a function which when called, resets it to its pr
testutil/helpers.go:94
↓ 4 callersMethodMetrics
Metrics returns a snapshot of the cache performance counters. This is not safe for concurrent use by multiple goroutines.
pkg/buffercache/cache.go:359
↓ 4 callersMethodProcess
Process processes a single Record, and then optionally sends it to next filter in the chain. Process might mutate the Record, adding/modifying/removin
api.go:96
↓ 4 callersFunctionTempFile
TempFile is a test helper that creates a temporary file, returns its name and a function which when called removes that file. This is useful to be cal
testutil/helpers.go:50
↓ 4 callersFunctionassertKeyValue
(t *testing.T, cache *BufferCache, key string, want []byte)
pkg/buffercache/helper_test.go:32
next →1–100 of 846, ranked by callers