Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct {
PublicKey types.PublicKey `json:"publicKey"`
V2 bool `json:"v2"`
NetAddress string `json:"netAddress"`
V2NetAddresses []chain.NetAddress `json:"v2NetAddresses,omitempty"`
KnownSince time.Time `json:"knownSince"`
LastScan time.Time `json:"lastScan"`
NextScan time.Time `json:"nextScan"`
LastScanSuccessful bool `json:"lastScanSuccessful"`
LastAnnouncement time.Time `json:"lastAnnouncement"`
TotalScans uint64 `json:"totalScans"`
SuccessfulInteractions uint64 `json:"successfulInteractions"`
FailedInteractions uint64 `json:"failedInteractions"`
Settings rhpv2.HostSettings `json:"settings"`
PriceTable rhpv3.HostPriceTable `json:"priceTable"`
RHPV4Settings rhpv4.HostSettings `json:"rhpV4Settings"`
}
type HostScan ¶
type HostScan struct {
// RHPV4Settings rhpv4.HostSettings `json:"rhpV4Settings"`
PublicKey string `json:"publicKey"`
V2 bool `json:"v2"`
V2NetAddresses []chain.NetAddress `json:"v2NetAddresses,omitempty"`
NetAddress string `json:"netAddress"`
Success bool `json:"success"`
Timestamp time.Time `json:"timestamp"`
NextScan time.Time `json:"nextScan"`
AcceptingContracts bool `json:"acceptingContracts"`
Error string `json:"error"`
OnlineSince time.Time `json:"onlineSince"`
OfflineSince time.Time `json:"offlineSince"`
TotalStorage uint64 `json:"totalStorage"`
RemainingStorage uint64 `json:"remainingStorage"`
Settings rhpv2.HostSettings `json:"settings"`
PriceTable rhpv3.HostPriceTable `json:"priceTable"`
RHPV4Settings rhpv4.HostSettings `json:"rhpV4Settings"`
}
HostScan represents the results of a host scan.
Click to show internal directories.
Click to hide internal directories.