Documentation ¶
Index ¶
- func RPCFormContract(t *rhp2.Transport, renterKey types.PrivateKey, txnSet []types.Transaction) (rhp2.ContractRevision, []types.Transaction, error)
- func RPCLock(t *rhp2.Transport, renterKey types.PrivateKey, id types.FileContractID) (rhp2.ContractRevision, error)
- func RPCRead(t *rhp2.Transport, w io.Writer, renterKey types.PrivateKey, ...) error
- func RPCRenewContract(t *rhp2.Transport, renterKey types.PrivateKey, rev *rhp2.ContractRevision, ...) (rhp2.ContractRevision, []types.Transaction, error)
- func RPCSectorRoots(t *rhp2.Transport, renterKey types.PrivateKey, offset, limit uint64, ...) ([]types.Hash256, error)
- func RPCSettings(t *rhp2.Transport) (settings rhp2.HostSettings, err error)
- func RPCUnlock(t *rhp2.Transport) error
- func RPCWrite(t *rhp2.Transport, renterKey types.PrivateKey, rev *rhp2.ContractRevision, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RPCFormContract ¶
func RPCFormContract(t *rhp2.Transport, renterKey types.PrivateKey, txnSet []types.Transaction) (rhp2.ContractRevision, []types.Transaction, error)
RPCFormContract forms a contract with a host.
func RPCLock ¶
func RPCLock(t *rhp2.Transport, renterKey types.PrivateKey, id types.FileContractID) (rhp2.ContractRevision, error)
RPCLock locks a contract with a host.
func RPCRead ¶
func RPCRead(t *rhp2.Transport, w io.Writer, renterKey types.PrivateKey, rev *rhp2.ContractRevision, sections []rhp2.RPCReadRequestSection, price types.Currency) error
RPCRead reads data from a contract.
func RPCRenewContract ¶
func RPCRenewContract(t *rhp2.Transport, renterKey types.PrivateKey, rev *rhp2.ContractRevision, txnSet []types.Transaction, price types.Currency) (rhp2.ContractRevision, []types.Transaction, error)
RPCRenewContract renews a contract with a host.
func RPCSectorRoots ¶
func RPCSectorRoots(t *rhp2.Transport, renterKey types.PrivateKey, offset, limit uint64, rev *rhp2.ContractRevision, price types.Currency) ([]types.Hash256, error)
RPCSectorRoots fetches sector roots from a host.
func RPCSettings ¶
func RPCSettings(t *rhp2.Transport) (settings rhp2.HostSettings, err error)
RPCSettings calls the Settings RPC, returning the host's reported settings.
func RPCWrite ¶
func RPCWrite(t *rhp2.Transport, renterKey types.PrivateKey, rev *rhp2.ContractRevision, actions []rhp2.RPCWriteAction, price, collateral types.Currency) error
RPCWrite appends data to a contract.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.