Updated processor/normalizer wiring to track Feedkit v0.7.0
Some checks failed
ci/woodpecker/push/build-image Pipeline failed
Some checks failed
ci/woodpecker/push/build-image Pipeline failed
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
// transforming provider-specific raw payloads into canonical internal models.
|
||||
//
|
||||
// This package is domain code (weatherfeeder). feedkit’s normalize package is
|
||||
// infrastructure (registry + processor).
|
||||
// infrastructure (normalizer contracts + processor).
|
||||
//
|
||||
// Directory layout (required)
|
||||
// ---------------------------
|
||||
@@ -136,21 +136,22 @@
|
||||
//
|
||||
// Registration pattern
|
||||
// --------------------
|
||||
// feedkit normalization uses a match-driven registry (“first match wins”).
|
||||
// feedkit normalization uses an ordered normalizer list ("first match wins").
|
||||
//
|
||||
// Provider subpackages should expose:
|
||||
//
|
||||
// func Register(reg *normalize.Registry)
|
||||
// func Register(in []normalize.Normalizer) []normalize.Normalizer
|
||||
//
|
||||
// And internal/normalizers/builtins.go should provide one entrypoint:
|
||||
//
|
||||
// func RegisterBuiltins(reg *normalize.Registry)
|
||||
// func RegisterBuiltins(in []normalize.Normalizer) []normalize.Normalizer
|
||||
//
|
||||
// which calls each provider’s Register() in a stable order.
|
||||
// which appends each provider's normalizers in a stable order and is then passed
|
||||
// to normalize.NewProcessor(...).
|
||||
//
|
||||
// Registry ordering
|
||||
// Normalizer ordering
|
||||
// -----------------------------
|
||||
// feedkit normalization uses a match-driven registry (“first match wins”).
|
||||
// feedkit normalization is "first match wins" by list order.
|
||||
// Therefore order matters:
|
||||
//
|
||||
// - Register more specific normalizers before more general ones.
|
||||
|
||||
Reference in New Issue
Block a user