Documentation ¶
Index ¶
- Variables
- func Get(url string) (data []byte, e error)
- func Hash(url string) string
- func NewRPCClient(ctx context.Context) (cli rpc.Client, e error)
- func RegisterCache()
- func RegisterProxy(addr string, args ...ProxyArgs) (e error)
- func Wrap(e error, msg string) error
- type Nyaa
- func (n Nyaa) CurrentPage() int
- func (n Nyaa) Download(idx int) (e error)
- func (n Nyaa) DownloadAll() (e error)
- func (n *Nyaa) Find(name string) error
- func (n *Nyaa) Limit(i int)
- func (n Nyaa) List() (l []string)
- func (n Nyaa) Save(idx int) (e error)
- func (n Nyaa) SaveAll() (e error)
- func (n *Nyaa) SetPage(p int)
- type NyaaOption
- type NyaaTorrent
- type ProxyArgs
- type Saver
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAriaRPC = "http://localhost:6800/jsonrpc"
DefaultAriaRPC ...
View Source
var DefaultAriaSecret = ""
DefaultAriaSecret ...
View Source
var DefaultNYAAURL = `https://sukebei.nyaa.si`
DefaultNYAAURL ...
View Source
var DefaultSavePath = "tmp"
DefaultSavePath ...
View Source
var DefaultTimeOutSecond time.Duration = 3
DefaultTimeOutSecond ...
Functions ¶
func NewRPCClient ¶
NewRPCClient ...
Types ¶
type Nyaa ¶
type Nyaa struct { Aria rpc.Client User string //user:NewDragon,offkab F string Category string Query string Sort string Order string Page int // contains filtered or unexported fields }
Nyaa ...
func (Nyaa) CurrentPage ¶
type NyaaTorrent ¶
type NyaaTorrent struct { ID string Link string Category string Name string File string Magnet string Size string Date string Seeders string Leechers string Downloads string }
NyaaTorrent ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.