Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AdRoll/baker
/ functions
Functions
846 in github.com/AdRoll/baker
⨍
Functions
846
◇
Types & classes
221
↓ 4 callers
Function
assertValidConfigHelp
(t *testing.T, name string, cfg interface{})
help_test.go:15
↓ 4 callers
Function
benchmarkColdPutNoFlush
(b *testing.B, ncells int)
pkg/buffercache/bench_test.go:68
↓ 4 callers
Function
benchmarkHotPutNoFlush
(b *testing.B, nkeys int)
pkg/buffercache/bench_test.go:28
↓ 4 callers
Function
benchmarkTopology
(b *testing.B, nlines int, raw, sharding bool)
bench_test.go:21
↓ 4 callers
Method
coldCellIdx
()
pkg/buffercache/location.go:29
↓ 4 callers
Function
doOneRound
(t *testing.T, path string, raw bool)
output/sqlite_test.go:70
↓ 4 callers
Function
fillComponentsAndLoadConfig
(t *testing.T, toml string, user ...baker.UserDesc)
user_config_test.go:13
↓ 4 callers
Function
makeTestLog
(tb testing.TB, dir, fn string, numlines int)
input/list_test.go:55
↓ 4 callers
Function
newColdCache
newColdCache returns a coldCache with len(bsizes) buckets, each of which can hold ncells cells (or buffers), bsizes is the list of bucket cell sizes.
pkg/buffercache/cold.go:27
↓ 4 callers
Function
nextSplit
nextSplit returns the filename indicating the next split considering the following splitting rules: - the part number is the string such '.part-XXX' w
pkg/splitwriter/split_writer.go:284
↓ 4 callers
Function
open
(fname string)
pkg/splitwriter/split_writer.go:53
↓ 4 callers
Method
processListFile
(f io.Reader)
input/list.go:218
↓ 3 callers
Method
DurationWithTags
DurationWithTags adds a duration to an histogram and associates that duration with a set of tags.
metrics_client.go:55
↓ 3 callers
Method
FreeMem
This function is called when the filter is finished with the memory received through the input channel. Since the memory was allocated by Input, it is
api.go:81
↓ 3 callers
Function
MainCLI
MainCLI provides a handy way to quickly create a command-line interface to Baker by providing the list of components available to build and run a topo
baker_cli.go:29
↓ 3 callers
Function
NewCompressedInput
(opener func(fn string) (io.ReadCloser, int64, time.Time, *url.URL, error), sizer func(fn string) (int64, erro
input/inpututils/compressedstream.go:154
↓ 3 callers
Function
NewS3Input
(region, bucket string)
input/inpututils/s3.go:24
↓ 3 callers
Function
NewStatsDumper
NewStatsDumper creates and initializes a StatsDumper using the given topology and writing stats on standard output. It also exports metrics via the Me
stats.go:32
↓ 3 callers
Method
NoMoreFiles
Signal compressedInput that we've finished enqueuing files, and it can exit whenever it has finished processing what was already enqueued. This can be
input/inpututils/compressedstream.go:238
↓ 3 callers
Method
Process
(l baker.Record, next func(baker.Record))
filter/metadata_url.go:57
↓ 3 callers
Method
PublishedMetrics
PublishedMetrics returns a list of strings, each of which represent arguments and method of calls to methods of the baker.MetricsClient interface. Pre
testutil/mock_metrics.go:34
↓ 3 callers
Method
Run
Run starts dumping stats every second on standard output. Call stop() to stop periodically dumping stats, this prints stats one last time.
stats.go:197
↓ 3 callers
Method
SetOutputChannel
(data chan<- *baker.Data)
input/inpututils/compressedstream.go:208
↓ 3 callers
Method
add
(size uint32, ll baker.Record, valid bool)
output/stats.go:49
↓ 3 callers
Method
evaluateURLs
evaluateURLs evaluates urls using the current configuration..
filter/external_match.go:97
↓ 3 callers
Function
getCorpus
()
input/inpututils/fastgzreader_test.go:14
↓ 3 callers
Function
makeWriter
(t *testing.T, raw bool, path string, truncate bool)
output/sqlite_test.go:16
↓ 3 callers
Function
newBucket
newBucket instantiates a new bucket with ncells cells, each of which can hold 'cellbytes' bytes long (actually cellbytes - 4 since the buffer length i
pkg/buffercache/cold.go:88
↓ 3 callers
Function
newFilterDoc
(desc FilterDesc)
help_config.go:46
↓ 3 callers
Function
newInputDoc
(desc InputDesc)
help_config.go:28
↓ 3 callers
Function
newMetricsDoc
(desc MetricsDesc)
help_config.go:101
↓ 3 callers
Function
newOutputDoc
(desc OutputDesc)
help_config.go:64
↓ 3 callers
Function
newUploadDoc
(desc UploadDesc)
help_config.go:83
↓ 3 callers
Method
print
(w io.Writer)
output/stats.go:65
↓ 3 callers
Method
putInCold
putInCold puts buf in the cold cache if its size fits it, otherwise the buffer is put into the hot cache.
pkg/buffercache/cache.go:249
↓ 3 callers
Method
putInHot
putInHot places buf in the hot cache, copying it into a new hot cache buffer if that's the first with that key, or appending to the previous buffer wi
pkg/buffercache/cache.go:276
↓ 3 callers
Method
send
(data *baker.Data)
input/tcp.go:124
↓ 3 callers
Method
send
(data *baker.Data)
input/inpututils/compressedstream.go:212
↓ 3 callers
Function
simpleHash
(r baker.Record, idx baker.FieldIndex)
examples/advanced/main.go:60
↓ 3 callers
Function
testFileWriterIntegrationDeterministic
testFileWriterIntegration builds and run a topology reading from testdata/filewriter/input.csv.log.zst and using the FileWriter output, configured wit
output/filewriter_test.go:286
↓ 3 callers
Function
testNewConfigFromTOMLRequiredFields
(t *testing.T, name, toml string)
config_api_test.go:125
↓ 2 callers
Function
CheckRequiredFields
CheckRequiredFields checks that all fields that are tagged as required in cfg's type have actually been set to a value other than the field type zero
config.go:555
↓ 2 callers
Function
CopyDirectory
(scrDir, dest string)
testutil/dir.go:10
↓ 2 callers
Method
DeltaCount
DeltaCount increments the value of a metric of type counter by delta. delta must be positive.
metrics_client.go:33
↓ 2 callers
Method
GaugeWithTags
GaugeWithTags sets the value of a metric of type gauge and associates that value with a set of tags.
metrics_client.go:20
↓ 2 callers
Method
Meta
Meta returns the metadata having the given specific key, if any.
logline.go:228
↓ 2 callers
Function
New
New returns an io.WriteCloser that writes to fname; when it's closed, fname will be split in multiple files each of which having at most maxsize bytes
pkg/splitwriter/split_writer.go:28
↓ 2 callers
Function
NewExpandJSON
(cfg baker.FilterParams)
filter/expand_json.go:63
↓ 2 callers
Function
NewExternalMatch
(cfg baker.FilterParams)
filter/external_match.go:111
↓ 2 callers
Function
NewFileWriter
(cfg baker.OutputParams)
output/filewriter.go:136
↓ 2 callers
Function
NewFormatTime
(cfg baker.FilterParams)
filter/format_time.go:85
↓ 2 callers
Function
NewHook
NewHook returns a Logrus hook that forwards log entries as events to a statsd client, such as the datadog-agent. Log entries with a level higher than
metrics/datadog/hook.go:26
↓ 2 callers
Function
NewMetadataUrl
(cfg baker.FilterParams)
filter/metadata_url.go:39
↓ 2 callers
Function
NewSQLite
(isRaw bool)
output/sqlite.go:126
↓ 2 callers
Function
NewTimestamp
NewTimestamp creates and configures a Timestamp filter.
filter/timestamp.go:31
↓ 2 callers
Function
NewTimestampRange
NewTimestampRange creates and configures a TimestampRange filter.
filter/timestamp_range.go:38
↓ 2 callers
Method
ParseFile
(fn string)
input/inpututils/compressedstream.go:247
↓ 2 callers
Function
PrintHelp
PrintHelp prints the help message for the given component, identified by its name. When name is '*' it shows the help messages for all components. Th
help.go:51
↓ 2 callers
Method
Process
(l baker.Record, next func(baker.Record))
filter/expand_json.go:103
↓ 2 callers
Method
Process
(l baker.Record, next func(baker.Record))
filter/format_time.go:113
↓ 2 callers
Method
RawCountWithTags
RawCountWithTags sets the value of a metric or type counter and associates that value with a set of tags.
metrics_client.go:29
↓ 2 callers
Function
RenderHelpMarkdown
RenderHelpMarkdown prints markdown formatted help for a single component or for all of them (with name = '*'), and renders it so that it can be printe
help_markdown.go:14
↓ 2 callers
Function
RequiredFields
RequiredFields returns the names of the underlying configuration structure fields which are tagged as required. To tag a field as being required, a "r
config.go:530
↓ 2 callers
Method
SetWriter
SetWriter sets the writer into which stats are written. SetWriter must be called before Run().
stats.go:49
↓ 2 callers
Function
TempDir
TempDir is a test helper that creates a temporary directory, returns its name and a function which when called removes that directory. This is useful
testutil/helpers.go:22
↓ 2 callers
Method
Write
(buf []byte)
output/filewriter.go:489
↓ 2 callers
Method
Write
(p []byte)
pkg/splitwriter/split_writer.go:76
↓ 2 callers
Function
assertPanics
(t *testing.T, f func())
pkg/buffercache/helper_test.go:20
↓ 2 callers
Function
assignFieldMapping
assignFieldMapping verifies that field mapping has been set once, but only once (either in cfg or comp). Then if that is the case, assignFieldMapping
config.go:427
↓ 2 callers
Function
assignValidationMapping
assignValidationMapping verifies that validation has been set once either in comp or in cfg. If validation has not been set assignValidationMapping ge
config.go:474
↓ 2 callers
Method
clearBit
clearBit clears bit i (0-based, starting from LSB)
pkg/buffercache/bitmap.go:48
↓ 2 callers
Method
copyByte
copyByte copies c at index pos of the internal buffer, growing it if necessary.
pkg/buffercache/compressor.go:124
↓ 2 callers
Function
countLines
countLines returns the number of lines in a file, either compressed (zstd/gz) or uncompressed.
output/filewriter_test.go:531
↓ 2 callers
Method
del
(c *client)
output/websocket/server.go:45
↓ 2 callers
Function
doOneRoundTruncate
(t *testing.T, path string, truncate, raw bool)
output/sqlite_test.go:74
↓ 2 callers
Method
dumpNow
()
stats.go:51
↓ 2 callers
Method
fillCreateRecordDefault
()
config.go:173
↓ 2 callers
Method
fillDefaults
()
filter/dedup.go:35
↓ 2 callers
Function
findFirstZero64
findFirstZero64 returns the index of the first bit at 0, starting from the LSB (least significant bit).
pkg/buffercache/bitmap.go:27
↓ 2 callers
Method
findFreeCell
findFreeCell returns the index of the first free cell or false.
pkg/buffercache/bitmap.go:14
↓ 2 callers
Method
flush
()
output/dyndb.go:366
↓ 2 callers
Method
flushBlocks
flushBlocks decompresses and flushes consecutive blocks in buf, interleaving each of them with a `\n` in the decompressed buffer.
pkg/buffercache/cache.go:200
↓ 2 callers
Method
flushHot
()
pkg/buffercache/cache.go:180
↓ 2 callers
Function
formatToLayout
(format string)
filter/format_time.go:125
↓ 2 callers
Method
grow
()
pkg/buffercache/compressor.go:62
↓ 2 callers
Function
httpGet
(url string)
input/list.go:432
↓ 2 callers
Method
init
()
pkg/buffercache/compressor.go:74
↓ 2 callers
Function
isValidScheme
Check if scheme is s3 or s3a or s3n
input/inpututils/s3.go:119
↓ 2 callers
Function
lineAt
lineAt returns the line in text starting at offset offs.
testutil/golden.go:71
↓ 2 callers
Method
makePath
(tmpl *template.Template)
output/filewriter.go:425
↓ 2 callers
Function
makeUnivocal
makeUnivocal ensure each string in slist is univocal, appending '_2' to duplicates, '_3' to triplicates, and so on. Non-repeated strings are not modif
topology.go:406
↓ 2 callers
Function
makeWriteCloser
makeWriteCloser converts an io.Writer and a Close function into a WriteCloser.
output/filewriter.go:463
↓ 2 callers
Function
mockS3Service
(t *testing.T, generatedFiles, generatedRecords int, getManifest bool)
input/list_test.go:346
↓ 2 callers
Method
move
(sourceFilePath string)
upload/s3.go:189
↓ 2 callers
Method
moveToHotCache
moveToHotCache moves a buffer from the cold to the hot cache. loc represents the location of the buffer in the cold cache.
pkg/buffercache/cache.go:344
↓ 2 callers
Function
newClient
newClient creates a baker.MetricsClient that pushes to the datadog server using the dogstatsd format. All exported metrics will have a name prepended
metrics/datadog/client.go:42
↓ 2 callers
Method
newFile
(path string)
output/filewriter.go:374
↓ 2 callers
Function
nthFile
(n int)
upload/s3_integration_test.go:31
↓ 2 callers
Method
openFile
Open a file and return the io Reader, the size, the last modification, and the path as URL. If the sizeOnly parameter is true no io Reader will be ret
input/list.go:89
↓ 2 callers
Method
parseFileTyped
(fn string, comp compressionType)
input/inpututils/compressedstream.go:255
← previous
next →
101–200 of 846, ranked by callers