MCPcopy
hub / github.com/kserve/kserve / BatchStrategy

Interface BatchStrategy

pkg/logger/store.go:78–80  ·  view source on GitHub ↗

BatchStrategy accumulates individual log requests and emits batches. Run reads from in, batches records according to its policy, and writes batches to out. Run MUST close out when in is closed and all remaining records have been flushed. Run MUST respect ctx cancellation.

Source from the content-addressed store, hash-verified

76// batches to out. Run MUST close out when in is closed and all remaining
77// records have been flushed. Run MUST respect ctx cancellation.
78type BatchStrategy interface {
79 Run(ctx context.Context, in <-chan LogRequest, out chan<- []LogRequest)
80}
81
82type Store interface {
83 Store(logUrl *url.URL, batch []LogRequest) error

Callers 8

StartMethod · 0.65
TestMainFunction · 0.65
TestIncludesArgFunction · 0.65
TestIsGpuEnabledFunction · 0.65
TestFirstNonNilErrorFunction · 0.65
TestIsPrefixSupportedFunction · 0.65
TestGetEnvVarValueFunction · 0.65

Implementers 3

SizeBatchpkg/logger/batch_size.go
TimedBatchpkg/logger/batch_timed.go
ImmediateBatchpkg/logger/batch_immediate.go

Calls

no outgoing calls

Tested by

no test coverage detected