Documentation ¶
Overview ¶
- go-libdeluge v0.1.0 - a native deluge RPC client library
- Copyright (C) 2015~2016 gdm85 - https://github.com/gdm85/go-libdeluge/
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrAlreadyClosed is returned when connection is already closed. ErrAlreadyClosed = errors.New("connection is already closed") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a Deluge RPC client.
func (*Client) AddTorrentMagnet ¶
AddTorrentMagnet adds a torrent via magnet URI and returns the torrent hash.
func (*Client) Connect ¶
Connect performs connection to a Deluge daemon second previously specified settings.
func (*Client) DaemonVersion ¶
DaemonVersion returns the running daemon version.
func (*Client) MethodsList ¶
MethodsList returns a list of available methods on server.
type DelugeResponse ¶
type DelugeResponse struct {
// contains filtered or unexported fields
}
DelugeResponse is a response returned from a completed RPC call.
func (*DelugeResponse) IsError ¶
func (dr *DelugeResponse) IsError() bool
IsError returns true when the response is an error.
func (*DelugeResponse) String ¶
func (dr *DelugeResponse) String() string
Directories ¶
Path | Synopsis |
---|---|
* go-libdeluge v0.1.0 - a native deluge RPC client library * Copyright (C) 2015~2016 gdm85 - https://github.com/gdm85/go-libdeluge/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
|
* go-libdeluge v0.1.0 - a native deluge RPC client library * Copyright (C) 2015~2016 gdm85 - https://github.com/gdm85/go-libdeluge/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. |