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

Method Process

filter/crypt.go:96–106  ·  view source on GitHub ↗
(r baker.Record, next func(baker.Record))

Source from the content-addressed store, hash-verified

94}
95
96func (f *Crypt) Process(r baker.Record, next func(baker.Record)) {
97 newVal, err := f.transformFn(r.Get(f.src))
98 if err != nil {
99 log.Errorf("can't process line: %v", err)
100 atomic.AddInt64(&f.numFilteredLines, 1)
101 return
102 }
103
104 r.Set(f.dst, newVal)
105 next(r)
106}
107
108type cryptFernet struct {
109 key *fernet.Key

Callers 1

TestCryptFunction · 0.95

Calls 2

GetMethod · 0.65
SetMethod · 0.65

Tested by 1

TestCryptFunction · 0.76