Versions in this module Expand all Collapse all v1 v1.3.2 Mar 13, 2018 Changes in this version + func HttpGET(url string) (resp *http.Response, err error) + func HttpGETAuthenticated(url string, password string) (resp *http.Response, err error) + func HttpPOST(url string, data string) (resp *http.Response, err error) + func HttpPOSTAuthenticated(url string, data string, password string) (resp *http.Response, err error) + func RequirePassword(h httprouter.Handle, password string) httprouter.Handle + func RequireUserAgent(h http.Handler, ua string) http.Handler + func UnrecognizedCallHandler(w http.ResponseWriter, req *http.Request) + func WriteError(w http.ResponseWriter, err Error, code int) + func WriteJSON(w http.ResponseWriter, obj interface{}) + func WriteSuccess(w http.ResponseWriter) + type API struct + func New(requiredUserAgent string, requiredPassword string, cs modules.ConsensusSet, ...) *API + func (api *API) ServeHTTP(w http.ResponseWriter, r *http.Request) + type ConsensusGET struct + CurrentBlock types.BlockID + Difficulty types.Currency + Height types.BlockHeight + Synced bool + Target types.Target + type DaemonVersionGet struct + BuildTime string + GitRevision string + Version string + type DownloadInfo struct + Completed bool + Destination string + DestinationType string + EndTime time.Time + Error string + Filesize uint64 + Length uint64 + Offset uint64 + Received uint64 + SiaPath string + StartTime time.Time + TotalDataTransferred uint64 + type Error struct + Message string + func (err Error) Error() string + type ExplorerBlock struct + MinerPayoutIDs []types.SiacoinOutputID + RawBlock types.Block + Transactions []ExplorerTransaction + type ExplorerBlockGET struct + Block ExplorerBlock + type ExplorerGET struct + type ExplorerHashGET struct + Block ExplorerBlock + Blocks []ExplorerBlock + HashType string + Transaction ExplorerTransaction + Transactions []ExplorerTransaction + type ExplorerTransaction struct + FileContractIDs []types.FileContractID + FileContractMissedProofOutputIDs [][]types.SiacoinOutputID + FileContractRevisionMissedProofOutputIDs [][]types.SiacoinOutputID + FileContractRevisionValidProofOutputIDs [][]types.SiacoinOutputID + FileContractValidProofOutputIDs [][]types.SiacoinOutputID + Height types.BlockHeight + ID types.TransactionID + Parent types.BlockID + RawTransaction types.Transaction + SiacoinInputOutputs []types.SiacoinOutput + SiacoinOutputIDs []types.SiacoinOutputID + SiafundClaimOutputIDs []types.SiacoinOutputID + SiafundInputOutputs []types.SiafundOutput + SiafundOutputIDs []types.SiafundOutputID + StorageProofOutputIDs [][]types.SiacoinOutputID + StorageProofOutputs [][]types.SiacoinOutput + type ExtendedHostDBEntry struct + PublicKeyString string + type GatewayGET struct + NetAddress modules.NetAddress + Peers []modules.Peer + type HostEstimateScoreGET struct + ConversionRate float64 + EstimatedScore types.Currency + type HostGET struct + ConnectabilityStatus modules.HostConnectabilityStatus + ExternalSettings modules.HostExternalSettings + FinancialMetrics modules.HostFinancialMetrics + InternalSettings modules.HostInternalSettings + NetworkMetrics modules.HostNetworkMetrics + WorkingStatus modules.HostWorkingStatus + type HostdbActiveGET struct + Hosts []ExtendedHostDBEntry + type HostdbAllGET struct + Hosts []ExtendedHostDBEntry + type HostdbHostsGET struct + Entry ExtendedHostDBEntry + ScoreBreakdown modules.HostScoreBreakdown + type MinerGET struct + BlocksMined int + CPUHashrate int + CPUMining bool + StaleBlocksMined int + type RenterContract struct + DownloadSpending types.Currency + EndHeight types.BlockHeight + Fees types.Currency + GoodForRenew bool + GoodForUpload bool + HostPublicKey types.SiaPublicKey + ID types.FileContractID + LastTransaction types.Transaction + NetAddress modules.NetAddress + RenterFunds types.Currency + Size uint64 + StartHeight types.BlockHeight + StorageSpending types.Currency + StorageSpendingDeprecated types.Currency + TotalCost types.Currency + UploadSpending types.Currency + type RenterContracts struct + Contracts []RenterContract + type RenterDownloadQueue struct + Downloads []DownloadInfo + type RenterFiles struct + Files []modules.FileInfo + type RenterGET struct + CurrentPeriod types.BlockHeight + FinancialMetrics modules.ContractorSpending + Settings modules.RenterSettings + type RenterLoad struct + FilesAdded []string + type RenterPricesGET struct + type RenterShareASCII struct + ASCIIsia string + type StorageGET struct + Folders []modules.StorageFolderMetadata + type TpoolConfirmedGET struct + Confirmed bool + type TpoolFeeGET struct + Maximum types.Currency + Minimum types.Currency + type TpoolRawGET struct + ID types.TransactionID + Parents []byte + Transaction []byte + type WalletAddressGET struct + Address types.UnlockHash + type WalletAddressesGET struct + Addresses []types.UnlockHash + type WalletGET struct + ConfirmedSiacoinBalance types.Currency + DustThreshold types.Currency + Encrypted bool + Height types.BlockHeight + Rescanning bool + SiacoinClaimBalance types.Currency + SiafundBalance types.Currency + UnconfirmedIncomingSiacoins types.Currency + UnconfirmedOutgoingSiacoins types.Currency + Unlocked bool + type WalletInitPOST struct + PrimarySeed string + type WalletSeedsGET struct + AddressesRemaining int + AllSeeds []string + PrimarySeed string + type WalletSiacoinsPOST struct + TransactionIDs []types.TransactionID + type WalletSiafundsPOST struct + TransactionIDs []types.TransactionID + type WalletSweepPOST struct + Coins types.Currency + Funds types.Currency + type WalletTransactionGETid struct + Transaction modules.ProcessedTransaction + type WalletTransactionsGET struct + ConfirmedTransactions []modules.ProcessedTransaction + UnconfirmedTransactions []modules.ProcessedTransaction + type WalletTransactionsGETaddr struct + ConfirmedTransactions []modules.ProcessedTransaction + UnconfirmedTransactions []modules.ProcessedTransaction + type WalletVerifyAddressGET struct + Valid bool