Documentation
¶
Overview ¶
Package nzbbuild provides helpers for constructing NZB objects and writing them to temporary files in tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File struct {
// Subject is used as both the XML subject attribute and the parsed filename.
Subject string
// Groups defaults to ["alt.binaries.test"] when nil.
Groups []string
Segments []Segment
// Date is the Unix timestamp for the file entry (0 is fine for tests).
Date int
}
File describes one <file> entry in an NZB.
type Segment ¶
type Segment struct {
// ID is the NNTP message-ID (e.g. "test-seg-001@fake").
ID string
// Bytes is the declared segment size as it would appear in the NZB
// <segment bytes="N"> attribute. Set this higher than the real decoded
// payload to simulate yEnc/article overhead.
Bytes int
}
Segment describes one <segment> entry in an NZB file.
Click to show internal directories.
Click to hide internal directories.