Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Latest commit

 

History

History
496 lines (269 loc) · 13.7 KB

NetworkStatus.md

File metadata and controls

496 lines (269 loc) · 13.7 KB

NetworkStatus

Properties

Name Type Description Notes
BlockHeight Pointer to int32 [optional]
BlockTimestamp Pointer to int32 [optional]
Hashrate Pointer to float32 [optional]
Difficulty Pointer to float32 [optional]
CoinSupply Pointer to float32 [optional]
CoinPriceUSD Pointer to float32 [optional]
MarketCapUSD Pointer to float32 [optional]
UsedStorageTB Pointer to float32 [optional]
NetworkCapacityTB Pointer to float32 [optional]
OnlineHosts Pointer to int32 [optional]
CountriesWithHosts Pointer to int32 [optional]
ActiveContracts Pointer to int32 [optional]
StorageProofCount Pointer to int32 [optional]
SkynetFiles Pointer to int32 [optional]
SkynetSize Pointer to float32 [optional]
SkynetPortalsNumber Pointer to int32 [optional]
PricePerTbSc Pointer to float32 [optional]
PricePerTbUsd Pointer to float32 [optional]

Methods

NewNetworkStatus

func NewNetworkStatus() *NetworkStatus

NewNetworkStatus instantiates a new NetworkStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewNetworkStatusWithDefaults

func NewNetworkStatusWithDefaults() *NetworkStatus

NewNetworkStatusWithDefaults instantiates a new NetworkStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetBlockHeight

func (o *NetworkStatus) GetBlockHeight() int32

GetBlockHeight returns the BlockHeight field if non-nil, zero value otherwise.

GetBlockHeightOk

func (o *NetworkStatus) GetBlockHeightOk() (*int32, bool)

GetBlockHeightOk returns a tuple with the BlockHeight field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBlockHeight

func (o *NetworkStatus) SetBlockHeight(v int32)

SetBlockHeight sets BlockHeight field to given value.

HasBlockHeight

func (o *NetworkStatus) HasBlockHeight() bool

HasBlockHeight returns a boolean if a field has been set.

GetBlockTimestamp

func (o *NetworkStatus) GetBlockTimestamp() int32

GetBlockTimestamp returns the BlockTimestamp field if non-nil, zero value otherwise.

GetBlockTimestampOk

func (o *NetworkStatus) GetBlockTimestampOk() (*int32, bool)

GetBlockTimestampOk returns a tuple with the BlockTimestamp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetBlockTimestamp

func (o *NetworkStatus) SetBlockTimestamp(v int32)

SetBlockTimestamp sets BlockTimestamp field to given value.

HasBlockTimestamp

func (o *NetworkStatus) HasBlockTimestamp() bool

HasBlockTimestamp returns a boolean if a field has been set.

GetHashrate

func (o *NetworkStatus) GetHashrate() float32

GetHashrate returns the Hashrate field if non-nil, zero value otherwise.

GetHashrateOk

func (o *NetworkStatus) GetHashrateOk() (*float32, bool)

GetHashrateOk returns a tuple with the Hashrate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetHashrate

func (o *NetworkStatus) SetHashrate(v float32)

SetHashrate sets Hashrate field to given value.

HasHashrate

func (o *NetworkStatus) HasHashrate() bool

HasHashrate returns a boolean if a field has been set.

GetDifficulty

func (o *NetworkStatus) GetDifficulty() float32

GetDifficulty returns the Difficulty field if non-nil, zero value otherwise.

GetDifficultyOk

func (o *NetworkStatus) GetDifficultyOk() (*float32, bool)

GetDifficultyOk returns a tuple with the Difficulty field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDifficulty

func (o *NetworkStatus) SetDifficulty(v float32)

SetDifficulty sets Difficulty field to given value.

HasDifficulty

func (o *NetworkStatus) HasDifficulty() bool

HasDifficulty returns a boolean if a field has been set.

GetCoinSupply

func (o *NetworkStatus) GetCoinSupply() float32

GetCoinSupply returns the CoinSupply field if non-nil, zero value otherwise.

GetCoinSupplyOk

func (o *NetworkStatus) GetCoinSupplyOk() (*float32, bool)

GetCoinSupplyOk returns a tuple with the CoinSupply field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCoinSupply

func (o *NetworkStatus) SetCoinSupply(v float32)

SetCoinSupply sets CoinSupply field to given value.

HasCoinSupply

func (o *NetworkStatus) HasCoinSupply() bool

HasCoinSupply returns a boolean if a field has been set.

