Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator creates NZB files
func (*Generator) AddArticle ¶
AddArticle adds an article to the generator
type NZBGenerator ¶
type NZBGenerator interface {
// AddArticle adds an article to the generator
AddArticle(article article.Article)
// Generate creates an NZB file
Generate(filename string, outputPath string) error
}
NZBGenerator defines the interface for generating NZB files
func NewGenerator ¶
func NewGenerator(segmentSize uint64) NZBGenerator
NewGenerator creates a new NZB generator
Click to show internal directories.
Click to hide internal directories.