Documentation
¶
Overview ¶
Package nzb provides a function for parsing NZB files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
//The person who posted this to usenet
Poster string `xml:"poster,attr"`
//The date of the post in unix time
Date int `xml:"date,attr"`
//A subject line. This normally contains the filename
Subject Subject `xml:"subject,attr"`
//Which groups it was posted on
Groups []string `xml:"groups>group"`
//The Segments comprising this file
Segments []*Segment `xml:"segments>segment"`
}
File represents a single file in the NZB file.
type Nzb ¶
type Nzb struct {
//The files described in the NZB file
File []*File `xml:"file"`
}
Nzb represents the top level for a NZB file It's just a dumb struct to contain all the files.
Click to show internal directories.
Click to hide internal directories.