GetCoinPriceUSD

func (o *NetworkStatus) GetCoinPriceUSD() float32

GetCoinPriceUSD returns the CoinPriceUSD field if non-nil, zero value otherwise.

GetCoinPriceUSDOk

func (o *NetworkStatus) GetCoinPriceUSDOk() (*float32, bool)

GetCoinPriceUSDOk returns a tuple with the CoinPriceUSD field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCoinPriceUSD

func (o *NetworkStatus) SetCoinPriceUSD(v float32)

SetCoinPriceUSD sets CoinPriceUSD field to given value.

HasCoinPriceUSD

func (o *NetworkStatus) HasCoinPriceUSD() bool

HasCoinPriceUSD returns a boolean if a field has been set.

GetMarketCapUSD

func (o *NetworkStatus) GetMarketCapUSD() float32

GetMarketCapUSD returns the MarketCapUSD field if non-nil, zero value otherwise.

GetMarketCapUSDOk

func (o *NetworkStatus) GetMarketCapUSDOk() (*float32, bool)

GetMarketCapUSDOk returns a tuple with the MarketCapUSD field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMarketCapUSD

func (o *NetworkStatus) SetMarketCapUSD(v float32)

SetMarketCapUSD sets MarketCapUSD field to given value.

HasMarketCapUSD

func (o *NetworkStatus) HasMarketCapUSD() bool

HasMarketCapUSD returns a boolean if a field has been set.

GetUsedStorageTB

func (o *NetworkStatus) GetUsedStorageTB() float32

GetUsedStorageTB returns the UsedStorageTB field if non-nil, zero value otherwise.

GetUsedStorageTBOk

func (o *NetworkStatus) GetUsedStorageTBOk() (*float32, bool)

GetUsedStorageTBOk returns a tuple with the UsedStorageTB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetUsedStorageTB

func (o *NetworkStatus) SetUsedStorageTB(v float32)

SetUsedStorageTB sets UsedStorageTB field to given value.

HasUsedStorageTB

func (o *NetworkStatus) HasUsedStorageTB() bool

HasUsedStorageTB returns a boolean if a field has been set.

GetNetworkCapacityTB

func (o *NetworkStatus) GetNetworkCapacityTB() float32

GetNetworkCapacityTB returns the NetworkCapacityTB field if non-nil, zero value otherwise.

GetNetworkCapacityTBOk

func (o *NetworkStatus) GetNetworkCapacityTBOk() (*float32, bool)

GetNetworkCapacityTBOk returns a tuple with the NetworkCapacityTB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetNetworkCapacityTB

func (o *NetworkStatus) SetNetworkCapacityTB(v float32)

SetNetworkCapacityTB sets NetworkCapacityTB field to given value.

HasNetworkCapacityTB

func (o *NetworkStatus) HasNetworkCapacityTB() bool

HasNetworkCapacityTB returns a boolean if a field has been set.

GetOnlineHosts

func (o *NetworkStatus) GetOnlineHosts() int32

GetOnlineHosts returns the OnlineHosts field if non-nil, zero value otherwise.

GetOnlineHostsOk

func (o *NetworkStatus) GetOnlineHostsOk() (*int32, bool)

GetOnlineHostsOk returns a tuple with the OnlineHosts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOnlineHosts

func (o *NetworkStatus) SetOnlineHosts(v int32)

SetOnlineHosts sets OnlineHosts field to given value.

HasOnlineHosts

func (o *NetworkStatus) HasOnlineHosts() bool

HasOnlineHosts returns a boolean if a field has been set.

GetCountriesWithHosts

func (o *NetworkStatus) GetCountriesWithHosts() int32

GetCountriesWithHosts returns the CountriesWithHosts field if non-nil, zero value otherwise.

GetCountriesWithHostsOk

func (o *NetworkStatus) GetCountriesWithHostsOk() (*int32, bool)

GetCountriesWithHostsOk returns a tuple with the CountriesWithHosts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCountriesWithHosts

func (o *NetworkStatus) SetCountriesWithHosts(v int32)

SetCountriesWithHosts sets CountriesWithHosts field to given value.

HasCountriesWithHosts

func (o *NetworkStatus) HasCountriesWithHosts() bool

HasCountriesWithHosts returns a boolean if a field has been set.

GetActiveContracts

func (o *NetworkStatus) GetActiveContracts() int32

GetActiveContracts returns the ActiveContracts field if non-nil, zero value otherwise.

GetActiveContractsOk

