model

package
v0.0.0-...-49f0b1a Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CodecXViD      Codec = "XViD"
	CodecX264            = "x264"
	CodecMPEG2           = "MPEG2"
	CodecDiVX            = "DiVX"
	CodecDVDR            = "DVDR"
	CodecVC1             = "VC-1"
	CodecH264            = "H.264"
	CodecWMV             = "WMV"
	CodecBR              = "BR"
	CodecX264Hi10P       = "x264-Hi10P"
)
View Source
const (
	ContainerAVI  Container = "AVI"
	ContainerMKV            = "MKV"
	ContainerVOB            = "VOB"
	ContainerMPEG           = "MPEG"
	ContainerMP4            = "MP4"
	ContainerISO            = "ISO"
	ContainerWMV            = "WMV"
	ContainerTS             = "TS"
	ContainerM4V            = "M4V"
	ContainerM2TS           = "M2TS"
)
View Source
const (
	SourceHDTV   Source = "HDTV"
	SourcePDTV          = "PDTV"
	SourceDSR           = "DSR"
	SourceDVDRip        = "DVDRip"
	SourceTVRip         = "TVRip"
	SourceVHSRip        = "VHSRip"
	SourceBluray        = "Bluray"
	SourceBDRip         = "BDRip"
	SourceBRRip         = "BRRip"
	SourceDVD5          = "DVD5"
	SourceDVD9          = "DVD9"
	SourceHDDVD         = "HDDVD"
	SourceWEB           = "WEB"
	SourceBD5           = "BD5"
	SourceBD9           = "BD9"
	SourceBD25          = "BD25"
	SourceBD50          = "BD50"
	SourceMixed         = "Mixed"
)
View Source
const (
	ResolutionPortableDevice Resolution = "Portable Device"
	ResolutionSD                        = "SD"
	Resolution720p                      = "720p"
	Resolution1080i                     = "1080i"
	Resolution1080p                     = "1080p"
)
View Source
const (
	OriginScene Origin = "Scene"
	OriginP2P          = "P2P"
	OriginUser         = "User"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category string
const (
	CategorySeason  Category = "Season"
	CategoryEpisode          = "Episode"
)

type ChangelogEntry

type ChangelogEntry struct {
	Changes string    `json:"Changes"`
	Time    time.Time `json:"Time"`
	User    string    `json:"User"`
}

func (*ChangelogEntry) UnmarshalJSON

func (c *ChangelogEntry) UnmarshalJSON(data []byte) error

type Codec

type Codec string

type Container

type Container string

type Conversation

type Conversation struct {
	Messages []ConversationMessage `json:"Messages"`
	Sticky   bool                  `json:"Sticky"`
	Subject  string                `json:"Subject"`
	Unread   bool                  `json:"Unread"`
}

func (*Conversation) UnmarshalJSON

func (c *Conversation) UnmarshalJSON(data []byte) error

type ConversationMessage

type ConversationMessage struct {
	ID       int       `json:"ID"`
	Body     string    `json:"Body"`
	Time     time.Time `json:"Time"`
	Username string    `json:"Username"`
}

type Forum

type Forum struct {
	Description string    `json:"Description"`
	ForumID     int       `json:"ForumID"`
	ForumName   string    `json:"ForumName"`
	LastPost    ForumPost `json:"LastPost"`
	PostCount   int       `json:"NumPosts"`
	TopicCount  int       `json:"NumTopics"`
	Sort        int       `json:"Sort"`
}

func (*Forum) UnmarshalJSON

func (f *Forum) UnmarshalJSON(data []byte) error

type ForumInfo

type ForumInfo struct {
	GroupName    string `json:"GroupName"`
	MinClassRead int    `json:"MinClassRead"`
	Name         string `json:"Name"`
	TopicCount   int    `json:"Topics"`
}

func (*ForumInfo) UnmarshalJSON

func (i *ForumInfo) UnmarshalJSON(data []byte) error

type ForumPage

type ForumPage struct {
	Info     ForumInfo     `json:"ForumInfo"`
	MaxPages int           `json:"MaxPages"`
	Threads  []ForumThread `json:"Threads"`
}

type ForumPost

type ForumPost struct {
	ID       int       `json:"ID"`
	Time     time.Time `json:"Time"`
	Title    string    `json:"Title"`
	TopicID  int       `json:"TopicID"`
	UserID   int       `json:"UserID"`
	Username string    `json:"Username"`
}

func (*ForumPost) UnmarshalJSON

func (p *ForumPost) UnmarshalJSON(data []byte) error

type ForumThread

type ForumThread struct {
	Author   string          `json:"Author"`
	ID       int             `json:"ID"`
	Locked   bool            `json:"Locked"`
	Sticky   bool            `json:"Sticky"`
	LastPost ForumThreadPost `json:"LastPost"`
	Title    string          `json:"Title"`
}

func (*ForumThread) UnmarshalJSON

func (t *ForumThread) UnmarshalJSON(data []byte) error

type ForumThreadPost

type ForumThreadPost struct {
	Author string    `json:"Author"`
	ID     int       `json:"ID"`
	Time   time.Time `json:"Time"`
}

func (*ForumThreadPost) UnmarshalJSON

func (p *ForumThreadPost) UnmarshalJSON(data []byte) error

type Inbox

type Inbox struct {
	MaxPages int       `json:"MaxPages"`
	Messages []Message `json:"results"`
}

type Message

type Message struct {
	Date     time.Time `json:"Date"`
	ID       int       `json:"ID"`
	Sticky   bool      `json:"Sticky"`
	Subject  string    `json:"Subject"`
	Unread   bool      `json:"Unread"`
	UserID   int       `json:"UserID"`
	Username string    `json:"Username"`
}

func (*Message) UnmarshalJSON

func (m *Message) UnmarshalJSON(data []byte) error

type News

type News []NewsItem

func (*News) UnmarshalJSON

func (n *News) UnmarshalJSON(data []byte) error

type NewsItem

type NewsItem struct {
	Author string    `json:"Author"`
	Body   string    `json:"Body"`
	Time   time.Time `json:"Time"`
	Title  string    `json:"Title"`
	ID     int       `json:"ID"`
}

func (*NewsItem) UnmarshalJSON

func (i *NewsItem) UnmarshalJSON(data []byte) error

type Origin

type Origin string

type Resolution

type Resolution string

type SearchTorrentOptions

type SearchTorrentOptions struct {
	TorrentID  int         `json:"id,omitempty"`
	Series     string      `json:"series,omitempty"`
	Category   Category    `json:"category,omitempty"`
	GroupName  string      `json:"name,omitempty"`
	Search     string      `json:"search,omitempty"`
	Codecs     []Codec     `json:"codec,omitempty"`
	Containers []Container `json:"container,omitempty"`
	Hash       string      `json:"hash,omitempty"`
	TVDbID     string      `json:"tvdb,omitempty"`
	TVRageID   string      `json:"tvrage,omitempty"`
	Time       string      `json:"time,omitempty"`
	Age        string      `json:"age,omitempty"`
}

type Snatch

type Snatch struct {
	ID          int           `json:"ID"`
	Downloaded  int           `json:"Downloaded"`
	Uploaded    int           `json:"Uploaded"`
	IsSeeding   bool          `json:"IsSeeding"`
	Ratio       float64       `json:"Ratio"`
	SeedTime    time.Duration `json:"SeedTime"`
	SnatchTime  time.Time     `json:"SnatchTime"`
	TorrentID   int           `json:"TorrentId"`
	TorrentInfo TorrentInfo   `json:"TorrentInfo"`
}

func (*Snatch) UnmarshalJSON

func (s *Snatch) UnmarshalJSON(data []byte) error

type Source

type Source string

type Subscription

type Subscription struct {
	ID       int              `json:"Id"`
	Forum    string           `json:"Forum"`
	ForumID  int              `json:"ForumID"`
	LastPost SubscriptionPost `json:"LastPost"`
	NumPosts int              `json:"NumPosts"`
	NumViews int              `json:"NumViews"`
	Title    string           `json:"Title"`
	Unread   bool             `json:"Unread"`
}

type SubscriptionPost

type SubscriptionPost struct {
	AuthorID int       `json:"AuthorID"`
	ID       int       `json:"ID"`
	Time     time.Time `json:"Time"`
	Username string    `json:"Username"`
}

func (*SubscriptionPost) UnmarshalJSON

func (p *SubscriptionPost) UnmarshalJSON(data []byte) error

type Subscriptions

type Subscriptions []Subscription

func (*Subscriptions) UnmarshalJSON

func (s *Subscriptions) UnmarshalJSON(data []byte) error

type Torrent

type Torrent struct {
	Category       string    `json:"Category"`
	Codec          string    `json:"Codec"`
	Container      string    `json:"Container"`
	DownloadURL    string    `json:"DownloadURL"`
	GroupID        int       `json:"GroupID"`
	GroupName      string    `json:"GroupName"`
	ImdbID         int       `json:"ImdbID"`
	InfoHash       string    `json:"InfoHash"`
	Leechers       int       `json:"Leechers"`
	Origin         string    `json:"Origin"`
	ReleaseName    string    `json:"ReleaseName"`
	Resolution     string    `json:"Resolution"`
	Seeders        int       `json:"Seeders"`
	Series         string    `json:"Series"`
	Seriesbanner   string    `json:"Seriesbanner"`
	SeriesID       int       `json:"SeriesID"`
	SeriesPoster   string    `json:"SeriesPoster"`
	Size           int       `json:"Size"`
	Snatched       int       `json:"Snatched"`
	Source         string    `json:"Source"`
	Time           time.Time `json:"Time"`
	TorrentID      int       `json:"TorrentID"`
	TvdbID         int       `json:"TvdbID"`
	TvrageID       int       `json:"TvrageID"`
	YoutubeTrailer string    `json:"YoutubeTrailer"`
}

func (*Torrent) UnmarshalJSON

func (t *Torrent) UnmarshalJSON(data []byte) error

type TorrentInfo

type TorrentInfo struct {
	Codec      Codec      `json:"Codec"`
	Container  Container  `json:"Container"`
	GroupName  string     `json:"GroupName"`
	Resolution Resolution `json:"Resolution"`
	Series     string     `json:"Series"`
	Source     Source     `json:"Source"`
	Year       int        `json:"Year"`
}

func (*TorrentInfo) UnmarshalJSON

func (i *TorrentInfo) UnmarshalJSON(data []byte) error

type User

type User struct {
	UserID          int       `json:"UserID"`
	Username        string    `json:"Username"`
	Email           string    `json:"Email"`
	Upload          int       `json:"Upload"`
	Download        int       `json:"Download"`
	Lumens          int       `json:"Lumens"`
	Bonus           float64   `json:"Bonus"`
	JoinDate        time.Time `json:"JoinDate"`
	Title           string    `json:"Title"`
	Enabled         bool      `json:"Enabled"`
	Paranoia        int       `json:"Paranoia"`
	Invites         int       `json:"Invites"`
	Class           string    `json:"Class"`
	ClassLevel      int       `json:"ClassLevel"`
	HnR             int       `json:"HnR"`
	UploadsSnatched int       `json:"UploadsSnatched"`
	Snatches        int       `json:"Snatches"`
}

func (*User) UnmarshalJSON

func (u *User) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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