def

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Del added in v1.1.0

type Del bool

func (*Del) UnmarshalXML added in v1.1.0

func (d *Del) UnmarshalXML(decoder *xml.Decoder, _ xml.StartElement) error

type Forum

type Forum struct {
	ID   string `xml:"id,attr"`
	Name string `xml:",chardata"`
}

type RecordScanner

type RecordScanner interface {
	Scan() (*TorrentRecord, error)
}

type Torrent

type Torrent struct {
	Hash      string `xml:"hash,attr"`
	TrackerID string `xml:"tracker_id,attr"`
}

type TorrentRecord

type TorrentRecord struct {
	ID           string     `xml:"id,attr"`
	RegisteredAt string     `xml:"registred_at,attr"`
	Size         string     `xml:"size,attr"`
	Torrent      Torrent    `xml:"torrent"`
	Forum        Forum      `xml:"forum"`
	Title        string     `xml:"title"`
	Content      string     `xml:"content"`
	Deleted      Del        `xml:"del"`
	RawAttrs     []xml.Attr `xml:-`
	RawContent   []byte     `xml:",innerxml"`
}

Jump to

Keyboard shortcuts

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