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

Method Process

filter/timestamp.go:48–52  ·  view source on GitHub ↗

Process implements baker.Filter.

(l baker.Record, next func(baker.Record))

Source from the content-addressed store, hash-verified

46
47// Process implements baker.Filter.
48func (f *Timestamp) Process(l baker.Record, next func(baker.Record)) {
49 now := strconv.AppendInt(nil, time.Now().Unix(), 10)
50 l.Set(f.fidx, now)
51 next(l)
52}

Callers 1

TestTimestampFunction · 0.95

Calls 1

SetMethod · 0.65

Tested by 1

TestTimestampFunction · 0.76