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

Method Process

examples/filtering/filter.go:28–37  ·  view source on GitHub ↗
(l baker.Record, next func(baker.Record))

Source from the content-addressed store, hash-verified

26}
27
28func (f *LazyFilter) Process(l baker.Record, next func(baker.Record)) {
29 h := time.Now().Hour()
30 upperLimit := 18
31 if f.stakhanovite {
32 upperLimit = 20
33 }
34 if h >= 9 && h <= upperLimit {
35 next(l)
36 }
37}
38
39func (f *LazyFilter) Stats() baker.FilterStats {
40 return baker.FilterStats{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected