nzb

package
v0.0.0-...-539a64a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	XMLName  xml.Name   `xml:"file"`
	Poster   string     `xml:"poster,attr"`
	Date     uint32     `xml:"date,attr"`
	Subject  string     `xml:"subject,attr"`
	Groups   []string   `xml:"groups>group"`
	Segments []*Segment `xml:"segments>segment"`
}

func (*File) FileName

func (f *File) FileName() string

func (*File) FileSize

func (f *File) FileSize() (int64, bool)

type Nzb

type Nzb struct {
	XMLName xml.Name `xml:"nzb"`
	Files   []*File  `xml:"file"`
}

func Parse

func Parse(reader io.ReadCloser) (*Nzb, error)

type Segment

type Segment struct {
	XMLName xml.Name `xml:"segment"`
	Bytes   int64    `xml:"bytes,attr"`
	Number  uint32   `xml:"number,attr"`
	ID      string   `xml:",chardata"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL