// Package processors defines feedkit's generic processor abstraction and registry. // // Processors are optional pipeline stages that can transform, drop, or reject // events before dispatch to sinks. // // Registry provides name-based construction so daemons can assemble processor // chains without embedding switch statements in wiring code. // // Example: // // reg := processors.NewRegistry() // reg.Register("normalize", func() (processors.Processor, error) { // return normalize.NewProcessor(myNormalizers, false), nil // }) // // chain, err := reg.BuildChain([]string{"normalize"}) // if err != nil { // // handle wiring error // } // // p := &pipeline.Pipeline{Processors: chain} package processors