func (o *NetworkStatus) GetActiveContractsOk() (*int32, bool)

GetActiveContractsOk returns a tuple with the ActiveContracts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetActiveContracts

func (o *NetworkStatus) SetActiveContracts(v int32)

SetActiveContracts sets ActiveContracts field to given value.

HasActiveContracts

func (o *NetworkStatus) HasActiveContracts() bool

HasActiveContracts returns a boolean if a field has been set.

GetStorageProofCount

func (o *NetworkStatus) GetStorageProofCount() int32

GetStorageProofCount returns the StorageProofCount field if non-nil, zero value otherwise.

GetStorageProofCountOk

func (o *NetworkStatus) GetStorageProofCountOk() (*int32, bool)

GetStorageProofCountOk returns a tuple with the StorageProofCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetStorageProofCount

func (o *NetworkStatus) SetStorageProofCount(v int32)

SetStorageProofCount sets StorageProofCount field to given value.

HasStorageProofCount

func (o *NetworkStatus) HasStorageProofCount() bool

HasStorageProofCount returns a boolean if a field has been set.

GetSkynetFiles

func (o *NetworkStatus) GetSkynetFiles() int32

GetSkynetFiles returns the SkynetFiles field if non-nil, zero value otherwise.

GetSkynetFilesOk

func (o *NetworkStatus) GetSkynetFilesOk() (*int32, bool)

GetSkynetFilesOk returns a tuple with the SkynetFiles field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSkynetFiles

func (o *NetworkStatus) SetSkynetFiles(v int32)

SetSkynetFiles sets SkynetFiles field to given value.

HasSkynetFiles

func (o *NetworkStatus) HasSkynetFiles() bool

HasSkynetFiles returns a boolean if a field has been set.

GetSkynetSize

func (o *NetworkStatus) GetSkynetSize() float32

GetSkynetSize returns the SkynetSize field if non-nil, zero value otherwise.

GetSkynetSizeOk

func (o *NetworkStatus) GetSkynetSizeOk() (*float32, bool)

GetSkynetSizeOk returns a tuple with the SkynetSize field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSkynetSize

func (o *NetworkStatus) SetSkynetSize(v float32)

SetSkynetSize sets SkynetSize field to given value.

HasSkynetSize

func (o *NetworkStatus) HasSkynetSize() bool

HasSkynetSize returns a boolean if a field has been set.

GetSkynetPortalsNumber

func (o *NetworkStatus) GetSkynetPortalsNumber() int32

GetSkynetPortalsNumber returns the SkynetPortalsNumber field if non-nil, zero value otherwise.

GetSkynetPortalsNumberOk

func (o *NetworkStatus) GetSkynetPortalsNumberOk() (*int32, bool)

GetSkynetPortalsNumberOk returns a tuple with the SkynetPortalsNumber field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSkynetPortalsNumber

func (o *NetworkStatus) SetSkynetPortalsNumber(v int32)

SetSkynetPortalsNumber sets SkynetPortalsNumber field to given value.

HasSkynetPortalsNumber

func (o *NetworkStatus) HasSkynetPortalsNumber() bool

HasSkynetPortalsNumber returns a boolean if a field has been set.

GetPricePerTbSc

func (o *NetworkStatus) GetPricePerTbSc() float32

GetPricePerTbSc returns the PricePerTbSc field if non-nil, zero value otherwise.

GetPricePerTbScOk

func (o *NetworkStatus) GetPricePerTbScOk() (*float32, bool)

GetPricePerTbScOk returns a tuple with the PricePerTbSc field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPricePerTbSc

func (o *NetworkStatus) SetPricePerTbSc(v float32)

SetPricePerTbSc sets PricePerTbSc field to given value.

HasPricePerTbSc

func (o *NetworkStatus) HasPricePerTbSc() bool

HasPricePerTbSc returns a boolean if a field has been set.

GetPricePerTbUsd

func (o *NetworkStatus) GetPricePerTbUsd() float32

GetPricePerTbUsd returns the PricePerTbUsd field if non-nil, zero value otherwise.

GetPricePerTbUsdOk

func (o *NetworkStatus) GetPricePerTbUsdOk() (*float32, bool)

GetPricePerTbUsdOk returns a tuple with the PricePerTbUsd field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPricePerTbUsd

func (o *NetworkStatus) SetPricePerTbUsd(v float32)

SetPricePerTbUsd sets PricePerTbUsd field to given value.

HasPricePerTbUsd

func (o *NetworkStatus) HasPricePerTbUsd() bool

HasPricePerTbUsd returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]