sources

package
v0.0.0-...-22e36b4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(name string, sourceDriver SourceDriver)

func RegisteredDrivers

func RegisteredDrivers() []string

Types

type Source

type Source interface {
	// ID источника
	ID() int

	// Имя источника
	Name() string

	// Шаблон ссылки на страницу с информацией о торренте
	GetTorrentByID(int) (*torrent.Torrent, error)

	// Максимальный доступный ID торрента
	MaxTorrentID() (int, error)
}

Источник торрентов

func Open

func Open(driverName, params string) (Source, error)

type SourceDriver

type SourceDriver interface {
	Open(string) (Source, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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