Versions in this module Expand all Collapse all v1 v1.3.2 Mar 13, 2018 Changes in this version + var ErrPeerExists = errors.New("already connected to this peer") + type Client struct + Address string + Password string + UserAgent string + func New(address string) *Client + func (c *Client) ConsensusGet() (cg api.ConsensusGET, err error) + func (c *Client) DaemonStopGet() (err error) + func (c *Client) DaemonVersionGet() (dvg api.DaemonVersionGet, err error) + func (c *Client) GatewayConnectPost(address modules.NetAddress) (err error) + func (c *Client) GatewayGet() (gwg api.GatewayGET, err error) + func (c *Client) HostAcceptingContractsPost(acceptingContracts bool) (err error) + func (c *Client) HostAnnouncePost() (err error) + func (c *Client) HostDbActiveGet() (hdag api.HostdbActiveGET, err error) + func (c *Client) HostGet() (hg api.HostGET, err error) + func (c *Client) HostStorageFoldersAddPost(path string, size uint64) (err error) + func (c *Client) MinerHeaderGet() (target types.Target, bh types.BlockHeader, err error) + func (c *Client) MinerHeaderPost(bh types.BlockHeader) (err error) + func (c *Client) MinerStartGet() (err error) + func (c *Client) MinerStopGet() (err error) + func (c *Client) NewRequest(method, resource string, body io.Reader) (*http.Request, error) + func (c *Client) RenterContractsGet() (rc api.RenterContracts, err error) + func (c *Client) RenterDeletePost(siaPath string) (err error) + func (c *Client) RenterDownloadGet(siaPath, destination string, offset, length uint64, async bool) (err error) + func (c *Client) RenterDownloadHTTPResponseGet(siaPath string, offset, length uint64) (resp []byte, err error) + func (c *Client) RenterDownloadsGet() (rdq api.RenterDownloadQueue, err error) + func (c *Client) RenterFilesGet() (rf api.RenterFiles, err error) + func (c *Client) RenterPost(allowance modules.Allowance) (err error) + func (c *Client) RenterUploadPost(path, siaPath string, dataPieces, parityPieces uint64) (err error) + func (c *Client) WalletAddressGet() (wag api.WalletAddressGET, err error) + func (c *Client) WalletGet() (wg api.WalletGET, err error) + func (c *Client) WalletInitPost(password string, force bool) (wip api.WalletInitPOST, err error) + func (c *Client) WalletSiacoinsMultiPost(outputs []types.SiacoinOutput) (wsp api.WalletSiacoinsPOST, err error) + func (c *Client) WalletSiacoinsPost(amount types.Currency, destination types.UnlockHash) (wsp api.WalletSiacoinsPOST, err error) + func (c *Client) WalletTransactionsGet(startHeight types.BlockHeight, endHeight types.BlockHeight) (wtg api.WalletTransactionsGET, err error) + func (c *Client) WalletUnlockPost(password string) (err error)