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
func (*Generator) AddFileHash ¶ added in v0.0.4
AddFileHash adds a hash for a file
type NZBGenerator ¶
type NZBGenerator interface {
// AddArticle adds an article to the generator
AddArticle(article *article.Article)
// AddFileHash adds a hash for a file
AddFileHash(filename string, hash string)
// Generate creates an NZB file
Generate(outputPath string) (string, error)
}
NZBGenerator defines the interface for generating NZB files
func NewGenerator ¶
func NewGenerator(segmentSize uint64, compressionConfig config.NzbCompressionConfig, maintainOriginalExtension bool) NZBGenerator
NewGenerator creates a new NZB generator
Click to show internal directories.
Click to hide internal directories.