rhp

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

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 RPCUnlock

func RPCUnlock(t *rhp2.Transport) error

RPCUnlock unlocks a contract with a host.

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.

Jump to

Keyboard shortcuts

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