Exploit databaseDownload repository ZIP
GH-e19a96fa624ea4ab9de156192006552e
adewale/rogue_planet
Sources for CVE-2009-2937
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files8
adewale/rogue_planetRevision 569d25dc60e0
- ↑..Parent directory
- interface.go
- normalizer.go
- normalizer_bench_test.go
- normalizer_fuzz_test.go
- normalizer_realworld_test.go
- normalizer_test.go
- normalizer_torture_test.go
- normalizer_xss_test.go
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
pkg/normalizer/interface.go
Go · 820 bytespackage normalizer
import (
"context"
"time"
)
// FeedNormalizer defines the interface for feed parsing and content normalization.
// This interface enables dependency injection and makes testing easier by allowing
// mock implementations to be used in place of the concrete Normalizer.
//
// Methods accept context.Context to enable cancellation of long-running parsing operations.
type FeedNormalizer interface {
// Parse parses and normalizes a feed from raw bytes
// Returns feed metadata, normalized entries, and any parsing errors
// The context can be used to cancel parsing of large feeds
Parse(ctx context.Context, feedData []byte, feedURL string, fetchTime time.Time) (*FeedMetadata, []Entry, error)
}
// Ensure Normalizer implements FeedNormalizer interface
var _ FeedNormalizer = (*Normalizer)(nil)