Documentation ¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type AllHostsRequest
- func (o *AllHostsRequest) GetList() string
- func (o *AllHostsRequest) GetListOk() (*string, bool)
- func (o *AllHostsRequest) GetNetwork() string
- func (o *AllHostsRequest) GetNetworkOk() (*string, bool)
- func (o AllHostsRequest) MarshalJSON() ([]byte, error)
- func (o *AllHostsRequest) SetList(v string)
- func (o *AllHostsRequest) SetNetwork(v string)
- type ApiAllHostsRequest
- type ApiHashRequest
- type ApiHostRequest
- type ApiNetworkStatusRequest
- type ApiStatusRequest
- type BasicAuth
- type Benchmarks
- func (o *Benchmarks) GetBenchFailureRate() int32
- func (o *Benchmarks) GetBenchFailureRateOk() (*int32, bool)
- func (o *Benchmarks) GetContractSuccess() bool
- func (o *Benchmarks) GetContractSuccessOk() (*bool, bool)
- func (o *Benchmarks) GetDown() int64
- func (o *Benchmarks) GetDownOk() (*int64, bool)
- func (o *Benchmarks) GetDownScore() int32
- func (o *Benchmarks) GetDownScoreOk() (*int32, bool)
- func (o *Benchmarks) GetErrorDescription() string
- func (o *Benchmarks) GetErrorDescriptionOk() (*string, bool)
- func (o *Benchmarks) GetErrorFull() string
- func (o *Benchmarks) GetErrorFullOk() (*string, bool)
- func (o *Benchmarks) GetErrorType() string
- func (o *Benchmarks) GetErrorTypeOk() (*string, bool)
- func (o *Benchmarks) GetFinalScore() int32
- func (o *Benchmarks) GetFinalScoreOk() (*int32, bool)
- func (o *Benchmarks) GetLatency() int32
- func (o *Benchmarks) GetLatencyOk() (*int32, bool)
- func (o *Benchmarks) GetLatencyScore() int32
- func (o *Benchmarks) GetLatencyScoreOk() (*int32, bool)
- func (o *Benchmarks) GetScoreChange1day() OneOfstringfloat
- func (o *Benchmarks) GetScoreChange1dayOk() (*OneOfstringfloat, bool)
- func (o *Benchmarks) GetScoreChange7day() OneOfstringfloat
- func (o *Benchmarks) GetScoreChange7dayOk() (*OneOfstringfloat, bool)
- func (o *Benchmarks) GetScoreChange7daySmooth() OneOfstringfloat
- func (o *Benchmarks) GetScoreChange7daySmoothOk() (*OneOfstringfloat, bool)
- func (o *Benchmarks) GetUp() int64
- func (o *Benchmarks) GetUpOk() (*int64, bool)
- func (o *Benchmarks) GetUpScore() int32
- func (o *Benchmarks) GetUpScoreOk() (*int32, bool)
- func (o *Benchmarks) HasBenchFailureRate() bool
- func (o *Benchmarks) HasContractSuccess() bool
- func (o *Benchmarks) HasDown() bool
- func (o *Benchmarks) HasDownScore() bool
- func (o *Benchmarks) HasErrorDescription() bool
- func (o *Benchmarks) HasErrorFull() bool
- func (o *Benchmarks) HasErrorType() bool
- func (o *Benchmarks) HasFinalScore() bool
- func (o *Benchmarks) HasLatency() bool
- func (o *Benchmarks) HasLatencyScore() bool
- func (o *Benchmarks) HasScoreChange1day() bool
- func (o *Benchmarks) HasScoreChange7day() bool
- func (o *Benchmarks) HasScoreChange7daySmooth() bool
- func (o *Benchmarks) HasUp() bool
- func (o *Benchmarks) HasUpScore() bool
- func (o Benchmarks) MarshalJSON() ([]byte, error)
- func (o *Benchmarks) SetBenchFailureRate(v int32)
- func (o *Benchmarks) SetContractSuccess(v bool)
- func (o *Benchmarks) SetDown(v int64)
- func (o *Benchmarks) SetDownScore(v int32)
- func (o *Benchmarks) SetErrorDescription(v string)
- func (o *Benchmarks) SetErrorFull(v string)
- func (o *Benchmarks) SetErrorType(v string)
- func (o *Benchmarks) SetFinalScore(v int32)
- func (o *Benchmarks) SetLatency(v int32)
- func (o *Benchmarks) SetLatencyScore(v int32)
- func (o *Benchmarks) SetScoreChange1day(v OneOfstringfloat)
- func (o *Benchmarks) SetScoreChange7day(v OneOfstringfloat)
- func (o *Benchmarks) SetScoreChange7daySmooth(v OneOfstringfloat)
- func (o *Benchmarks) SetUp(v int64)
- func (o *Benchmarks) SetUpScore(v int32)
- type ComparisonMatrix
- func (o *ComparisonMatrix) GetCollateral() float32
- func (o *ComparisonMatrix) GetCollateralOk() (*float32, bool)
- func (o *ComparisonMatrix) GetContractPrice() float32
- func (o *ComparisonMatrix) GetContractPriceOk() (*float32, bool)
- func (o *ComparisonMatrix) GetDown() float32
- func (o *ComparisonMatrix) GetDownOk() (*float32, bool)
- func (o *ComparisonMatrix) GetPrice() float32
- func (o *ComparisonMatrix) GetPriceOk() (*float32, bool)
- func (o *ComparisonMatrix) GetStored() int32
- func (o *ComparisonMatrix) GetStoredOk() (*int32, bool)
- func (o *ComparisonMatrix) GetUp() float32
- func (o *ComparisonMatrix) GetUpOk() (*float32, bool)
- func (o *ComparisonMatrix) HasCollateral() bool
- func (o *ComparisonMatrix) HasContractPrice() bool
- func (o *ComparisonMatrix) HasDown() bool
- func (o *ComparisonMatrix) HasPrice() bool
- func (o *ComparisonMatrix) HasStored() bool
- func (o *ComparisonMatrix) HasUp() bool
- func (o ComparisonMatrix) MarshalJSON() ([]byte, error)
- func (o *ComparisonMatrix) SetCollateral(v float32)
- func (o *ComparisonMatrix) SetContractPrice(v float32)
- func (o *ComparisonMatrix) SetDown(v float32)
- func (o *ComparisonMatrix) SetPrice(v float32)
- func (o *ComparisonMatrix) SetStored(v int32)
- func (o *ComparisonMatrix) SetUp(v float32)
- type Configuration
- type GenericOpenAPIError
- type HashResponse
- func (o *HashResponse) GetBalanceSc() float64
- func (o *HashResponse) GetBalanceScOk() (*float64, bool)
- func (o *HashResponse) GetBalanceSf() float32
- func (o *HashResponse) GetBalanceSfOk() (*float32, bool)
- func (o *HashResponse) GetFirstSeen() int32
- func (o *HashResponse) GetFirstSeenOk() (*int32, bool)
- func (o *HashResponse) GetLast100Transactions() []Transaction
- func (o *HashResponse) GetLast100TransactionsOk() (*[]Transaction, bool)
- func (o *HashResponse) GetMasterHash() string
- func (o *HashResponse) GetMasterHashOk() (*string, bool)
- func (o *HashResponse) GetReceivedSc() float64
- func (o *HashResponse) GetReceivedScOk() (*float64, bool)
- func (o *HashResponse) GetSentSc() float64
- func (o *HashResponse) GetSentScOk() (*float64, bool)
- func (o *HashResponse) GetTotalTxCount() int32
- func (o *HashResponse) GetTotalTxCountOk() (*int32, bool)
- func (o *HashResponse) GetType() string
- func (o *HashResponse) GetTypeOk() (*string, bool)
- func (o *HashResponse) HasBalanceSc() bool
- func (o *HashResponse) HasBalanceSf() bool
- func (o *HashResponse) HasFirstSeen() bool
- func (o *HashResponse) HasLast100Transactions() bool
- func (o *HashResponse) HasMasterHash() bool
- func (o *HashResponse) HasReceivedSc() bool
- func (o *HashResponse) HasSentSc() bool
- func (o *HashResponse) HasTotalTxCount() bool
- func (o *HashResponse) HasType() bool
- func (o HashResponse) MarshalJSON() ([]byte, error)
- func (o *HashResponse) SetBalanceSc(v float64)
- func (o *HashResponse) SetBalanceSf(v float32)
- func (o *HashResponse) SetFirstSeen(v int32)
- func (o *HashResponse) SetLast100Transactions(v []Transaction)
- func (o *HashResponse) SetMasterHash(v string)
- func (o *HashResponse) SetReceivedSc(v float64)
- func (o *HashResponse) SetSentSc(v float64)
- func (o *HashResponse) SetTotalTxCount(v int32)
- func (o *HashResponse) SetType(v string)
- type Host
- func (o *Host) GetAcceptingContracts() bool
- func (o *Host) GetAcceptingContractsOk() (*bool, bool)
- func (o *Host) GetCollateral() int32
- func (o *Host) GetCollateralOk() (*int32, bool)
- func (o *Host) GetContractPrice() int32
- func (o *Host) GetContractPriceOk() (*int32, bool)
- func (o *Host) GetCountryCode() string
- func (o *Host) GetCountryCodeOk() (*string, bool)
- func (o *Host) GetCurrentIp() string
- func (o *Host) GetCurrentIpOk() (*string, bool)
- func (o *Host) GetDownloadPrice() int32
- func (o *Host) GetDownloadPriceOk() (*int32, bool)
- func (o *Host) GetErrorType() string
- func (o *Host) GetErrorTypeOk() (*string, bool)
- func (o *Host) GetFinalScore() int32
- func (o *Host) GetFinalScoreOk() (*int32, bool)
- func (o *Host) GetId() float32
- func (o *Host) GetIdOk() (*float32, bool)
- func (o *Host) GetOnline() bool
- func (o *Host) GetOnlineOk() (*bool, bool)
- func (o *Host) GetPubkey() string
- func (o *Host) GetPubkeyOk() (*string, bool)
- func (o *Host) GetRank() int32
- func (o *Host) GetRankOk() (*int32, bool)
- func (o *Host) GetStoragePrice() int32
- func (o *Host) GetStoragePriceOk() (*int32, bool)
- func (o *Host) GetTotalStorage() float32
- func (o *Host) GetTotalStorageOk() (*float32, bool)
- func (o *Host) GetUploadPrice() int32
- func (o *Host) GetUploadPriceOk() (*int32, bool)
- func (o *Host) GetUsedStorage() float32
- func (o *Host) GetUsedStorageOk() (*float32, bool)
- func (o *Host) GetVersion() string
- func (o *Host) GetVersionOk() (*string, bool)
- func (o *Host) HasAcceptingContracts() bool
- func (o *Host) HasCollateral() bool
- func (o *Host) HasContractPrice() bool
- func (o *Host) HasCountryCode() bool
- func (o *Host) HasCurrentIp() bool
- func (o *Host) HasDownloadPrice() bool
- func (o *Host) HasErrorType() bool
- func (o *Host) HasFinalScore() bool
- func (o *Host) HasId() bool
- func (o *Host) HasOnline() bool
- func (o *Host) HasPubkey() bool
- func (o *Host) HasRank() bool
- func (o *Host) HasStoragePrice() bool
- func (o *Host) HasTotalStorage() bool
- func (o *Host) HasUploadPrice() bool
- func (o *Host) HasUsedStorage() bool
- func (o *Host) HasVersion() bool
- func (o Host) MarshalJSON() ([]byte, error)
- func (o *Host) SetAcceptingContracts(v bool)
- func (o *Host) SetCollateral(v int32)
- func (o *Host) SetContractPrice(v int32)
- func (o *Host) SetCountryCode(v string)
- func (o *Host) SetCurrentIp(v string)
- func (o *Host) SetDownloadPrice(v int32)
- func (o *Host) SetErrorType(v string)
- func (o *Host) SetFinalScore(v int32)
- func (o *Host) SetId(v float32)
- func (o *Host) SetOnline(v bool)
- func (o *Host) SetPubkey(v string)
- func (o *Host) SetRank(v int32)
- func (o *Host) SetStoragePrice(v int32)
- func (o *Host) SetTotalStorage(v float32)
- func (o *Host) SetUploadPrice(v int32)
- func (o *Host) SetUsedStorage(v float32)
- func (o *Host) SetVersion(v string)
- type HostApiService
- func (a *HostApiService) AllHosts(ctx _context.Context) ApiAllHostsRequest
- func (a *HostApiService) AllHostsExecute(r ApiAllHostsRequest) ([]Host, *_nethttp.Response, error)
- func (a *HostApiService) Host(ctx _context.Context, id int32) ApiHostRequest
- func (a *HostApiService) HostExecute(r ApiHostRequest) (HostResponse, *_nethttp.Response, error)
- type HostResponse
- func (o *HostResponse) GetBenchmarks() Benchmarks
- func (o *HostResponse) GetBenchmarksOk() (*Benchmarks, bool)
- func (o *HostResponse) GetCollateral() float32
- func (o *HostResponse) GetCollateralOk() (*float32, bool)
- func (o *HostResponse) GetComparisonMatrix() ComparisonMatrix
- func (o *HostResponse) GetComparisonMatrixOk() (*ComparisonMatrix, bool)
- func (o *HostResponse) GetCountryCode() string
- func (o *HostResponse) GetCountryCodeOk() (*string, bool)
- func (o *HostResponse) GetCountryName() string
- func (o *HostResponse) GetCountryNameOk() (*string, bool)
- func (o *HostResponse) GetDownloadPrice() float32
- func (o *HostResponse) GetDownloadPriceOk() (*float32, bool)
- func (o *HostResponse) GetFirstSeenBlock() int32
- func (o *HostResponse) GetFirstSeenBlockOk() (*int32, bool)
- func (o *HostResponse) GetId() int32
- func (o *HostResponse) GetIdOk() (*int32, bool)
- func (o *HostResponse) GetIp() string
- func (o *HostResponse) GetIpOk() (*string, bool)
- func (o *HostResponse) GetIsp() string
- func (o *HostResponse) GetIspOk() (*string, bool)
- func (o *HostResponse) GetLat() float32
- func (o *HostResponse) GetLatOk() (*float32, bool)
- func (o *HostResponse) GetLon() float32
- func (o *HostResponse) GetLonOk() (*float32, bool)
- func (o *HostResponse) GetMaxDuration() float32
- func (o *HostResponse) GetMaxDurationOk() (*float32, bool)
- func (o *HostResponse) GetMinContractPrice() float32
- func (o *HostResponse) GetMinContractPriceOk() (*float32, bool)
- func (o *HostResponse) GetNetwork() string
- func (o *HostResponse) GetNetworkOk() (*string, bool)
- func (o *HostResponse) GetOnline() bool
- func (o *HostResponse) GetOnlineOk() (*bool, bool)
- func (o *HostResponse) GetPlotBands() []PlotBand
- func (o *HostResponse) GetPlotBandsOk() (*[]PlotBand, bool)
- func (o *HostResponse) GetPubkey() string
- func (o *HostResponse) GetPubkeyOk() (*string, bool)
- func (o *HostResponse) GetRank() int32
- func (o *HostResponse) GetRankOk() (*int32, bool)
- func (o *HostResponse) GetRegionalScores() []RegionalScore
- func (o *HostResponse) GetRegionalScoresOk() (*[]RegionalScore, bool)
- func (o *HostResponse) GetRequestStatus() string
- func (o *HostResponse) GetRequestStatusOk() (*string, bool)
- func (o *HostResponse) GetSectorSize() int32
- func (o *HostResponse) GetSectorSizeOk() (*int32, bool)
- func (o *HostResponse) GetSeenBy() []string
- func (o *HostResponse) GetSeenByOk() (*[]string, bool)
- func (o *HostResponse) GetStoragePrice() float32
- func (o *HostResponse) GetStoragePriceOk() (*float32, bool)
- func (o *HostResponse) GetTicks() Ticks
- func (o *HostResponse) GetTicksOk() (*Ticks, bool)
- func (o *HostResponse) GetTotalStorage() float32
- func (o *HostResponse) GetTotalStorageOk() (*float32, bool)
- func (o *HostResponse) GetUploadPrice() float32
- func (o *HostResponse) GetUploadPriceOk() (*float32, bool)
- func (o *HostResponse) GetUptime1m() float32
- func (o *HostResponse) GetUptime1mOk() (*float32, bool)
- func (o *HostResponse) GetUptime6m() float32
- func (o *HostResponse) GetUptime6mOk() (*float32, bool)
- func (o *HostResponse) GetUsedStorage() float32
- func (o *HostResponse) GetUsedStorageOk() (*float32, bool)
- func (o *HostResponse) GetVersion() string
- func (o *HostResponse) GetVersionOk() (*string, bool)
- func (o *HostResponse) GetWindowSize() int32
- func (o *HostResponse) GetWindowSizeOk() (*int32, bool)
- func (o *HostResponse) HasBenchmarks() bool
- func (o *HostResponse) HasCollateral() bool
- func (o *HostResponse) HasComparisonMatrix() bool
- func (o *HostResponse) HasCountryCode() bool
- func (o *HostResponse) HasCountryName() bool
- func (o *HostResponse) HasDownloadPrice() bool
- func (o *HostResponse) HasFirstSeenBlock() bool
- func (o *HostResponse) HasId() bool
- func (o *HostResponse) HasIp() bool
- func (o *HostResponse) HasIsp() bool
- func (o *HostResponse) HasLat() bool
- func (o *HostResponse) HasLon() bool
- func (o *HostResponse) HasMaxDuration() bool
- func (o *HostResponse) HasMinContractPrice() bool
- func (o *HostResponse) HasNetwork() bool
- func (o *HostResponse) HasOnline() bool
- func (o *HostResponse) HasPlotBands() bool
- func (o *HostResponse) HasPubkey() bool
- func (o *HostResponse) HasRank() bool
- func (o *HostResponse) HasRegionalScores() bool
- func (o *HostResponse) HasRequestStatus() bool
- func (o *HostResponse) HasSectorSize() bool
- func (o *HostResponse) HasSeenBy() bool
- func (o *HostResponse) HasStoragePrice() bool
- func (o *HostResponse) HasTicks() bool
- func (o *HostResponse) HasTotalStorage() bool
- func (o *HostResponse) HasUploadPrice() bool
- func (o *HostResponse) HasUptime1m() bool
- func (o *HostResponse) HasUptime6m() bool
- func (o *HostResponse) HasUsedStorage() bool
- func (o *HostResponse) HasVersion() bool
- func (o *HostResponse) HasWindowSize() bool
- func (o HostResponse) MarshalJSON() ([]byte, error)
- func (o *HostResponse) SetBenchmarks(v Benchmarks)
- func (o *HostResponse) SetCollateral(v float32)
- func (o *HostResponse) SetComparisonMatrix(v ComparisonMatrix)
- func (o *HostResponse) SetCountryCode(v string)
- func (o *HostResponse) SetCountryName(v string)
- func (o *HostResponse) SetDownloadPrice(v float32)
- func (o *HostResponse) SetFirstSeenBlock(v int32)
- func (o *HostResponse) SetId(v int32)
- func (o *HostResponse) SetIp(v string)
- func (o *HostResponse) SetIsp(v string)
- func (o *HostResponse) SetLat(v float32)
- func (o *HostResponse) SetLon(v float32)
- func (o *HostResponse) SetMaxDuration(v float32)
- func (o *HostResponse) SetMinContractPrice(v float32)
- func (o *HostResponse) SetNetwork(v string)
- func (o *HostResponse) SetOnline(v bool)
- func (o *HostResponse) SetPlotBands(v []PlotBand)
- func (o *HostResponse) SetPubkey(v string)
- func (o *HostResponse) SetRank(v int32)
- func (o *HostResponse) SetRegionalScores(v []RegionalScore)
- func (o *HostResponse) SetRequestStatus(v string)
- func (o *HostResponse) SetSectorSize(v int32)
- func (o *HostResponse) SetSeenBy(v []string)
- func (o *HostResponse) SetStoragePrice(v float32)
- func (o *HostResponse) SetTicks(v Ticks)
- func (o *HostResponse) SetTotalStorage(v float32)
- func (o *HostResponse) SetUploadPrice(v float32)
- func (o *HostResponse) SetUptime1m(v float32)
- func (o *HostResponse) SetUptime6m(v float32)
- func (o *HostResponse) SetUsedStorage(v float32)
- func (o *HostResponse) SetVersion(v string)
- func (o *HostResponse) SetWindowSize(v int32)
- type NavigatorApiService
- func (a *NavigatorApiService) Hash(ctx _context.Context, hash string) ApiHashRequest
- func (a *NavigatorApiService) HashExecute(r ApiHashRequest) ([]HashResponse, *_nethttp.Response, error)
- func (a *NavigatorApiService) Status(ctx _context.Context) ApiStatusRequest
- func (a *NavigatorApiService) StatusExecute(r ApiStatusRequest) ([]Status, *_nethttp.Response, error)
- type NetworkStatus
- func (o *NetworkStatus) GetActiveContracts() int32
- func (o *NetworkStatus) GetActiveContractsOk() (*int32, bool)
- func (o *NetworkStatus) GetBlockHeight() int32
- func (o *NetworkStatus) GetBlockHeightOk() (*int32, bool)
- func (o *NetworkStatus) GetBlockTimestamp() int32
- func (o *NetworkStatus) GetBlockTimestampOk() (*int32, bool)
- func (o *NetworkStatus) GetCoinPriceUSD() float32
- func (o *NetworkStatus) GetCoinPriceUSDOk() (*float32, bool)
- func (o *NetworkStatus) GetCoinSupply() float32
- func (o *NetworkStatus) GetCoinSupplyOk() (*float32, bool)
- func (o *NetworkStatus) GetCountriesWithHosts() int32
- func (o *NetworkStatus) GetCountriesWithHostsOk() (*int32, bool)
- func (o *NetworkStatus) GetDifficulty() float32
- func (o *NetworkStatus) GetDifficultyOk() (*float32, bool)
- func (o *NetworkStatus) GetHashrate() float32
- func (o *NetworkStatus) GetHashrateOk() (*float32, bool)
- func (o *NetworkStatus) GetMarketCapUSD() float32
- func (o *NetworkStatus) GetMarketCapUSDOk() (*float32, bool)
- func (o *NetworkStatus) GetNetworkCapacityTB() float32
- func (o *NetworkStatus) GetNetworkCapacityTBOk() (*float32, bool)
- func (o *NetworkStatus) GetOnlineHosts() int32
- func (o *NetworkStatus) GetOnlineHostsOk() (*int32, bool)
- func (o *NetworkStatus) GetPricePerTbSc() float32
- func (o *NetworkStatus) GetPricePerTbScOk() (*float32, bool)
- func (o *NetworkStatus) GetPricePerTbUsd() float32
- func (o *NetworkStatus) GetPricePerTbUsdOk() (*float32, bool)
- func (o *NetworkStatus) GetSkynetFiles() int32
- func (o *NetworkStatus) GetSkynetFilesOk() (*int32, bool)
- func (o *NetworkStatus) GetSkynetPortalsNumber() int32
- func (o *NetworkStatus) GetSkynetPortalsNumberOk() (*int32, bool)
- func (o *NetworkStatus) GetSkynetSize() float32
- func (o *NetworkStatus) GetSkynetSizeOk() (*float32, bool)
- func (o *NetworkStatus) GetStorageProofCount() int32
- func (o *NetworkStatus) GetStorageProofCountOk() (*int32, bool)
- func (o *NetworkStatus) GetUsedStorageTB() float32
- func (o *NetworkStatus) GetUsedStorageTBOk() (*float32, bool)
- func (o *NetworkStatus) HasActiveContracts() bool
- func (o *NetworkStatus) HasBlockHeight() bool
- func (o *NetworkStatus) HasBlockTimestamp() bool
- func (o *NetworkStatus) HasCoinPriceUSD() bool
- func (o *NetworkStatus) HasCoinSupply() bool
- func (o *NetworkStatus) HasCountriesWithHosts() bool
- func (o *NetworkStatus) HasDifficulty() bool
- func (o *NetworkStatus) HasHashrate() bool
- func (o *NetworkStatus) HasMarketCapUSD() bool
- func (o *NetworkStatus) HasNetworkCapacityTB() bool
- func (o *NetworkStatus) HasOnlineHosts() bool
- func (o *NetworkStatus) HasPricePerTbSc() bool
- func (o *NetworkStatus) HasPricePerTbUsd() bool
- func (o *NetworkStatus) HasSkynetFiles() bool
- func (o *NetworkStatus) HasSkynetPortalsNumber() bool
- func (o *NetworkStatus) HasSkynetSize() bool
- func (o *NetworkStatus) HasStorageProofCount() bool
- func (o *NetworkStatus) HasUsedStorageTB() bool
- func (o NetworkStatus) MarshalJSON() ([]byte, error)
- func (o *NetworkStatus) SetActiveContracts(v int32)
- func (o *NetworkStatus) SetBlockHeight(v int32)
- func (o *NetworkStatus) SetBlockTimestamp(v int32)
- func (o *NetworkStatus) SetCoinPriceUSD(v float32)
- func (o *NetworkStatus) SetCoinSupply(v float32)
- func (o *NetworkStatus) SetCountriesWithHosts(v int32)
- func (o *NetworkStatus) SetDifficulty(v float32)
- func (o *NetworkStatus) SetHashrate(v float32)
- func (o *NetworkStatus) SetMarketCapUSD(v float32)
- func (o *NetworkStatus) SetNetworkCapacityTB(v float32)
- func (o *NetworkStatus) SetOnlineHosts(v int32)
- func (o *NetworkStatus) SetPricePerTbSc(v float32)
- func (o *NetworkStatus) SetPricePerTbUsd(v float32)
- func (o *NetworkStatus) SetSkynetFiles(v int32)
- func (o *NetworkStatus) SetSkynetPortalsNumber(v int32)
- func (o *NetworkStatus) SetSkynetSize(v float32)
- func (o *NetworkStatus) SetStorageProofCount(v int32)
- func (o *NetworkStatus) SetUsedStorageTB(v float32)
- type NetworkStatusApiService
- type NullableAllHostsRequest
- func (v NullableAllHostsRequest) Get() *AllHostsRequest
- func (v NullableAllHostsRequest) IsSet() bool
- func (v NullableAllHostsRequest) MarshalJSON() ([]byte, error)
- func (v *NullableAllHostsRequest) Set(val *AllHostsRequest)
- func (v *NullableAllHostsRequest) UnmarshalJSON(src []byte) error
- func (v *NullableAllHostsRequest) Unset()
- type NullableBenchmarks
- type NullableBool
- type NullableComparisonMatrix
- func (v NullableComparisonMatrix) Get() *ComparisonMatrix
- func (v NullableComparisonMatrix) IsSet() bool
- func (v NullableComparisonMatrix) MarshalJSON() ([]byte, error)
- func (v *NullableComparisonMatrix) Set(val *ComparisonMatrix)
- func (v *NullableComparisonMatrix) UnmarshalJSON(src []byte) error
- func (v *NullableComparisonMatrix) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableHashResponse
- func (v NullableHashResponse) Get() *HashResponse
- func (v NullableHashResponse) IsSet() bool
- func (v NullableHashResponse) MarshalJSON() ([]byte, error)
- func (v *NullableHashResponse) Set(val *HashResponse)
- func (v *NullableHashResponse) UnmarshalJSON(src []byte) error
- func (v *NullableHashResponse) Unset()
- type NullableHost
- type NullableHostResponse
- func (v NullableHostResponse) Get() *HostResponse
- func (v NullableHostResponse) IsSet() bool
- func (v NullableHostResponse) MarshalJSON() ([]byte, error)
- func (v *NullableHostResponse) Set(val *HostResponse)
- func (v *NullableHostResponse) UnmarshalJSON(src []byte) error
- func (v *NullableHostResponse) Unset()
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableNetworkStatus
- func (v NullableNetworkStatus) Get() *NetworkStatus
- func (v NullableNetworkStatus) IsSet() bool
- func (v NullableNetworkStatus) MarshalJSON() ([]byte, error)
- func (v *NullableNetworkStatus) Set(val *NetworkStatus)
- func (v *NullableNetworkStatus) UnmarshalJSON(src []byte) error
- func (v *NullableNetworkStatus) Unset()
- type NullablePlotBand
- type NullablePlotBandLabel
- func (v NullablePlotBandLabel) Get() *PlotBandLabel
- func (v NullablePlotBandLabel) IsSet() bool
- func (v NullablePlotBandLabel) MarshalJSON() ([]byte, error)
- func (v *NullablePlotBandLabel) Set(val *PlotBandLabel)
- func (v *NullablePlotBandLabel) UnmarshalJSON(src []byte) error
- func (v *NullablePlotBandLabel) Unset()
- type NullableRegionalScore
- func (v NullableRegionalScore) Get() *RegionalScore
- func (v NullableRegionalScore) IsSet() bool
- func (v NullableRegionalScore) MarshalJSON() ([]byte, error)
- func (v *NullableRegionalScore) Set(val *RegionalScore)
- func (v *NullableRegionalScore) UnmarshalJSON(src []byte) error
- func (v *NullableRegionalScore) Unset()
- type NullableStatus
- type NullableString
- type NullableTicks
- type NullableTime
- type NullableTransaction
- func (v NullableTransaction) Get() *Transaction
- func (v NullableTransaction) IsSet() bool
- func (v NullableTransaction) MarshalJSON() ([]byte, error)
- func (v *NullableTransaction) Set(val *Transaction)
- func (v *NullableTransaction) UnmarshalJSON(src []byte) error
- func (v *NullableTransaction) Unset()
- type OneOfstringfloat
- type PlotBand
- func (o *PlotBand) GetColor() string
- func (o *PlotBand) GetColorOk() (*string, bool)
- func (o *PlotBand) GetFrom() int64
- func (o *PlotBand) GetFromOk() (*int64, bool)
- func (o *PlotBand) GetLabel() PlotBandLabel
- func (o *PlotBand) GetLabelOk() (*PlotBandLabel, bool)
- func (o *PlotBand) GetTo() int64
- func (o *PlotBand) GetToOk() (*int64, bool)
- func (o *PlotBand) HasColor() bool
- func (o *PlotBand) HasFrom() bool
- func (o *PlotBand) HasLabel() bool
- func (o *PlotBand) HasTo() bool
- func (o PlotBand) MarshalJSON() ([]byte, error)
- func (o *PlotBand) SetColor(v string)
- func (o *PlotBand) SetFrom(v int64)
- func (o *PlotBand) SetLabel(v PlotBandLabel)
- func (o *PlotBand) SetTo(v int64)
- type PlotBandLabel
- func (o *PlotBandLabel) GetAlign() string
- func (o *PlotBandLabel) GetAlignOk() (*string, bool)
- func (o *PlotBandLabel) GetRotation() int32
- func (o *PlotBandLabel) GetRotationOk() (*int32, bool)
- func (o *PlotBandLabel) GetText() string
- func (o *PlotBandLabel) GetTextAlign() string
- func (o *PlotBandLabel) GetTextAlignOk() (*string, bool)
- func (o *PlotBandLabel) GetTextOk() (*string, bool)
- func (o *PlotBandLabel) GetX() int32
- func (o *PlotBandLabel) GetXOk() (*int32, bool)
- func (o *PlotBandLabel) GetY() int32
- func (o *PlotBandLabel) GetYOk() (*int32, bool)
- func (o *PlotBandLabel) HasAlign() bool
- func (o *PlotBandLabel) HasRotation() bool
- func (o *PlotBandLabel) HasText() bool
- func (o *PlotBandLabel) HasTextAlign() bool
- func (o *PlotBandLabel) HasX() bool
- func (o *PlotBandLabel) HasY() bool
- func (o PlotBandLabel) MarshalJSON() ([]byte, error)
- func (o *PlotBandLabel) SetAlign(v string)
- func (o *PlotBandLabel) SetRotation(v int32)
- func (o *PlotBandLabel) SetText(v string)
- func (o *PlotBandLabel) SetTextAlign(v string)
- func (o *PlotBandLabel) SetX(v int32)
- func (o *PlotBandLabel) SetY(v int32)
- type RegionalScore
- func (o *RegionalScore) GetDown() string
- func (o *RegionalScore) GetDownOk() (*string, bool)
- func (o *RegionalScore) GetDownScore() int32
- func (o *RegionalScore) GetDownScoreOk() (*int32, bool)
- func (o *RegionalScore) GetFinalScore() int32
- func (o *RegionalScore) GetFinalScoreOk() (*int32, bool)
- func (o *RegionalScore) GetLatency() int32
- func (o *RegionalScore) GetLatencyOk() (*int32, bool)
- func (o *RegionalScore) GetLatencyScore() int32
- func (o *RegionalScore) GetLatencyScoreOk() (*int32, bool)
- func (o *RegionalScore) GetRegion() string
- func (o *RegionalScore) GetRegionOk() (*string, bool)
- func (o *RegionalScore) GetUp() string
- func (o *RegionalScore) GetUpOk() (*string, bool)
- func (o *RegionalScore) GetUpScore() int32
- func (o *RegionalScore) GetUpScoreOk() (*int32, bool)
- func (o *RegionalScore) HasDown() bool
- func (o *RegionalScore) HasDownScore() bool
- func (o *RegionalScore) HasFinalScore() bool
- func (o *RegionalScore) HasLatency() bool
- func (o *RegionalScore) HasLatencyScore() bool
- func (o *RegionalScore) HasRegion() bool
- func (o *RegionalScore) HasUp() bool
- func (o *RegionalScore) HasUpScore() bool
- func (o RegionalScore) MarshalJSON() ([]byte, error)
- func (o *RegionalScore) SetDown(v string)
- func (o *RegionalScore) SetDownScore(v int32)
- func (o *RegionalScore) SetFinalScore(v int32)
- func (o *RegionalScore) SetLatency(v int32)
- func (o *RegionalScore) SetLatencyScore(v int32)
- func (o *RegionalScore) SetRegion(v string)
- func (o *RegionalScore) SetUp(v string)
- func (o *RegionalScore) SetUpScore(v int32)
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
- type Status
- func (o *Status) GetConsensusblock() int32
- func (o *Status) GetConsensusblockOk() (*int32, bool)
- func (o *Status) GetHeartbeat() int64
- func (o *Status) GetHeartbeatOk() (*int64, bool)
- func (o *Status) GetLastblock() int32
- func (o *Status) GetLastblockOk() (*int32, bool)
- func (o *Status) GetPeers() int32
- func (o *Status) GetPeersOk() (*int32, bool)
- func (o *Status) GetVersion() string
- func (o *Status) GetVersionOk() (*string, bool)
- func (o *Status) HasConsensusblock() bool
- func (o *Status) HasHeartbeat() bool
- func (o *Status) HasLastblock() bool
- func (o *Status) HasPeers() bool
- func (o *Status) HasVersion() bool
- func (o Status) MarshalJSON() ([]byte, error)
- func (o *Status) SetConsensusblock(v int32)
- func (o *Status) SetHeartbeat(v int64)
- func (o *Status) SetLastblock(v int32)
- func (o *Status) SetPeers(v int32)
- func (o *Status) SetVersion(v string)
- type Ticks
- func (o *Ticks) GetBandwidth() [][]float32
- func (o *Ticks) GetBandwidthOk() (*[][]float32, bool)
- func (o *Ticks) GetCollateral() [][]float32
- func (o *Ticks) GetCollateralOk() (*[][]float32, bool)
- func (o *Ticks) GetStorage() [][]float32
- func (o *Ticks) GetStorageOk() (*[][]float32, bool)
- func (o *Ticks) GetTotal() [][]float32
- func (o *Ticks) GetTotalOk() (*[][]float32, bool)
- func (o *Ticks) GetUsed() [][]float32
- func (o *Ticks) GetUsedOk() (*[][]float32, bool)
- func (o *Ticks) HasBandwidth() bool
- func (o *Ticks) HasCollateral() bool
- func (o *Ticks) HasStorage() bool
- func (o *Ticks) HasTotal() bool
- func (o *Ticks) HasUsed() bool
- func (o Ticks) MarshalJSON() ([]byte, error)
- func (o *Ticks) SetBandwidth(v [][]float32)
- func (o *Ticks) SetCollateral(v [][]float32)
- func (o *Ticks) SetStorage(v [][]float32)
- func (o *Ticks) SetTotal(v [][]float32)
- func (o *Ticks) SetUsed(v [][]float32)
- type Transaction
- func (o *Transaction) GetHeight() int32
- func (o *Transaction) GetHeightOk() (*int32, bool)
- func (o *Transaction) GetMasterHash() string
- func (o *Transaction) GetMasterHashOk() (*string, bool)
- func (o *Transaction) GetScChange() float64
- func (o *Transaction) GetScChangeOk() (*float64, bool)
- func (o *Transaction) GetSfChange() float32
- func (o *Transaction) GetSfChangeOk() (*float32, bool)
- func (o *Transaction) GetTimestamp() string
- func (o *Transaction) GetTimestampOk() (*string, bool)
- func (o *Transaction) GetTxType() string
- func (o *Transaction) GetTxTypeOk() (*string, bool)
- func (o *Transaction) HasHeight() bool
- func (o *Transaction) HasMasterHash() bool
- func (o *Transaction) HasScChange() bool
- func (o *Transaction) HasSfChange() bool
- func (o *Transaction) HasTimestamp() bool
- func (o *Transaction) HasTxType() bool
- func (o Transaction) MarshalJSON() ([]byte, error)
- func (o *Transaction) SetHeight(v int32)
- func (o *Transaction) SetMasterHash(v string)
- func (o *Transaction) SetScChange(v float64)
- func (o *Transaction) SetSfChange(v float32)
- func (o *Transaction) SetTimestamp(v string)
- func (o *Transaction) SetTxType(v string)
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKeys takes a string apikey as authentication for the request ContextAPIKeys = contextKey("apiKeys") // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request. ContextHttpSignatureAuth = contextKey("httpsignature") // ContextServerIndex uses a server configuration from the index. ContextServerIndex = contextKey("serverIndex") // ContextOperationServerIndices uses a server configuration from the index mapping. ContextOperationServerIndices = contextKey("serverOperationIndices") // ContextServerVariables overrides a server configuration variables. ContextServerVariables = contextKey("serverVariables") // ContextOperationServerVariables overrides a server configuration variables using operation specific values. ContextOperationServerVariables = contextKey("serverOperationVariables") )
Functions ¶
func CacheExpires ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float value.
Types ¶
type APIClient ¶
type APIClient struct { HostApi *HostApiService NetworkStatusApi *NetworkStatusApiService // contains filtered or unexported fields }
APIClient manages communication with the siastats.info API API v2021-08-08 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) GetConfig ¶
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type AllHostsRequest ¶
AllHostsRequest struct for AllHostsRequest
func NewAllHostsRequest ¶
func NewAllHostsRequest(network string, list string) *AllHostsRequest
NewAllHostsRequest instantiates a new AllHostsRequest 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
func NewAllHostsRequestWithDefaults ¶
func NewAllHostsRequestWithDefaults() *AllHostsRequest
NewAllHostsRequestWithDefaults instantiates a new AllHostsRequest 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
func (*AllHostsRequest) GetList ¶
func (o *AllHostsRequest) GetList() string
GetList returns the List field value
func (*AllHostsRequest) GetListOk ¶
func (o *AllHostsRequest) GetListOk() (*string, bool)
GetListOk returns a tuple with the List field value and a boolean to check if the value has been set.
func (*AllHostsRequest) GetNetwork ¶
func (o *AllHostsRequest) GetNetwork() string
GetNetwork returns the Network field value
func (*AllHostsRequest) GetNetworkOk ¶
func (o *AllHostsRequest) GetNetworkOk() (*string, bool)
GetNetworkOk returns a tuple with the Network field value and a boolean to check if the value has been set.
func (AllHostsRequest) MarshalJSON ¶
func (o AllHostsRequest) MarshalJSON() ([]byte, error)
func (*AllHostsRequest) SetList ¶
func (o *AllHostsRequest) SetList(v string)
SetList sets field value
func (*AllHostsRequest) SetNetwork ¶
func (o *AllHostsRequest) SetNetwork(v string)
SetNetwork sets field value
type ApiAllHostsRequest ¶
type ApiAllHostsRequest struct { ApiService *HostApiService // contains filtered or unexported fields }
func (ApiAllHostsRequest) AllHostsRequest ¶
func (r ApiAllHostsRequest) AllHostsRequest(allHostsRequest AllHostsRequest) ApiAllHostsRequest
type ApiHashRequest ¶
type ApiHashRequest struct { ApiService *NavigatorApiService // contains filtered or unexported fields }
func (ApiHashRequest) Execute ¶
func (r ApiHashRequest) Execute() ([]HashResponse, *_nethttp.Response, error)
type ApiHostRequest ¶
type ApiHostRequest struct { ApiService *HostApiService // contains filtered or unexported fields }
func (ApiHostRequest) Execute ¶
func (r ApiHostRequest) Execute() (HostResponse, *_nethttp.Response, error)
type ApiNetworkStatusRequest ¶
type ApiNetworkStatusRequest struct { ApiService *NetworkStatusApiService // contains filtered or unexported fields }
func (ApiNetworkStatusRequest) Execute ¶
func (r ApiNetworkStatusRequest) Execute() (NetworkStatus, *_nethttp.Response, error)
type ApiStatusRequest ¶
type ApiStatusRequest struct { ApiService *NavigatorApiService // contains filtered or unexported fields }
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type Benchmarks ¶
type Benchmarks struct { FinalScore *int32 `json:"finalScore,omitempty"` Latency *int32 `json:"latency,omitempty"` LatencyScore *int32 `json:"latencyScore,omitempty"` Up *int64 `json:"up,omitempty"` UpScore *int32 `json:"upScore,omitempty"` Down *int64 `json:"down,omitempty"` DownScore *int32 `json:"downScore,omitempty"` ContractSuccess *bool `json:"contractSuccess,omitempty"` BenchFailureRate *int32 `json:"benchFailureRate,omitempty"` ErrorType *string `json:"errorType,omitempty"` ErrorDescription *string `json:"errorDescription,omitempty"` ErrorFull *string `json:"errorFull,omitempty"` ScoreChange1day *OneOfstringfloat `json:"scoreChange_1day,omitempty"` ScoreChange7day *OneOfstringfloat `json:"scoreChange_7day,omitempty"` ScoreChange7daySmooth *OneOfstringfloat `json:"scoreChange_7day_smooth,omitempty"` }
Benchmarks struct for Benchmarks
func NewBenchmarks ¶
func NewBenchmarks() *Benchmarks
NewBenchmarks instantiates a new Benchmarks 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
func NewBenchmarksWithDefaults ¶
func NewBenchmarksWithDefaults() *Benchmarks
NewBenchmarksWithDefaults instantiates a new Benchmarks 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
func (*Benchmarks) GetBenchFailureRate ¶
func (o *Benchmarks) GetBenchFailureRate() int32
GetBenchFailureRate returns the BenchFailureRate field value if set, zero value otherwise.
func (*Benchmarks) GetBenchFailureRateOk ¶
func (o *Benchmarks) GetBenchFailureRateOk() (*int32, bool)
GetBenchFailureRateOk returns a tuple with the BenchFailureRate field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetContractSuccess ¶
func (o *Benchmarks) GetContractSuccess() bool
GetContractSuccess returns the ContractSuccess field value if set, zero value otherwise.
func (*Benchmarks) GetContractSuccessOk ¶
func (o *Benchmarks) GetContractSuccessOk() (*bool, bool)
GetContractSuccessOk returns a tuple with the ContractSuccess field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetDown ¶
func (o *Benchmarks) GetDown() int64
GetDown returns the Down field value if set, zero value otherwise.
func (*Benchmarks) GetDownOk ¶
func (o *Benchmarks) GetDownOk() (*int64, bool)
GetDownOk returns a tuple with the Down field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetDownScore ¶
func (o *Benchmarks) GetDownScore() int32
GetDownScore returns the DownScore field value if set, zero value otherwise.
func (*Benchmarks) GetDownScoreOk ¶
func (o *Benchmarks) GetDownScoreOk() (*int32, bool)
GetDownScoreOk returns a tuple with the DownScore field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetErrorDescription ¶
func (o *Benchmarks) GetErrorDescription() string
GetErrorDescription returns the ErrorDescription field value if set, zero value otherwise.
func (*Benchmarks) GetErrorDescriptionOk ¶
func (o *Benchmarks) GetErrorDescriptionOk() (*string, bool)
GetErrorDescriptionOk returns a tuple with the ErrorDescription field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetErrorFull ¶
func (o *Benchmarks) GetErrorFull() string
GetErrorFull returns the ErrorFull field value if set, zero value otherwise.
func (*Benchmarks) GetErrorFullOk ¶
func (o *Benchmarks) GetErrorFullOk() (*string, bool)
GetErrorFullOk returns a tuple with the ErrorFull field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetErrorType ¶
func (o *Benchmarks) GetErrorType() string
GetErrorType returns the ErrorType field value if set, zero value otherwise.
func (*Benchmarks) GetErrorTypeOk ¶
func (o *Benchmarks) GetErrorTypeOk() (*string, bool)
GetErrorTypeOk returns a tuple with the ErrorType field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetFinalScore ¶
func (o *Benchmarks) GetFinalScore() int32
GetFinalScore returns the FinalScore field value if set, zero value otherwise.
func (*Benchmarks) GetFinalScoreOk ¶
func (o *Benchmarks) GetFinalScoreOk() (*int32, bool)
GetFinalScoreOk returns a tuple with the FinalScore field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetLatency ¶
func (o *Benchmarks) GetLatency() int32
GetLatency returns the Latency field value if set, zero value otherwise.
func (*Benchmarks) GetLatencyOk ¶
func (o *Benchmarks) GetLatencyOk() (*int32, bool)
GetLatencyOk returns a tuple with the Latency field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetLatencyScore ¶
func (o *Benchmarks) GetLatencyScore() int32
GetLatencyScore returns the LatencyScore field value if set, zero value otherwise.
func (*Benchmarks) GetLatencyScoreOk ¶
func (o *Benchmarks) GetLatencyScoreOk() (*int32, bool)
GetLatencyScoreOk returns a tuple with the LatencyScore field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetScoreChange1day ¶
func (o *Benchmarks) GetScoreChange1day() OneOfstringfloat
GetScoreChange1day returns the ScoreChange1day field value if set, zero value otherwise.
func (*Benchmarks) GetScoreChange1dayOk ¶
func (o *Benchmarks) GetScoreChange1dayOk() (*OneOfstringfloat, bool)
GetScoreChange1dayOk returns a tuple with the ScoreChange1day field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetScoreChange7day ¶
func (o *Benchmarks) GetScoreChange7day() OneOfstringfloat
GetScoreChange7day returns the ScoreChange7day field value if set, zero value otherwise.
func (*Benchmarks) GetScoreChange7dayOk ¶
func (o *Benchmarks) GetScoreChange7dayOk() (*OneOfstringfloat, bool)
GetScoreChange7dayOk returns a tuple with the ScoreChange7day field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetScoreChange7daySmooth ¶
func (o *Benchmarks) GetScoreChange7daySmooth() OneOfstringfloat
GetScoreChange7daySmooth returns the ScoreChange7daySmooth field value if set, zero value otherwise.
func (*Benchmarks) GetScoreChange7daySmoothOk ¶
func (o *Benchmarks) GetScoreChange7daySmoothOk() (*OneOfstringfloat, bool)
GetScoreChange7daySmoothOk returns a tuple with the ScoreChange7daySmooth field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetUp ¶
func (o *Benchmarks) GetUp() int64
GetUp returns the Up field value if set, zero value otherwise.
func (*Benchmarks) GetUpOk ¶
func (o *Benchmarks) GetUpOk() (*int64, bool)
GetUpOk returns a tuple with the Up field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) GetUpScore ¶
func (o *Benchmarks) GetUpScore() int32
GetUpScore returns the UpScore field value if set, zero value otherwise.
func (*Benchmarks) GetUpScoreOk ¶
func (o *Benchmarks) GetUpScoreOk() (*int32, bool)
GetUpScoreOk returns a tuple with the UpScore field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Benchmarks) HasBenchFailureRate ¶
func (o *Benchmarks) HasBenchFailureRate() bool
HasBenchFailureRate returns a boolean if a field has been set.
func (*Benchmarks) HasContractSuccess ¶
func (o *Benchmarks) HasContractSuccess() bool
HasContractSuccess returns a boolean if a field has been set.
func (*Benchmarks) HasDown ¶
func (o *Benchmarks) HasDown() bool
HasDown returns a boolean if a field has been set.
func (*Benchmarks) HasDownScore ¶
func (o *Benchmarks) HasDownScore() bool
HasDownScore returns a boolean if a field has been set.
func (*Benchmarks) HasErrorDescription ¶
func (o *Benchmarks) HasErrorDescription() bool
HasErrorDescription returns a boolean if a field has been set.
func (*Benchmarks) HasErrorFull ¶
func (o *Benchmarks) HasErrorFull() bool
HasErrorFull returns a boolean if a field has been set.
func (*Benchmarks) HasErrorType ¶
func (o *Benchmarks) HasErrorType() bool
HasErrorType returns a boolean if a field has been set.
func (*Benchmarks) HasFinalScore ¶
func (o *Benchmarks) HasFinalScore() bool
HasFinalScore returns a boolean if a field has been set.
func (*Benchmarks) HasLatency ¶
func (o *Benchmarks) HasLatency() bool
HasLatency returns a boolean if a field has been set.
func (*Benchmarks) HasLatencyScore ¶
func (o *Benchmarks) HasLatencyScore() bool
HasLatencyScore returns a boolean if a field has been set.
func (*Benchmarks) HasScoreChange1day ¶
func (o *Benchmarks) HasScoreChange1day() bool
HasScoreChange1day returns a boolean if a field has been set.
func (*Benchmarks) HasScoreChange7day ¶
func (o *Benchmarks) HasScoreChange7day() bool
HasScoreChange7day returns a boolean if a field has been set.
func (*Benchmarks) HasScoreChange7daySmooth ¶
func (o *Benchmarks) HasScoreChange7daySmooth() bool
HasScoreChange7daySmooth returns a boolean if a field has been set.
func (*Benchmarks) HasUp ¶
func (o *Benchmarks) HasUp() bool
HasUp returns a boolean if a field has been set.
func (*Benchmarks) HasUpScore ¶
func (o *Benchmarks) HasUpScore() bool
HasUpScore returns a boolean if a field has been set.
func (Benchmarks) MarshalJSON ¶
func (o Benchmarks) MarshalJSON() ([]byte, error)
func (*Benchmarks) SetBenchFailureRate ¶
func (o *Benchmarks) SetBenchFailureRate(v int32)
SetBenchFailureRate gets a reference to the given int32 and assigns it to the BenchFailureRate field.
func (*Benchmarks) SetContractSuccess ¶
func (o *Benchmarks) SetContractSuccess(v bool)
SetContractSuccess gets a reference to the given bool and assigns it to the ContractSuccess field.
func (*Benchmarks) SetDown ¶
func (o *Benchmarks) SetDown(v int64)
SetDown gets a reference to the given int64 and assigns it to the Down field.
func (*Benchmarks) SetDownScore ¶
func (o *Benchmarks) SetDownScore(v int32)
SetDownScore gets a reference to the given int32 and assigns it to the DownScore field.
func (*Benchmarks) SetErrorDescription ¶
func (o *Benchmarks) SetErrorDescription(v string)
SetErrorDescription gets a reference to the given string and assigns it to the ErrorDescription field.
func (*Benchmarks) SetErrorFull ¶
func (o *Benchmarks) SetErrorFull(v string)
SetErrorFull gets a reference to the given string and assigns it to the ErrorFull field.
func (*Benchmarks) SetErrorType ¶
func (o *Benchmarks) SetErrorType(v string)
SetErrorType gets a reference to the given string and assigns it to the ErrorType field.
func (*Benchmarks) SetFinalScore ¶
func (o *Benchmarks) SetFinalScore(v int32)
SetFinalScore gets a reference to the given int32 and assigns it to the FinalScore field.
func (*Benchmarks) SetLatency ¶
func (o *Benchmarks) SetLatency(v int32)
SetLatency gets a reference to the given int32 and assigns it to the Latency field.
func (*Benchmarks) SetLatencyScore ¶
func (o *Benchmarks) SetLatencyScore(v int32)
SetLatencyScore gets a reference to the given int32 and assigns it to the LatencyScore field.
func (*Benchmarks) SetScoreChange1day ¶
func (o *Benchmarks) SetScoreChange1day(v OneOfstringfloat)
SetScoreChange1day gets a reference to the given OneOfstringfloat and assigns it to the ScoreChange1day field.
func (*Benchmarks) SetScoreChange7day ¶
func (o *Benchmarks) SetScoreChange7day(v OneOfstringfloat)
SetScoreChange7day gets a reference to the given OneOfstringfloat and assigns it to the ScoreChange7day field.
func (*Benchmarks) SetScoreChange7daySmooth ¶
func (o *Benchmarks) SetScoreChange7daySmooth(v OneOfstringfloat)
SetScoreChange7daySmooth gets a reference to the given OneOfstringfloat and assigns it to the ScoreChange7daySmooth field.
func (*Benchmarks) SetUp ¶
func (o *Benchmarks) SetUp(v int64)
SetUp gets a reference to the given int64 and assigns it to the Up field.
func (*Benchmarks) SetUpScore ¶
func (o *Benchmarks) SetUpScore(v int32)
SetUpScore gets a reference to the given int32 and assigns it to the UpScore field.
type ComparisonMatrix ¶
type ComparisonMatrix struct { Stored *int32 `json:"stored,omitempty"` Price *float32 `json:"price,omitempty"` Collateral *float32 `json:"collateral,omitempty"` Up *float32 `json:"up,omitempty"` Down *float32 `json:"down,omitempty"` ContractPrice *float32 `json:"contractPrice,omitempty"` }
ComparisonMatrix struct for ComparisonMatrix
func NewComparisonMatrix ¶
func NewComparisonMatrix() *ComparisonMatrix
NewComparisonMatrix instantiates a new ComparisonMatrix 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
func NewComparisonMatrixWithDefaults ¶
func NewComparisonMatrixWithDefaults() *ComparisonMatrix
NewComparisonMatrixWithDefaults instantiates a new ComparisonMatrix 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
func (*ComparisonMatrix) GetCollateral ¶
func (o *ComparisonMatrix) GetCollateral() float32
GetCollateral returns the Collateral field value if set, zero value otherwise.
func (*ComparisonMatrix) GetCollateralOk ¶
func (o *ComparisonMatrix) GetCollateralOk() (*float32, bool)
GetCollateralOk returns a tuple with the Collateral field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ComparisonMatrix) GetContractPrice ¶
func (o *ComparisonMatrix) GetContractPrice() float32
GetContractPrice returns the ContractPrice field value if set, zero value otherwise.
func (*ComparisonMatrix) GetContractPriceOk ¶
func (o *ComparisonMatrix) GetContractPriceOk() (*float32, bool)
GetContractPriceOk returns a tuple with the ContractPrice field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ComparisonMatrix) GetDown ¶
func (o *ComparisonMatrix) GetDown() float32
GetDown returns the Down field value if set, zero value otherwise.
func (*ComparisonMatrix) GetDownOk ¶
func (o *ComparisonMatrix) GetDownOk() (*float32, bool)
GetDownOk returns a tuple with the Down field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ComparisonMatrix) GetPrice ¶
func (o *ComparisonMatrix) GetPrice() float32
GetPrice returns the Price field value if set, zero value otherwise.
func (*ComparisonMatrix) GetPriceOk ¶
func (o *ComparisonMatrix) GetPriceOk() (*float32, bool)
GetPriceOk returns a tuple with the Price field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ComparisonMatrix) GetStored ¶
func (o *ComparisonMatrix) GetStored() int32
GetStored returns the Stored field value if set, zero value otherwise.
func (*ComparisonMatrix) GetStoredOk ¶
func (o *ComparisonMatrix) GetStoredOk() (*int32, bool)
GetStoredOk returns a tuple with the Stored field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ComparisonMatrix) GetUp ¶
func (o *ComparisonMatrix) GetUp() float32
GetUp returns the Up field value if set, zero value otherwise.
func (*ComparisonMatrix) GetUpOk ¶
func (o *ComparisonMatrix) GetUpOk() (*float32, bool)
GetUpOk returns a tuple with the Up field value if set, nil otherwise and a boolean to check if the value has been set.
func (*ComparisonMatrix) HasCollateral ¶
func (o *ComparisonMatrix) HasCollateral() bool
HasCollateral returns a boolean if a field has been set.
func (*ComparisonMatrix) HasContractPrice ¶
func (o *ComparisonMatrix) HasContractPrice() bool
HasContractPrice returns a boolean if a field has been set.
func (*ComparisonMatrix) HasDown ¶
func (o *ComparisonMatrix) HasDown() bool
HasDown returns a boolean if a field has been set.
func (*ComparisonMatrix) HasPrice ¶
func (o *ComparisonMatrix) HasPrice() bool
HasPrice returns a boolean if a field has been set.
func (*ComparisonMatrix) HasStored ¶
func (o *ComparisonMatrix) HasStored() bool
HasStored returns a boolean if a field has been set.
func (*ComparisonMatrix) HasUp ¶
func (o *ComparisonMatrix) HasUp() bool
HasUp returns a boolean if a field has been set.
func (ComparisonMatrix) MarshalJSON ¶
func (o ComparisonMatrix) MarshalJSON() ([]byte, error)
func (*ComparisonMatrix) SetCollateral ¶
func (o *ComparisonMatrix) SetCollateral(v float32)
SetCollateral gets a reference to the given float32 and assigns it to the Collateral field.
func (*ComparisonMatrix) SetContractPrice ¶
func (o *ComparisonMatrix) SetContractPrice(v float32)
SetContractPrice gets a reference to the given float32 and assigns it to the ContractPrice field.
func (*ComparisonMatrix) SetDown ¶
func (o *ComparisonMatrix) SetDown(v float32)
SetDown gets a reference to the given float32 and assigns it to the Down field.
func (*ComparisonMatrix) SetPrice ¶
func (o *ComparisonMatrix) SetPrice(v float32)
SetPrice gets a reference to the given float32 and assigns it to the Price field.
func (*ComparisonMatrix) SetStored ¶
func (o *ComparisonMatrix) SetStored(v int32)
SetStored gets a reference to the given int32 and assigns it to the Stored field.
func (*ComparisonMatrix) SetUp ¶
func (o *ComparisonMatrix) SetUp(v float32)
SetUp gets a reference to the given float32 and assigns it to the Up field.
type Configuration ¶
type Configuration struct { Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` Servers ServerConfigurations OperationServers map[string]ServerConfigurations HTTPClient *http.Client }
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
func (*Configuration) ServerURLWithContext ¶
ServerURLWithContext returns a new server URL given an endpoint
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type HashResponse ¶
type HashResponse struct { Type *string `json:"Type,omitempty"` MasterHash *string `json:"MasterHash,omitempty"` BalanceSc *float64 `json:"balanceSc,omitempty"` ReceivedSc *float64 `json:"receivedSc,omitempty"` SentSc *float64 `json:"sentSc,omitempty"` BalanceSf *float32 `json:"balanceSf,omitempty"` TotalTxCount *int32 `json:"TotalTxCount,omitempty"` FirstSeen *int32 `json:"firstSeen,omitempty"` Last100Transactions *[]Transaction `json:"last100Transactions,omitempty"` }
HashResponse struct for HashResponse
func NewHashResponse ¶
func NewHashResponse() *HashResponse
NewHashResponse instantiates a new HashResponse 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
func NewHashResponseWithDefaults ¶
func NewHashResponseWithDefaults() *HashResponse
NewHashResponseWithDefaults instantiates a new HashResponse 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
func (*HashResponse) GetBalanceSc ¶
func (o *HashResponse) GetBalanceSc() float64
GetBalanceSc returns the BalanceSc field value if set, zero value otherwise.
func (*HashResponse) GetBalanceScOk ¶
func (o *HashResponse) GetBalanceScOk() (*float64, bool)
GetBalanceScOk returns a tuple with the BalanceSc field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HashResponse) GetBalanceSf ¶
func (o *HashResponse) GetBalanceSf() float32
GetBalanceSf returns the BalanceSf field value if set, zero value otherwise.
func (*HashResponse) GetBalanceSfOk ¶
func (o *HashResponse) GetBalanceSfOk() (*float32, bool)
GetBalanceSfOk returns a tuple with the BalanceSf field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HashResponse) GetFirstSeen ¶
func (o *HashResponse) GetFirstSeen() int32
GetFirstSeen returns the FirstSeen field value if set, zero value otherwise.
func (*HashResponse) GetFirstSeenOk ¶
func (o *HashResponse) GetFirstSeenOk() (*int32, bool)
GetFirstSeenOk returns a tuple with the FirstSeen field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HashResponse) GetLast100Transactions ¶
func (o *HashResponse) GetLast100Transactions() []Transaction
GetLast100Transactions returns the Last100Transactions field value if set, zero value otherwise.
func (*HashResponse) GetLast100TransactionsOk ¶
func (o *HashResponse) GetLast100TransactionsOk() (*[]Transaction, bool)
GetLast100TransactionsOk returns a tuple with the Last100Transactions field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HashResponse) GetMasterHash ¶
func (o *HashResponse) GetMasterHash() string
GetMasterHash returns the MasterHash field value if set, zero value otherwise.
func (*HashResponse) GetMasterHashOk ¶
func (o *HashResponse) GetMasterHashOk() (*string, bool)
GetMasterHashOk returns a tuple with the MasterHash field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HashResponse) GetReceivedSc ¶
func (o *HashResponse) GetReceivedSc() float64
GetReceivedSc returns the ReceivedSc field value if set, zero value otherwise.
func (*HashResponse) GetReceivedScOk ¶
func (o *HashResponse) GetReceivedScOk() (*float64, bool)
GetReceivedScOk returns a tuple with the ReceivedSc field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HashResponse) GetSentSc ¶
func (o *HashResponse) GetSentSc() float64
GetSentSc returns the SentSc field value if set, zero value otherwise.
func (*HashResponse) GetSentScOk ¶
func (o *HashResponse) GetSentScOk() (*float64, bool)
GetSentScOk returns a tuple with the SentSc field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HashResponse) GetTotalTxCount ¶
func (o *HashResponse) GetTotalTxCount() int32
GetTotalTxCount returns the TotalTxCount field value if set, zero value otherwise.
func (*HashResponse) GetTotalTxCountOk ¶
func (o *HashResponse) GetTotalTxCountOk() (*int32, bool)
GetTotalTxCountOk returns a tuple with the TotalTxCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HashResponse) GetType ¶
func (o *HashResponse) GetType() string
GetType returns the Type field value if set, zero value otherwise.
func (*HashResponse) GetTypeOk ¶
func (o *HashResponse) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HashResponse) HasBalanceSc ¶
func (o *HashResponse) HasBalanceSc() bool
HasBalanceSc returns a boolean if a field has been set.
func (*HashResponse) HasBalanceSf ¶
func (o *HashResponse) HasBalanceSf() bool
HasBalanceSf returns a boolean if a field has been set.
func (*HashResponse) HasFirstSeen ¶
func (o *HashResponse) HasFirstSeen() bool
HasFirstSeen returns a boolean if a field has been set.
func (*HashResponse) HasLast100Transactions ¶
func (o *HashResponse) HasLast100Transactions() bool
HasLast100Transactions returns a boolean if a field has been set.
func (*HashResponse) HasMasterHash ¶
func (o *HashResponse) HasMasterHash() bool
HasMasterHash returns a boolean if a field has been set.
func (*HashResponse) HasReceivedSc ¶
func (o *HashResponse) HasReceivedSc() bool
HasReceivedSc returns a boolean if a field has been set.
func (*HashResponse) HasSentSc ¶
func (o *HashResponse) HasSentSc() bool
HasSentSc returns a boolean if a field has been set.
func (*HashResponse) HasTotalTxCount ¶
func (o *HashResponse) HasTotalTxCount() bool
HasTotalTxCount returns a boolean if a field has been set.
func (*HashResponse) HasType ¶
func (o *HashResponse) HasType() bool
HasType returns a boolean if a field has been set.
func (HashResponse) MarshalJSON ¶
func (o HashResponse) MarshalJSON() ([]byte, error)
func (*HashResponse) SetBalanceSc ¶
func (o *HashResponse) SetBalanceSc(v float64)
SetBalanceSc gets a reference to the given float64 and assigns it to the BalanceSc field.
func (*HashResponse) SetBalanceSf ¶
func (o *HashResponse) SetBalanceSf(v float32)
SetBalanceSf gets a reference to the given float32 and assigns it to the BalanceSf field.
func (*HashResponse) SetFirstSeen ¶
func (o *HashResponse) SetFirstSeen(v int32)
SetFirstSeen gets a reference to the given int32 and assigns it to the FirstSeen field.
func (*HashResponse) SetLast100Transactions ¶
func (o *HashResponse) SetLast100Transactions(v []Transaction)
SetLast100Transactions gets a reference to the given []Transaction and assigns it to the Last100Transactions field.
func (*HashResponse) SetMasterHash ¶
func (o *HashResponse) SetMasterHash(v string)
SetMasterHash gets a reference to the given string and assigns it to the MasterHash field.
func (*HashResponse) SetReceivedSc ¶
func (o *HashResponse) SetReceivedSc(v float64)
SetReceivedSc gets a reference to the given float64 and assigns it to the ReceivedSc field.
func (*HashResponse) SetSentSc ¶
func (o *HashResponse) SetSentSc(v float64)
SetSentSc gets a reference to the given float64 and assigns it to the SentSc field.
func (*HashResponse) SetTotalTxCount ¶
func (o *HashResponse) SetTotalTxCount(v int32)
SetTotalTxCount gets a reference to the given int32 and assigns it to the TotalTxCount field.
func (*HashResponse) SetType ¶
func (o *HashResponse) SetType(v string)
SetType gets a reference to the given string and assigns it to the Type field.
type Host ¶
type Host struct { Id *float32 `json:"Id,omitempty"` Online *bool `json:"Online,omitempty"` Pubkey *string `json:"Pubkey,omitempty"` CurrentIp *string `json:"CurrentIp,omitempty"` CountryCode *string `json:"CountryCode,omitempty"` TotalStorage *float32 `json:"TotalStorage,omitempty"` AcceptingContracts *bool `json:"AcceptingContracts,omitempty"` Version *string `json:"Version,omitempty"` UsedStorage *float32 `json:"UsedStorage,omitempty"` Collateral *int32 `json:"Collateral,omitempty"` ContractPrice *int32 `json:"ContractPrice,omitempty"` StoragePrice *int32 `json:"StoragePrice,omitempty"` UploadPrice *int32 `json:"UploadPrice,omitempty"` DownloadPrice *int32 `json:"DownloadPrice,omitempty"` Rank *int32 `json:"Rank,omitempty"` FinalScore *int32 `json:"FinalScore,omitempty"` ErrorType *string `json:"ErrorType,omitempty"` }
Host struct for Host
func NewHost ¶
func NewHost() *Host
NewHost instantiates a new Host 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
func NewHostWithDefaults ¶
func NewHostWithDefaults() *Host
NewHostWithDefaults instantiates a new Host 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
func (*Host) GetAcceptingContracts ¶
GetAcceptingContracts returns the AcceptingContracts field value if set, zero value otherwise.
func (*Host) GetAcceptingContractsOk ¶
GetAcceptingContractsOk returns a tuple with the AcceptingContracts field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetCollateral ¶
GetCollateral returns the Collateral field value if set, zero value otherwise.
func (*Host) GetCollateralOk ¶
GetCollateralOk returns a tuple with the Collateral field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetContractPrice ¶
GetContractPrice returns the ContractPrice field value if set, zero value otherwise.
func (*Host) GetContractPriceOk ¶
GetContractPriceOk returns a tuple with the ContractPrice field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetCountryCode ¶
GetCountryCode returns the CountryCode field value if set, zero value otherwise.
func (*Host) GetCountryCodeOk ¶
GetCountryCodeOk returns a tuple with the CountryCode field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetCurrentIp ¶
GetCurrentIp returns the CurrentIp field value if set, zero value otherwise.
func (*Host) GetCurrentIpOk ¶
GetCurrentIpOk returns a tuple with the CurrentIp field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetDownloadPrice ¶
GetDownloadPrice returns the DownloadPrice field value if set, zero value otherwise.
func (*Host) GetDownloadPriceOk ¶
GetDownloadPriceOk returns a tuple with the DownloadPrice field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetErrorType ¶
GetErrorType returns the ErrorType field value if set, zero value otherwise.
func (*Host) GetErrorTypeOk ¶
GetErrorTypeOk returns a tuple with the ErrorType field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetFinalScore ¶
GetFinalScore returns the FinalScore field value if set, zero value otherwise.
func (*Host) GetFinalScoreOk ¶
GetFinalScoreOk returns a tuple with the FinalScore field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetIdOk ¶
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetOnlineOk ¶
GetOnlineOk returns a tuple with the Online field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetPubkeyOk ¶
GetPubkeyOk returns a tuple with the Pubkey field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetRankOk ¶
GetRankOk returns a tuple with the Rank field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetStoragePrice ¶
GetStoragePrice returns the StoragePrice field value if set, zero value otherwise.
func (*Host) GetStoragePriceOk ¶
GetStoragePriceOk returns a tuple with the StoragePrice field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetTotalStorage ¶
GetTotalStorage returns the TotalStorage field value if set, zero value otherwise.
func (*Host) GetTotalStorageOk ¶
GetTotalStorageOk returns a tuple with the TotalStorage field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetUploadPrice ¶
GetUploadPrice returns the UploadPrice field value if set, zero value otherwise.
func (*Host) GetUploadPriceOk ¶
GetUploadPriceOk returns a tuple with the UploadPrice field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetUsedStorage ¶
GetUsedStorage returns the UsedStorage field value if set, zero value otherwise.
func (*Host) GetUsedStorageOk ¶
GetUsedStorageOk returns a tuple with the UsedStorage field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) GetVersion ¶
GetVersion returns the Version field value if set, zero value otherwise.
func (*Host) GetVersionOk ¶
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Host) HasAcceptingContracts ¶
HasAcceptingContracts returns a boolean if a field has been set.
func (*Host) HasCollateral ¶
HasCollateral returns a boolean if a field has been set.
func (*Host) HasContractPrice ¶
HasContractPrice returns a boolean if a field has been set.
func (*Host) HasCountryCode ¶
HasCountryCode returns a boolean if a field has been set.
func (*Host) HasCurrentIp ¶
HasCurrentIp returns a boolean if a field has been set.
func (*Host) HasDownloadPrice ¶
HasDownloadPrice returns a boolean if a field has been set.
func (*Host) HasErrorType ¶
HasErrorType returns a boolean if a field has been set.
func (*Host) HasFinalScore ¶
HasFinalScore returns a boolean if a field has been set.
func (*Host) HasStoragePrice ¶
HasStoragePrice returns a boolean if a field has been set.
func (*Host) HasTotalStorage ¶
HasTotalStorage returns a boolean if a field has been set.
func (*Host) HasUploadPrice ¶
HasUploadPrice returns a boolean if a field has been set.
func (*Host) HasUsedStorage ¶
HasUsedStorage returns a boolean if a field has been set.
func (*Host) HasVersion ¶
HasVersion returns a boolean if a field has been set.
func (Host) MarshalJSON ¶
func (*Host) SetAcceptingContracts ¶
SetAcceptingContracts gets a reference to the given bool and assigns it to the AcceptingContracts field.
func (*Host) SetCollateral ¶
SetCollateral gets a reference to the given int32 and assigns it to the Collateral field.
func (*Host) SetContractPrice ¶
SetContractPrice gets a reference to the given int32 and assigns it to the ContractPrice field.
func (*Host) SetCountryCode ¶
SetCountryCode gets a reference to the given string and assigns it to the CountryCode field.
func (*Host) SetCurrentIp ¶
SetCurrentIp gets a reference to the given string and assigns it to the CurrentIp field.
func (*Host) SetDownloadPrice ¶
SetDownloadPrice gets a reference to the given int32 and assigns it to the DownloadPrice field.
func (*Host) SetErrorType ¶
SetErrorType gets a reference to the given string and assigns it to the ErrorType field.
func (*Host) SetFinalScore ¶
SetFinalScore gets a reference to the given int32 and assigns it to the FinalScore field.
func (*Host) SetOnline ¶
SetOnline gets a reference to the given bool and assigns it to the Online field.
func (*Host) SetPubkey ¶
SetPubkey gets a reference to the given string and assigns it to the Pubkey field.
func (*Host) SetRank ¶
SetRank gets a reference to the given int32 and assigns it to the Rank field.
func (*Host) SetStoragePrice ¶
SetStoragePrice gets a reference to the given int32 and assigns it to the StoragePrice field.
func (*Host) SetTotalStorage ¶
SetTotalStorage gets a reference to the given float32 and assigns it to the TotalStorage field.
func (*Host) SetUploadPrice ¶
SetUploadPrice gets a reference to the given int32 and assigns it to the UploadPrice field.
func (*Host) SetUsedStorage ¶
SetUsedStorage gets a reference to the given float32 and assigns it to the UsedStorage field.
func (*Host) SetVersion ¶
SetVersion gets a reference to the given string and assigns it to the Version field.
type HostApiService ¶
type HostApiService service
HostApiService HostApi service
func (*HostApiService) AllHosts ¶
func (a *HostApiService) AllHosts(ctx _context.Context) ApiAllHostsRequest
* AllHosts Summary information and SiaStats final scores of all the hosts in the Sia network. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiAllHostsRequest
func (*HostApiService) AllHostsExecute ¶
func (a *HostApiService) AllHostsExecute(r ApiAllHostsRequest) ([]Host, *_nethttp.Response, error)
* Execute executes the request * @return []Host
func (*HostApiService) Host ¶
func (a *HostApiService) Host(ctx _context.Context, id int32) ApiHostRequest
* Host Information and detailed SiaStats benchmarks about a host. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param id SiaStats host ID * @return ApiHostRequest
func (*HostApiService) HostExecute ¶
func (a *HostApiService) HostExecute(r ApiHostRequest) (HostResponse, *_nethttp.Response, error)
* Execute executes the request * @return HostResponse
type HostResponse ¶
type HostResponse struct { RequestStatus *string `json:"requestStatus,omitempty"` Id *int32 `json:"id,omitempty"` Online *bool `json:"online,omitempty"` Rank *int32 `json:"rank,omitempty"` Network *string `json:"network,omitempty"` Pubkey *string `json:"pubkey,omitempty"` Ip *string `json:"ip,omitempty"` Lon *float32 `json:"lon,omitempty"` Lat *float32 `json:"lat,omitempty"` Isp *string `json:"isp,omitempty"` CountryCode *string `json:"countryCode,omitempty"` CountryName *string `json:"countryName,omitempty"` MaxDuration *float32 `json:"maxDuration,omitempty"` TotalStorage *float32 `json:"totalStorage,omitempty"` UsedStorage *float32 `json:"usedStorage,omitempty"` Collateral *float32 `json:"collateral,omitempty"` StoragePrice *float32 `json:"storagePrice,omitempty"` UploadPrice *float32 `json:"uploadPrice,omitempty"` DownloadPrice *float32 `json:"downloadPrice,omitempty"` MinContractPrice *float32 `json:"minContractPrice,omitempty"` FirstSeenBlock *int32 `json:"firstSeenBlock,omitempty"` Version *string `json:"version,omitempty"` SectorSize *int32 `json:"sectorSize,omitempty"` WindowSize *int32 `json:"windowSize,omitempty"` SeenBy *[]string `json:"seenBy,omitempty"` Benchmarks *Benchmarks `json:"benchmarks,omitempty"` ComparisonMatrix *ComparisonMatrix `json:"comparisonMatrix,omitempty"` Ticks *Ticks `json:"ticks,omitempty"` PlotBands *[]PlotBand `json:"plotBands,omitempty"` RegionalScores *[]RegionalScore `json:"regionalScores,omitempty"` Uptime1m *float32 `json:"uptime1m,omitempty"` Uptime6m *float32 `json:"uptime6m,omitempty"` }
HostResponse struct for HostResponse
func NewHostResponse ¶
func NewHostResponse() *HostResponse
NewHostResponse instantiates a new HostResponse 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
func NewHostResponseWithDefaults ¶
func NewHostResponseWithDefaults() *HostResponse
NewHostResponseWithDefaults instantiates a new HostResponse 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
func (*HostResponse) GetBenchmarks ¶
func (o *HostResponse) GetBenchmarks() Benchmarks
GetBenchmarks returns the Benchmarks field value if set, zero value otherwise.
func (*HostResponse) GetBenchmarksOk ¶
func (o *HostResponse) GetBenchmarksOk() (*Benchmarks, bool)
GetBenchmarksOk returns a tuple with the Benchmarks field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetCollateral ¶
func (o *HostResponse) GetCollateral() float32
GetCollateral returns the Collateral field value if set, zero value otherwise.
func (*HostResponse) GetCollateralOk ¶
func (o *HostResponse) GetCollateralOk() (*float32, bool)
GetCollateralOk returns a tuple with the Collateral field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetComparisonMatrix ¶
func (o *HostResponse) GetComparisonMatrix() ComparisonMatrix
GetComparisonMatrix returns the ComparisonMatrix field value if set, zero value otherwise.
func (*HostResponse) GetComparisonMatrixOk ¶
func (o *HostResponse) GetComparisonMatrixOk() (*ComparisonMatrix, bool)
GetComparisonMatrixOk returns a tuple with the ComparisonMatrix field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetCountryCode ¶
func (o *HostResponse) GetCountryCode() string
GetCountryCode returns the CountryCode field value if set, zero value otherwise.
func (*HostResponse) GetCountryCodeOk ¶
func (o *HostResponse) GetCountryCodeOk() (*string, bool)
GetCountryCodeOk returns a tuple with the CountryCode field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetCountryName ¶
func (o *HostResponse) GetCountryName() string
GetCountryName returns the CountryName field value if set, zero value otherwise.
func (*HostResponse) GetCountryNameOk ¶
func (o *HostResponse) GetCountryNameOk() (*string, bool)
GetCountryNameOk returns a tuple with the CountryName field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetDownloadPrice ¶
func (o *HostResponse) GetDownloadPrice() float32
GetDownloadPrice returns the DownloadPrice field value if set, zero value otherwise.
func (*HostResponse) GetDownloadPriceOk ¶
func (o *HostResponse) GetDownloadPriceOk() (*float32, bool)
GetDownloadPriceOk returns a tuple with the DownloadPrice field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetFirstSeenBlock ¶
func (o *HostResponse) GetFirstSeenBlock() int32
GetFirstSeenBlock returns the FirstSeenBlock field value if set, zero value otherwise.
func (*HostResponse) GetFirstSeenBlockOk ¶
func (o *HostResponse) GetFirstSeenBlockOk() (*int32, bool)
GetFirstSeenBlockOk returns a tuple with the FirstSeenBlock field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetId ¶
func (o *HostResponse) GetId() int32
GetId returns the Id field value if set, zero value otherwise.
func (*HostResponse) GetIdOk ¶
func (o *HostResponse) GetIdOk() (*int32, bool)
GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetIp ¶
func (o *HostResponse) GetIp() string
GetIp returns the Ip field value if set, zero value otherwise.
func (*HostResponse) GetIpOk ¶
func (o *HostResponse) GetIpOk() (*string, bool)
GetIpOk returns a tuple with the Ip field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetIsp ¶
func (o *HostResponse) GetIsp() string
GetIsp returns the Isp field value if set, zero value otherwise.
func (*HostResponse) GetIspOk ¶
func (o *HostResponse) GetIspOk() (*string, bool)
GetIspOk returns a tuple with the Isp field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetLat ¶
func (o *HostResponse) GetLat() float32
GetLat returns the Lat field value if set, zero value otherwise.
func (*HostResponse) GetLatOk ¶
func (o *HostResponse) GetLatOk() (*float32, bool)
GetLatOk returns a tuple with the Lat field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetLon ¶
func (o *HostResponse) GetLon() float32
GetLon returns the Lon field value if set, zero value otherwise.
func (*HostResponse) GetLonOk ¶
func (o *HostResponse) GetLonOk() (*float32, bool)
GetLonOk returns a tuple with the Lon field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetMaxDuration ¶
func (o *HostResponse) GetMaxDuration() float32
GetMaxDuration returns the MaxDuration field value if set, zero value otherwise.
func (*HostResponse) GetMaxDurationOk ¶
func (o *HostResponse) GetMaxDurationOk() (*float32, bool)
GetMaxDurationOk returns a tuple with the MaxDuration field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetMinContractPrice ¶
func (o *HostResponse) GetMinContractPrice() float32
GetMinContractPrice returns the MinContractPrice field value if set, zero value otherwise.
func (*HostResponse) GetMinContractPriceOk ¶
func (o *HostResponse) GetMinContractPriceOk() (*float32, bool)
GetMinContractPriceOk returns a tuple with the MinContractPrice field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetNetwork ¶
func (o *HostResponse) GetNetwork() string
GetNetwork returns the Network field value if set, zero value otherwise.
func (*HostResponse) GetNetworkOk ¶
func (o *HostResponse) GetNetworkOk() (*string, bool)
GetNetworkOk returns a tuple with the Network field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetOnline ¶
func (o *HostResponse) GetOnline() bool
GetOnline returns the Online field value if set, zero value otherwise.
func (*HostResponse) GetOnlineOk ¶
func (o *HostResponse) GetOnlineOk() (*bool, bool)
GetOnlineOk returns a tuple with the Online field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetPlotBands ¶
func (o *HostResponse) GetPlotBands() []PlotBand
GetPlotBands returns the PlotBands field value if set, zero value otherwise.
func (*HostResponse) GetPlotBandsOk ¶
func (o *HostResponse) GetPlotBandsOk() (*[]PlotBand, bool)
GetPlotBandsOk returns a tuple with the PlotBands field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetPubkey ¶
func (o *HostResponse) GetPubkey() string
GetPubkey returns the Pubkey field value if set, zero value otherwise.
func (*HostResponse) GetPubkeyOk ¶
func (o *HostResponse) GetPubkeyOk() (*string, bool)
GetPubkeyOk returns a tuple with the Pubkey field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetRank ¶
func (o *HostResponse) GetRank() int32
GetRank returns the Rank field value if set, zero value otherwise.
func (*HostResponse) GetRankOk ¶
func (o *HostResponse) GetRankOk() (*int32, bool)
GetRankOk returns a tuple with the Rank field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetRegionalScores ¶
func (o *HostResponse) GetRegionalScores() []RegionalScore
GetRegionalScores returns the RegionalScores field value if set, zero value otherwise.
func (*HostResponse) GetRegionalScoresOk ¶
func (o *HostResponse) GetRegionalScoresOk() (*[]RegionalScore, bool)
GetRegionalScoresOk returns a tuple with the RegionalScores field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetRequestStatus ¶
func (o *HostResponse) GetRequestStatus() string
GetRequestStatus returns the RequestStatus field value if set, zero value otherwise.
func (*HostResponse) GetRequestStatusOk ¶
func (o *HostResponse) GetRequestStatusOk() (*string, bool)
GetRequestStatusOk returns a tuple with the RequestStatus field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetSectorSize ¶
func (o *HostResponse) GetSectorSize() int32
GetSectorSize returns the SectorSize field value if set, zero value otherwise.
func (*HostResponse) GetSectorSizeOk ¶
func (o *HostResponse) GetSectorSizeOk() (*int32, bool)
GetSectorSizeOk returns a tuple with the SectorSize field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetSeenBy ¶
func (o *HostResponse) GetSeenBy() []string
GetSeenBy returns the SeenBy field value if set, zero value otherwise.
func (*HostResponse) GetSeenByOk ¶
func (o *HostResponse) GetSeenByOk() (*[]string, bool)
GetSeenByOk returns a tuple with the SeenBy field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetStoragePrice ¶
func (o *HostResponse) GetStoragePrice() float32
GetStoragePrice returns the StoragePrice field value if set, zero value otherwise.
func (*HostResponse) GetStoragePriceOk ¶
func (o *HostResponse) GetStoragePriceOk() (*float32, bool)
GetStoragePriceOk returns a tuple with the StoragePrice field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetTicks ¶
func (o *HostResponse) GetTicks() Ticks
GetTicks returns the Ticks field value if set, zero value otherwise.
func (*HostResponse) GetTicksOk ¶
func (o *HostResponse) GetTicksOk() (*Ticks, bool)
GetTicksOk returns a tuple with the Ticks field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetTotalStorage ¶
func (o *HostResponse) GetTotalStorage() float32
GetTotalStorage returns the TotalStorage field value if set, zero value otherwise.
func (*HostResponse) GetTotalStorageOk ¶
func (o *HostResponse) GetTotalStorageOk() (*float32, bool)
GetTotalStorageOk returns a tuple with the TotalStorage field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetUploadPrice ¶
func (o *HostResponse) GetUploadPrice() float32
GetUploadPrice returns the UploadPrice field value if set, zero value otherwise.
func (*HostResponse) GetUploadPriceOk ¶
func (o *HostResponse) GetUploadPriceOk() (*float32, bool)
GetUploadPriceOk returns a tuple with the UploadPrice field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetUptime1m ¶
func (o *HostResponse) GetUptime1m() float32
GetUptime1m returns the Uptime1m field value if set, zero value otherwise.
func (*HostResponse) GetUptime1mOk ¶
func (o *HostResponse) GetUptime1mOk() (*float32, bool)
GetUptime1mOk returns a tuple with the Uptime1m field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetUptime6m ¶
func (o *HostResponse) GetUptime6m() float32
GetUptime6m returns the Uptime6m field value if set, zero value otherwise.
func (*HostResponse) GetUptime6mOk ¶
func (o *HostResponse) GetUptime6mOk() (*float32, bool)
GetUptime6mOk returns a tuple with the Uptime6m field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetUsedStorage ¶
func (o *HostResponse) GetUsedStorage() float32
GetUsedStorage returns the UsedStorage field value if set, zero value otherwise.
func (*HostResponse) GetUsedStorageOk ¶
func (o *HostResponse) GetUsedStorageOk() (*float32, bool)
GetUsedStorageOk returns a tuple with the UsedStorage field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetVersion ¶
func (o *HostResponse) GetVersion() string
GetVersion returns the Version field value if set, zero value otherwise.
func (*HostResponse) GetVersionOk ¶
func (o *HostResponse) GetVersionOk() (*string, bool)
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) GetWindowSize ¶
func (o *HostResponse) GetWindowSize() int32
GetWindowSize returns the WindowSize field value if set, zero value otherwise.
func (*HostResponse) GetWindowSizeOk ¶
func (o *HostResponse) GetWindowSizeOk() (*int32, bool)
GetWindowSizeOk returns a tuple with the WindowSize field value if set, nil otherwise and a boolean to check if the value has been set.
func (*HostResponse) HasBenchmarks ¶
func (o *HostResponse) HasBenchmarks() bool
HasBenchmarks returns a boolean if a field has been set.
func (*HostResponse) HasCollateral ¶
func (o *HostResponse) HasCollateral() bool
HasCollateral returns a boolean if a field has been set.
func (*HostResponse) HasComparisonMatrix ¶
func (o *HostResponse) HasComparisonMatrix() bool
HasComparisonMatrix returns a boolean if a field has been set.
func (*HostResponse) HasCountryCode ¶
func (o *HostResponse) HasCountryCode() bool
HasCountryCode returns a boolean if a field has been set.
func (*HostResponse) HasCountryName ¶
func (o *HostResponse) HasCountryName() bool
HasCountryName returns a boolean if a field has been set.
func (*HostResponse) HasDownloadPrice ¶
func (o *HostResponse) HasDownloadPrice() bool
HasDownloadPrice returns a boolean if a field has been set.
func (*HostResponse) HasFirstSeenBlock ¶
func (o *HostResponse) HasFirstSeenBlock() bool
HasFirstSeenBlock returns a boolean if a field has been set.
func (*HostResponse) HasId ¶
func (o *HostResponse) HasId() bool
HasId returns a boolean if a field has been set.
func (*HostResponse) HasIp ¶
func (o *HostResponse) HasIp() bool
HasIp returns a boolean if a field has been set.
func (*HostResponse) HasIsp ¶
func (o *HostResponse) HasIsp() bool
HasIsp returns a boolean if a field has been set.
func (*HostResponse) HasLat ¶
func (o *HostResponse) HasLat() bool
HasLat returns a boolean if a field has been set.
func (*HostResponse) HasLon ¶
func (o *HostResponse) HasLon() bool
HasLon returns a boolean if a field has been set.
func (*HostResponse) HasMaxDuration ¶
func (o *HostResponse) HasMaxDuration() bool
HasMaxDuration returns a boolean if a field has been set.
func (*HostResponse) HasMinContractPrice ¶
func (o *HostResponse) HasMinContractPrice() bool
HasMinContractPrice returns a boolean if a field has been set.
func (*HostResponse) HasNetwork ¶
func (o *HostResponse) HasNetwork() bool
HasNetwork returns a boolean if a field has been set.
func (*HostResponse) HasOnline ¶
func (o *HostResponse) HasOnline() bool
HasOnline returns a boolean if a field has been set.
func (*HostResponse) HasPlotBands ¶
func (o *HostResponse) HasPlotBands() bool
HasPlotBands returns a boolean if a field has been set.
func (*HostResponse) HasPubkey ¶
func (o *HostResponse) HasPubkey() bool
HasPubkey returns a boolean if a field has been set.
func (*HostResponse) HasRank ¶
func (o *HostResponse) HasRank() bool
HasRank returns a boolean if a field has been set.
func (*HostResponse) HasRegionalScores ¶
func (o *HostResponse) HasRegionalScores() bool
HasRegionalScores returns a boolean if a field has been set.
func (*HostResponse) HasRequestStatus ¶
func (o *HostResponse) HasRequestStatus() bool
HasRequestStatus returns a boolean if a field has been set.
func (*HostResponse) HasSectorSize ¶
func (o *HostResponse) HasSectorSize() bool
HasSectorSize returns a boolean if a field has been set.
func (*HostResponse) HasSeenBy ¶
func (o *HostResponse) HasSeenBy() bool
HasSeenBy returns a boolean if a field has been set.
func (*HostResponse) HasStoragePrice ¶
func (o *HostResponse) HasStoragePrice() bool
HasStoragePrice returns a boolean if a field has been set.
func (*HostResponse) HasTicks ¶
func (o *HostResponse) HasTicks() bool
HasTicks returns a boolean if a field has been set.
func (*HostResponse) HasTotalStorage ¶
func (o *HostResponse) HasTotalStorage() bool
HasTotalStorage returns a boolean if a field has been set.
func (*HostResponse) HasUploadPrice ¶
func (o *HostResponse) HasUploadPrice() bool
HasUploadPrice returns a boolean if a field has been set.
func (*HostResponse) HasUptime1m ¶
func (o *HostResponse) HasUptime1m() bool
HasUptime1m returns a boolean if a field has been set.
func (*HostResponse) HasUptime6m ¶
func (o *HostResponse) HasUptime6m() bool
HasUptime6m returns a boolean if a field has been set.
func (*HostResponse) HasUsedStorage ¶
func (o *HostResponse) HasUsedStorage() bool
HasUsedStorage returns a boolean if a field has been set.
func (*HostResponse) HasVersion ¶
func (o *HostResponse) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (*HostResponse) HasWindowSize ¶
func (o *HostResponse) HasWindowSize() bool
HasWindowSize returns a boolean if a field has been set.
func (HostResponse) MarshalJSON ¶
func (o HostResponse) MarshalJSON() ([]byte, error)
func (*HostResponse) SetBenchmarks ¶
func (o *HostResponse) SetBenchmarks(v Benchmarks)
SetBenchmarks gets a reference to the given Benchmarks and assigns it to the Benchmarks field.
func (*HostResponse) SetCollateral ¶
func (o *HostResponse) SetCollateral(v float32)
SetCollateral gets a reference to the given float32 and assigns it to the Collateral field.
func (*HostResponse) SetComparisonMatrix ¶
func (o *HostResponse) SetComparisonMatrix(v ComparisonMatrix)
SetComparisonMatrix gets a reference to the given ComparisonMatrix and assigns it to the ComparisonMatrix field.
func (*HostResponse) SetCountryCode ¶
func (o *HostResponse) SetCountryCode(v string)
SetCountryCode gets a reference to the given string and assigns it to the CountryCode field.
func (*HostResponse) SetCountryName ¶
func (o *HostResponse) SetCountryName(v string)
SetCountryName gets a reference to the given string and assigns it to the CountryName field.
func (*HostResponse) SetDownloadPrice ¶
func (o *HostResponse) SetDownloadPrice(v float32)
SetDownloadPrice gets a reference to the given float32 and assigns it to the DownloadPrice field.
func (*HostResponse) SetFirstSeenBlock ¶
func (o *HostResponse) SetFirstSeenBlock(v int32)
SetFirstSeenBlock gets a reference to the given int32 and assigns it to the FirstSeenBlock field.
func (*HostResponse) SetId ¶
func (o *HostResponse) SetId(v int32)
SetId gets a reference to the given int32 and assigns it to the Id field.
func (*HostResponse) SetIp ¶
func (o *HostResponse) SetIp(v string)
SetIp gets a reference to the given string and assigns it to the Ip field.
func (*HostResponse) SetIsp ¶
func (o *HostResponse) SetIsp(v string)
SetIsp gets a reference to the given string and assigns it to the Isp field.
func (*HostResponse) SetLat ¶
func (o *HostResponse) SetLat(v float32)
SetLat gets a reference to the given float32 and assigns it to the Lat field.
func (*HostResponse) SetLon ¶
func (o *HostResponse) SetLon(v float32)
SetLon gets a reference to the given float32 and assigns it to the Lon field.
func (*HostResponse) SetMaxDuration ¶
func (o *HostResponse) SetMaxDuration(v float32)
SetMaxDuration gets a reference to the given float32 and assigns it to the MaxDuration field.
func (*HostResponse) SetMinContractPrice ¶
func (o *HostResponse) SetMinContractPrice(v float32)
SetMinContractPrice gets a reference to the given float32 and assigns it to the MinContractPrice field.
func (*HostResponse) SetNetwork ¶
func (o *HostResponse) SetNetwork(v string)
SetNetwork gets a reference to the given string and assigns it to the Network field.
func (*HostResponse) SetOnline ¶
func (o *HostResponse) SetOnline(v bool)
SetOnline gets a reference to the given bool and assigns it to the Online field.
func (*HostResponse) SetPlotBands ¶
func (o *HostResponse) SetPlotBands(v []PlotBand)
SetPlotBands gets a reference to the given []PlotBand and assigns it to the PlotBands field.
func (*HostResponse) SetPubkey ¶
func (o *HostResponse) SetPubkey(v string)
SetPubkey gets a reference to the given string and assigns it to the Pubkey field.
func (*HostResponse) SetRank ¶
func (o *HostResponse) SetRank(v int32)
SetRank gets a reference to the given int32 and assigns it to the Rank field.
func (*HostResponse) SetRegionalScores ¶
func (o *HostResponse) SetRegionalScores(v []RegionalScore)
SetRegionalScores gets a reference to the given []RegionalScore and assigns it to the RegionalScores field.
func (*HostResponse) SetRequestStatus ¶
func (o *HostResponse) SetRequestStatus(v string)
SetRequestStatus gets a reference to the given string and assigns it to the RequestStatus field.
func (*HostResponse) SetSectorSize ¶
func (o *HostResponse) SetSectorSize(v int32)
SetSectorSize gets a reference to the given int32 and assigns it to the SectorSize field.
func (*HostResponse) SetSeenBy ¶
func (o *HostResponse) SetSeenBy(v []string)
SetSeenBy gets a reference to the given []string and assigns it to the SeenBy field.
func (*HostResponse) SetStoragePrice ¶
func (o *HostResponse) SetStoragePrice(v float32)
SetStoragePrice gets a reference to the given float32 and assigns it to the StoragePrice field.
func (*HostResponse) SetTicks ¶
func (o *HostResponse) SetTicks(v Ticks)
SetTicks gets a reference to the given Ticks and assigns it to the Ticks field.
func (*HostResponse) SetTotalStorage ¶
func (o *HostResponse) SetTotalStorage(v float32)
SetTotalStorage gets a reference to the given float32 and assigns it to the TotalStorage field.
func (*HostResponse) SetUploadPrice ¶
func (o *HostResponse) SetUploadPrice(v float32)
SetUploadPrice gets a reference to the given float32 and assigns it to the UploadPrice field.
func (*HostResponse) SetUptime1m ¶
func (o *HostResponse) SetUptime1m(v float32)
SetUptime1m gets a reference to the given float32 and assigns it to the Uptime1m field.
func (*HostResponse) SetUptime6m ¶
func (o *HostResponse) SetUptime6m(v float32)
SetUptime6m gets a reference to the given float32 and assigns it to the Uptime6m field.
func (*HostResponse) SetUsedStorage ¶
func (o *HostResponse) SetUsedStorage(v float32)
SetUsedStorage gets a reference to the given float32 and assigns it to the UsedStorage field.
func (*HostResponse) SetVersion ¶
func (o *HostResponse) SetVersion(v string)
SetVersion gets a reference to the given string and assigns it to the Version field.
func (*HostResponse) SetWindowSize ¶
func (o *HostResponse) SetWindowSize(v int32)
SetWindowSize gets a reference to the given int32 and assigns it to the WindowSize field.
type NavigatorApiService ¶
type NavigatorApiService service
NavigatorApiService NavigatorApi service
func (*NavigatorApiService) Hash ¶
func (a *NavigatorApiService) Hash(ctx _context.Context, hash string) ApiHashRequest
* Hash Returns the information about any hash (address, Tx, contract...) or block height on the blockchain * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param hash hash or block height * @return ApiHashRequest
func (*NavigatorApiService) HashExecute ¶
func (a *NavigatorApiService) HashExecute(r ApiHashRequest) ([]HashResponse, *_nethttp.Response, error)
* Execute executes the request * @return []HashResponse
func (*NavigatorApiService) Status ¶
func (a *NavigatorApiService) Status(ctx _context.Context) ApiStatusRequest
* Status Global status and blockchain sync situation of SiaStats nodes * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiStatusRequest
func (*NavigatorApiService) StatusExecute ¶
func (a *NavigatorApiService) StatusExecute(r ApiStatusRequest) ([]Status, *_nethttp.Response, error)
* Execute executes the request * @return []Status
type NetworkStatus ¶
type NetworkStatus struct { BlockHeight *int32 `json:"block_height,omitempty"` BlockTimestamp *int32 `json:"block_timestamp,omitempty"` Hashrate *float32 `json:"hashrate,omitempty"` Difficulty *float32 `json:"difficulty,omitempty"` CoinSupply *float32 `json:"coin_supply,omitempty"` CoinPriceUSD *float32 `json:"coin_price_USD,omitempty"` MarketCapUSD *float32 `json:"market_cap_USD,omitempty"` UsedStorageTB *float32 `json:"used_storage_TB,omitempty"` NetworkCapacityTB *float32 `json:"network_capacity_TB,omitempty"` OnlineHosts *int32 `json:"online_hosts,omitempty"` CountriesWithHosts *int32 `json:"countries_with_hosts,omitempty"` ActiveContracts *int32 `json:"active_contracts,omitempty"` StorageProofCount *int32 `json:"storage_proof_count,omitempty"` SkynetFiles *int32 `json:"skynet_files,omitempty"` SkynetSize *float32 `json:"skynet_size,omitempty"` SkynetPortalsNumber *int32 `json:"skynet_portals_number,omitempty"` PricePerTbSc *float32 `json:"price_per_tb_sc,omitempty"` PricePerTbUsd *float32 `json:"price_per_tb_usd,omitempty"` }
NetworkStatus struct for NetworkStatus
func 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
func 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
func (*NetworkStatus) GetActiveContracts ¶
func (o *NetworkStatus) GetActiveContracts() int32
GetActiveContracts returns the ActiveContracts field value if set, zero value otherwise.
func (*NetworkStatus) GetActiveContractsOk ¶
func (o *NetworkStatus) GetActiveContractsOk() (*int32, bool)
GetActiveContractsOk returns a tuple with the ActiveContracts field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetBlockHeight ¶
func (o *NetworkStatus) GetBlockHeight() int32
GetBlockHeight returns the BlockHeight field value if set, zero value otherwise.
func (*NetworkStatus) GetBlockHeightOk ¶
func (o *NetworkStatus) GetBlockHeightOk() (*int32, bool)
GetBlockHeightOk returns a tuple with the BlockHeight field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetBlockTimestamp ¶
func (o *NetworkStatus) GetBlockTimestamp() int32
GetBlockTimestamp returns the BlockTimestamp field value if set, zero value otherwise.
func (*NetworkStatus) GetBlockTimestampOk ¶
func (o *NetworkStatus) GetBlockTimestampOk() (*int32, bool)
GetBlockTimestampOk returns a tuple with the BlockTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetCoinPriceUSD ¶
func (o *NetworkStatus) GetCoinPriceUSD() float32
GetCoinPriceUSD returns the CoinPriceUSD field value if set, zero value otherwise.
func (*NetworkStatus) GetCoinPriceUSDOk ¶
func (o *NetworkStatus) GetCoinPriceUSDOk() (*float32, bool)
GetCoinPriceUSDOk returns a tuple with the CoinPriceUSD field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetCoinSupply ¶
func (o *NetworkStatus) GetCoinSupply() float32
GetCoinSupply returns the CoinSupply field value if set, zero value otherwise.
func (*NetworkStatus) GetCoinSupplyOk ¶
func (o *NetworkStatus) GetCoinSupplyOk() (*float32, bool)
GetCoinSupplyOk returns a tuple with the CoinSupply field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetCountriesWithHosts ¶
func (o *NetworkStatus) GetCountriesWithHosts() int32
GetCountriesWithHosts returns the CountriesWithHosts field value if set, zero value otherwise.
func (*NetworkStatus) GetCountriesWithHostsOk ¶
func (o *NetworkStatus) GetCountriesWithHostsOk() (*int32, bool)
GetCountriesWithHostsOk returns a tuple with the CountriesWithHosts field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetDifficulty ¶
func (o *NetworkStatus) GetDifficulty() float32
GetDifficulty returns the Difficulty field value if set, zero value otherwise.
func (*NetworkStatus) GetDifficultyOk ¶
func (o *NetworkStatus) GetDifficultyOk() (*float32, bool)
GetDifficultyOk returns a tuple with the Difficulty field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetHashrate ¶
func (o *NetworkStatus) GetHashrate() float32
GetHashrate returns the Hashrate field value if set, zero value otherwise.
func (*NetworkStatus) GetHashrateOk ¶
func (o *NetworkStatus) GetHashrateOk() (*float32, bool)
GetHashrateOk returns a tuple with the Hashrate field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetMarketCapUSD ¶
func (o *NetworkStatus) GetMarketCapUSD() float32
GetMarketCapUSD returns the MarketCapUSD field value if set, zero value otherwise.
func (*NetworkStatus) GetMarketCapUSDOk ¶
func (o *NetworkStatus) GetMarketCapUSDOk() (*float32, bool)
GetMarketCapUSDOk returns a tuple with the MarketCapUSD field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetNetworkCapacityTB ¶
func (o *NetworkStatus) GetNetworkCapacityTB() float32
GetNetworkCapacityTB returns the NetworkCapacityTB field value if set, zero value otherwise.
func (*NetworkStatus) GetNetworkCapacityTBOk ¶
func (o *NetworkStatus) GetNetworkCapacityTBOk() (*float32, bool)
GetNetworkCapacityTBOk returns a tuple with the NetworkCapacityTB field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetOnlineHosts ¶
func (o *NetworkStatus) GetOnlineHosts() int32
GetOnlineHosts returns the OnlineHosts field value if set, zero value otherwise.
func (*NetworkStatus) GetOnlineHostsOk ¶
func (o *NetworkStatus) GetOnlineHostsOk() (*int32, bool)
GetOnlineHostsOk returns a tuple with the OnlineHosts field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetPricePerTbSc ¶
func (o *NetworkStatus) GetPricePerTbSc() float32
GetPricePerTbSc returns the PricePerTbSc field value if set, zero value otherwise.
func (*NetworkStatus) GetPricePerTbScOk ¶
func (o *NetworkStatus) GetPricePerTbScOk() (*float32, bool)
GetPricePerTbScOk returns a tuple with the PricePerTbSc field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetPricePerTbUsd ¶
func (o *NetworkStatus) GetPricePerTbUsd() float32
GetPricePerTbUsd returns the PricePerTbUsd field value if set, zero value otherwise.
func (*NetworkStatus) GetPricePerTbUsdOk ¶
func (o *NetworkStatus) GetPricePerTbUsdOk() (*float32, bool)
GetPricePerTbUsdOk returns a tuple with the PricePerTbUsd field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetSkynetFiles ¶
func (o *NetworkStatus) GetSkynetFiles() int32
GetSkynetFiles returns the SkynetFiles field value if set, zero value otherwise.
func (*NetworkStatus) GetSkynetFilesOk ¶
func (o *NetworkStatus) GetSkynetFilesOk() (*int32, bool)
GetSkynetFilesOk returns a tuple with the SkynetFiles field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetSkynetPortalsNumber ¶
func (o *NetworkStatus) GetSkynetPortalsNumber() int32
GetSkynetPortalsNumber returns the SkynetPortalsNumber field value if set, zero value otherwise.
func (*NetworkStatus) GetSkynetPortalsNumberOk ¶
func (o *NetworkStatus) GetSkynetPortalsNumberOk() (*int32, bool)
GetSkynetPortalsNumberOk returns a tuple with the SkynetPortalsNumber field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetSkynetSize ¶
func (o *NetworkStatus) GetSkynetSize() float32
GetSkynetSize returns the SkynetSize field value if set, zero value otherwise.
func (*NetworkStatus) GetSkynetSizeOk ¶
func (o *NetworkStatus) GetSkynetSizeOk() (*float32, bool)
GetSkynetSizeOk returns a tuple with the SkynetSize field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetStorageProofCount ¶
func (o *NetworkStatus) GetStorageProofCount() int32
GetStorageProofCount returns the StorageProofCount field value if set, zero value otherwise.
func (*NetworkStatus) GetStorageProofCountOk ¶
func (o *NetworkStatus) GetStorageProofCountOk() (*int32, bool)
GetStorageProofCountOk returns a tuple with the StorageProofCount field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) GetUsedStorageTB ¶
func (o *NetworkStatus) GetUsedStorageTB() float32
GetUsedStorageTB returns the UsedStorageTB field value if set, zero value otherwise.
func (*NetworkStatus) GetUsedStorageTBOk ¶
func (o *NetworkStatus) GetUsedStorageTBOk() (*float32, bool)
GetUsedStorageTBOk returns a tuple with the UsedStorageTB field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NetworkStatus) HasActiveContracts ¶
func (o *NetworkStatus) HasActiveContracts() bool
HasActiveContracts returns a boolean if a field has been set.
func (*NetworkStatus) HasBlockHeight ¶
func (o *NetworkStatus) HasBlockHeight() bool
HasBlockHeight returns a boolean if a field has been set.
func (*NetworkStatus) HasBlockTimestamp ¶
func (o *NetworkStatus) HasBlockTimestamp() bool
HasBlockTimestamp returns a boolean if a field has been set.
func (*NetworkStatus) HasCoinPriceUSD ¶
func (o *NetworkStatus) HasCoinPriceUSD() bool
HasCoinPriceUSD returns a boolean if a field has been set.
func (*NetworkStatus) HasCoinSupply ¶
func (o *NetworkStatus) HasCoinSupply() bool
HasCoinSupply returns a boolean if a field has been set.
func (*NetworkStatus) HasCountriesWithHosts ¶
func (o *NetworkStatus) HasCountriesWithHosts() bool
HasCountriesWithHosts returns a boolean if a field has been set.
func (*NetworkStatus) HasDifficulty ¶
func (o *NetworkStatus) HasDifficulty() bool
HasDifficulty returns a boolean if a field has been set.
func (*NetworkStatus) HasHashrate ¶
func (o *NetworkStatus) HasHashrate() bool
HasHashrate returns a boolean if a field has been set.
func (*NetworkStatus) HasMarketCapUSD ¶
func (o *NetworkStatus) HasMarketCapUSD() bool
HasMarketCapUSD returns a boolean if a field has been set.
func (*NetworkStatus) HasNetworkCapacityTB ¶
func (o *NetworkStatus) HasNetworkCapacityTB() bool
HasNetworkCapacityTB returns a boolean if a field has been set.
func (*NetworkStatus) HasOnlineHosts ¶
func (o *NetworkStatus) HasOnlineHosts() bool
HasOnlineHosts returns a boolean if a field has been set.
func (*NetworkStatus) HasPricePerTbSc ¶
func (o *NetworkStatus) HasPricePerTbSc() bool
HasPricePerTbSc returns a boolean if a field has been set.
func (*NetworkStatus) HasPricePerTbUsd ¶
func (o *NetworkStatus) HasPricePerTbUsd() bool
HasPricePerTbUsd returns a boolean if a field has been set.
func (*NetworkStatus) HasSkynetFiles ¶
func (o *NetworkStatus) HasSkynetFiles() bool
HasSkynetFiles returns a boolean if a field has been set.
func (*NetworkStatus) HasSkynetPortalsNumber ¶
func (o *NetworkStatus) HasSkynetPortalsNumber() bool
HasSkynetPortalsNumber returns a boolean if a field has been set.
func (*NetworkStatus) HasSkynetSize ¶
func (o *NetworkStatus) HasSkynetSize() bool
HasSkynetSize returns a boolean if a field has been set.
func (*NetworkStatus) HasStorageProofCount ¶
func (o *NetworkStatus) HasStorageProofCount() bool
HasStorageProofCount returns a boolean if a field has been set.
func (*NetworkStatus) HasUsedStorageTB ¶
func (o *NetworkStatus) HasUsedStorageTB() bool
HasUsedStorageTB returns a boolean if a field has been set.
func (NetworkStatus) MarshalJSON ¶
func (o NetworkStatus) MarshalJSON() ([]byte, error)
func (*NetworkStatus) SetActiveContracts ¶
func (o *NetworkStatus) SetActiveContracts(v int32)
SetActiveContracts gets a reference to the given int32 and assigns it to the ActiveContracts field.
func (*NetworkStatus) SetBlockHeight ¶
func (o *NetworkStatus) SetBlockHeight(v int32)
SetBlockHeight gets a reference to the given int32 and assigns it to the BlockHeight field.
func (*NetworkStatus) SetBlockTimestamp ¶
func (o *NetworkStatus) SetBlockTimestamp(v int32)
SetBlockTimestamp gets a reference to the given int32 and assigns it to the BlockTimestamp field.
func (*NetworkStatus) SetCoinPriceUSD ¶
func (o *NetworkStatus) SetCoinPriceUSD(v float32)
SetCoinPriceUSD gets a reference to the given float32 and assigns it to the CoinPriceUSD field.
func (*NetworkStatus) SetCoinSupply ¶
func (o *NetworkStatus) SetCoinSupply(v float32)
SetCoinSupply gets a reference to the given float32 and assigns it to the CoinSupply field.
func (*NetworkStatus) SetCountriesWithHosts ¶
func (o *NetworkStatus) SetCountriesWithHosts(v int32)
SetCountriesWithHosts gets a reference to the given int32 and assigns it to the CountriesWithHosts field.
func (*NetworkStatus) SetDifficulty ¶
func (o *NetworkStatus) SetDifficulty(v float32)
SetDifficulty gets a reference to the given float32 and assigns it to the Difficulty field.
func (*NetworkStatus) SetHashrate ¶
func (o *NetworkStatus) SetHashrate(v float32)
SetHashrate gets a reference to the given float32 and assigns it to the Hashrate field.
func (*NetworkStatus) SetMarketCapUSD ¶
func (o *NetworkStatus) SetMarketCapUSD(v float32)
SetMarketCapUSD gets a reference to the given float32 and assigns it to the MarketCapUSD field.
func (*NetworkStatus) SetNetworkCapacityTB ¶
func (o *NetworkStatus) SetNetworkCapacityTB(v float32)
SetNetworkCapacityTB gets a reference to the given float32 and assigns it to the NetworkCapacityTB field.
func (*NetworkStatus) SetOnlineHosts ¶
func (o *NetworkStatus) SetOnlineHosts(v int32)
SetOnlineHosts gets a reference to the given int32 and assigns it to the OnlineHosts field.
func (*NetworkStatus) SetPricePerTbSc ¶
func (o *NetworkStatus) SetPricePerTbSc(v float32)
SetPricePerTbSc gets a reference to the given float32 and assigns it to the PricePerTbSc field.
func (*NetworkStatus) SetPricePerTbUsd ¶
func (o *NetworkStatus) SetPricePerTbUsd(v float32)
SetPricePerTbUsd gets a reference to the given float32 and assigns it to the PricePerTbUsd field.
func (*NetworkStatus) SetSkynetFiles ¶
func (o *NetworkStatus) SetSkynetFiles(v int32)
SetSkynetFiles gets a reference to the given int32 and assigns it to the SkynetFiles field.
func (*NetworkStatus) SetSkynetPortalsNumber ¶
func (o *NetworkStatus) SetSkynetPortalsNumber(v int32)
SetSkynetPortalsNumber gets a reference to the given int32 and assigns it to the SkynetPortalsNumber field.
func (*NetworkStatus) SetSkynetSize ¶
func (o *NetworkStatus) SetSkynetSize(v float32)
SetSkynetSize gets a reference to the given float32 and assigns it to the SkynetSize field.
func (*NetworkStatus) SetStorageProofCount ¶
func (o *NetworkStatus) SetStorageProofCount(v int32)
SetStorageProofCount gets a reference to the given int32 and assigns it to the StorageProofCount field.
func (*NetworkStatus) SetUsedStorageTB ¶
func (o *NetworkStatus) SetUsedStorageTB(v float32)
SetUsedStorageTB gets a reference to the given float32 and assigns it to the UsedStorageTB field.
type NetworkStatusApiService ¶
type NetworkStatusApiService service
NetworkStatusApiService NetworkStatusApi service
func (*NetworkStatusApiService) NetworkStatus ¶
func (a *NetworkStatusApiService) NetworkStatus(ctx _context.Context) ApiNetworkStatusRequest
* NetworkStatus Global network status and market infos * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiNetworkStatusRequest
func (*NetworkStatusApiService) NetworkStatusExecute ¶
func (a *NetworkStatusApiService) NetworkStatusExecute(r ApiNetworkStatusRequest) (NetworkStatus, *_nethttp.Response, error)
* Execute executes the request * @return NetworkStatus
type NullableAllHostsRequest ¶
type NullableAllHostsRequest struct {
// contains filtered or unexported fields
}
func NewNullableAllHostsRequest ¶
func NewNullableAllHostsRequest(val *AllHostsRequest) *NullableAllHostsRequest
func (NullableAllHostsRequest) Get ¶
func (v NullableAllHostsRequest) Get() *AllHostsRequest
func (NullableAllHostsRequest) IsSet ¶
func (v NullableAllHostsRequest) IsSet() bool
func (NullableAllHostsRequest) MarshalJSON ¶
func (v NullableAllHostsRequest) MarshalJSON() ([]byte, error)
func (*NullableAllHostsRequest) Set ¶
func (v *NullableAllHostsRequest) Set(val *AllHostsRequest)
func (*NullableAllHostsRequest) UnmarshalJSON ¶
func (v *NullableAllHostsRequest) UnmarshalJSON(src []byte) error
func (*NullableAllHostsRequest) Unset ¶
func (v *NullableAllHostsRequest) Unset()
type NullableBenchmarks ¶
type NullableBenchmarks struct {
// contains filtered or unexported fields
}
func NewNullableBenchmarks ¶
func NewNullableBenchmarks(val *Benchmarks) *NullableBenchmarks
func (NullableBenchmarks) Get ¶
func (v NullableBenchmarks) Get() *Benchmarks
func (NullableBenchmarks) IsSet ¶
func (v NullableBenchmarks) IsSet() bool
func (NullableBenchmarks) MarshalJSON ¶
func (v NullableBenchmarks) MarshalJSON() ([]byte, error)
func (*NullableBenchmarks) Set ¶
func (v *NullableBenchmarks) Set(val *Benchmarks)
func (*NullableBenchmarks) UnmarshalJSON ¶
func (v *NullableBenchmarks) UnmarshalJSON(src []byte) error
func (*NullableBenchmarks) Unset ¶
func (v *NullableBenchmarks) Unset()
type NullableBool ¶
type NullableBool struct {
// contains filtered or unexported fields
}
func NewNullableBool ¶
func NewNullableBool(val *bool) *NullableBool
func (NullableBool) Get ¶
func (v NullableBool) Get() *bool
func (NullableBool) IsSet ¶
func (v NullableBool) IsSet() bool
func (NullableBool) MarshalJSON ¶
func (v NullableBool) MarshalJSON() ([]byte, error)
func (*NullableBool) Set ¶
func (v *NullableBool) Set(val *bool)
func (*NullableBool) UnmarshalJSON ¶
func (v *NullableBool) UnmarshalJSON(src []byte) error
func (*NullableBool) Unset ¶
func (v *NullableBool) Unset()
type NullableComparisonMatrix ¶
type NullableComparisonMatrix struct {
// contains filtered or unexported fields
}
func NewNullableComparisonMatrix ¶
func NewNullableComparisonMatrix(val *ComparisonMatrix) *NullableComparisonMatrix
func (NullableComparisonMatrix) Get ¶
func (v NullableComparisonMatrix) Get() *ComparisonMatrix
func (NullableComparisonMatrix) IsSet ¶
func (v NullableComparisonMatrix) IsSet() bool
func (NullableComparisonMatrix) MarshalJSON ¶
func (v NullableComparisonMatrix) MarshalJSON() ([]byte, error)
func (*NullableComparisonMatrix) Set ¶
func (v *NullableComparisonMatrix) Set(val *ComparisonMatrix)
func (*NullableComparisonMatrix) UnmarshalJSON ¶
func (v *NullableComparisonMatrix) UnmarshalJSON(src []byte) error
func (*NullableComparisonMatrix) Unset ¶
func (v *NullableComparisonMatrix) Unset()
type NullableFloat32 ¶
type NullableFloat32 struct {
// contains filtered or unexported fields
}
func NewNullableFloat32 ¶
func NewNullableFloat32(val *float32) *NullableFloat32
func (NullableFloat32) Get ¶
func (v NullableFloat32) Get() *float32
func (NullableFloat32) IsSet ¶
func (v NullableFloat32) IsSet() bool
func (NullableFloat32) MarshalJSON ¶
func (v NullableFloat32) MarshalJSON() ([]byte, error)
func (*NullableFloat32) Set ¶
func (v *NullableFloat32) Set(val *float32)
func (*NullableFloat32) UnmarshalJSON ¶
func (v *NullableFloat32) UnmarshalJSON(src []byte) error
func (*NullableFloat32) Unset ¶
func (v *NullableFloat32) Unset()
type NullableFloat64 ¶
type NullableFloat64 struct {
// contains filtered or unexported fields
}
func NewNullableFloat64 ¶
func NewNullableFloat64(val *float64) *NullableFloat64
func (NullableFloat64) Get ¶
func (v NullableFloat64) Get() *float64
func (NullableFloat64) IsSet ¶
func (v NullableFloat64) IsSet() bool
func (NullableFloat64) MarshalJSON ¶
func (v NullableFloat64) MarshalJSON() ([]byte, error)
func (*NullableFloat64) Set ¶
func (v *NullableFloat64) Set(val *float64)
func (*NullableFloat64) UnmarshalJSON ¶
func (v *NullableFloat64) UnmarshalJSON(src []byte) error
func (*NullableFloat64) Unset ¶
func (v *NullableFloat64) Unset()
type NullableHashResponse ¶
type NullableHashResponse struct {
// contains filtered or unexported fields
}
func NewNullableHashResponse ¶
func NewNullableHashResponse(val *HashResponse) *NullableHashResponse
func (NullableHashResponse) Get ¶
func (v NullableHashResponse) Get() *HashResponse
func (NullableHashResponse) IsSet ¶
func (v NullableHashResponse) IsSet() bool
func (NullableHashResponse) MarshalJSON ¶
func (v NullableHashResponse) MarshalJSON() ([]byte, error)
func (*NullableHashResponse) Set ¶
func (v *NullableHashResponse) Set(val *HashResponse)
func (*NullableHashResponse) UnmarshalJSON ¶
func (v *NullableHashResponse) UnmarshalJSON(src []byte) error
func (*NullableHashResponse) Unset ¶
func (v *NullableHashResponse) Unset()
type NullableHost ¶
type NullableHost struct {
// contains filtered or unexported fields
}
func NewNullableHost ¶
func NewNullableHost(val *Host) *NullableHost
func (NullableHost) Get ¶
func (v NullableHost) Get() *Host
func (NullableHost) IsSet ¶
func (v NullableHost) IsSet() bool
func (NullableHost) MarshalJSON ¶
func (v NullableHost) MarshalJSON() ([]byte, error)
func (*NullableHost) Set ¶
func (v *NullableHost) Set(val *Host)
func (*NullableHost) UnmarshalJSON ¶
func (v *NullableHost) UnmarshalJSON(src []byte) error
func (*NullableHost) Unset ¶
func (v *NullableHost) Unset()
type NullableHostResponse ¶
type NullableHostResponse struct {
// contains filtered or unexported fields
}
func NewNullableHostResponse ¶
func NewNullableHostResponse(val *HostResponse) *NullableHostResponse
func (NullableHostResponse) Get ¶
func (v NullableHostResponse) Get() *HostResponse
func (NullableHostResponse) IsSet ¶
func (v NullableHostResponse) IsSet() bool
func (NullableHostResponse) MarshalJSON ¶
func (v NullableHostResponse) MarshalJSON() ([]byte, error)
func (*NullableHostResponse) Set ¶
func (v *NullableHostResponse) Set(val *HostResponse)
func (*NullableHostResponse) UnmarshalJSON ¶
func (v *NullableHostResponse) UnmarshalJSON(src []byte) error
func (*NullableHostResponse) Unset ¶
func (v *NullableHostResponse) Unset()
type NullableInt ¶
type NullableInt struct {
// contains filtered or unexported fields
}
func NewNullableInt ¶
func NewNullableInt(val *int) *NullableInt
func (NullableInt) Get ¶
func (v NullableInt) Get() *int
func (NullableInt) IsSet ¶
func (v NullableInt) IsSet() bool
func (NullableInt) MarshalJSON ¶
func (v NullableInt) MarshalJSON() ([]byte, error)
func (*NullableInt) Set ¶
func (v *NullableInt) Set(val *int)
func (*NullableInt) UnmarshalJSON ¶
func (v *NullableInt) UnmarshalJSON(src []byte) error
func (*NullableInt) Unset ¶
func (v *NullableInt) Unset()
type NullableInt32 ¶
type NullableInt32 struct {
// contains filtered or unexported fields
}
func NewNullableInt32 ¶
func NewNullableInt32(val *int32) *NullableInt32
func (NullableInt32) Get ¶
func (v NullableInt32) Get() *int32
func (NullableInt32) IsSet ¶
func (v NullableInt32) IsSet() bool
func (NullableInt32) MarshalJSON ¶
func (v NullableInt32) MarshalJSON() ([]byte, error)
func (*NullableInt32) Set ¶
func (v *NullableInt32) Set(val *int32)
func (*NullableInt32) UnmarshalJSON ¶
func (v *NullableInt32) UnmarshalJSON(src []byte) error
func (*NullableInt32) Unset ¶
func (v *NullableInt32) Unset()
type NullableInt64 ¶
type NullableInt64 struct {
// contains filtered or unexported fields
}
func NewNullableInt64 ¶
func NewNullableInt64(val *int64) *NullableInt64
func (NullableInt64) Get ¶
func (v NullableInt64) Get() *int64
func (NullableInt64) IsSet ¶
func (v NullableInt64) IsSet() bool
func (NullableInt64) MarshalJSON ¶
func (v NullableInt64) MarshalJSON() ([]byte, error)
func (*NullableInt64) Set ¶
func (v *NullableInt64) Set(val *int64)
func (*NullableInt64) UnmarshalJSON ¶
func (v *NullableInt64) UnmarshalJSON(src []byte) error
func (*NullableInt64) Unset ¶
func (v *NullableInt64) Unset()
type NullableNetworkStatus ¶
type NullableNetworkStatus struct {
// contains filtered or unexported fields
}
func NewNullableNetworkStatus ¶
func NewNullableNetworkStatus(val *NetworkStatus) *NullableNetworkStatus
func (NullableNetworkStatus) Get ¶
func (v NullableNetworkStatus) Get() *NetworkStatus
func (NullableNetworkStatus) IsSet ¶
func (v NullableNetworkStatus) IsSet() bool
func (NullableNetworkStatus) MarshalJSON ¶
func (v NullableNetworkStatus) MarshalJSON() ([]byte, error)
func (*NullableNetworkStatus) Set ¶
func (v *NullableNetworkStatus) Set(val *NetworkStatus)
func (*NullableNetworkStatus) UnmarshalJSON ¶
func (v *NullableNetworkStatus) UnmarshalJSON(src []byte) error
func (*NullableNetworkStatus) Unset ¶
func (v *NullableNetworkStatus) Unset()
type NullablePlotBand ¶
type NullablePlotBand struct {
// contains filtered or unexported fields
}
func NewNullablePlotBand ¶
func NewNullablePlotBand(val *PlotBand) *NullablePlotBand
func (NullablePlotBand) Get ¶
func (v NullablePlotBand) Get() *PlotBand
func (NullablePlotBand) IsSet ¶
func (v NullablePlotBand) IsSet() bool
func (NullablePlotBand) MarshalJSON ¶
func (v NullablePlotBand) MarshalJSON() ([]byte, error)
func (*NullablePlotBand) Set ¶
func (v *NullablePlotBand) Set(val *PlotBand)
func (*NullablePlotBand) UnmarshalJSON ¶
func (v *NullablePlotBand) UnmarshalJSON(src []byte) error
func (*NullablePlotBand) Unset ¶
func (v *NullablePlotBand) Unset()
type NullablePlotBandLabel ¶
type NullablePlotBandLabel struct {
// contains filtered or unexported fields
}
func NewNullablePlotBandLabel ¶
func NewNullablePlotBandLabel(val *PlotBandLabel) *NullablePlotBandLabel
func (NullablePlotBandLabel) Get ¶
func (v NullablePlotBandLabel) Get() *PlotBandLabel
func (NullablePlotBandLabel) IsSet ¶
func (v NullablePlotBandLabel) IsSet() bool
func (NullablePlotBandLabel) MarshalJSON ¶
func (v NullablePlotBandLabel) MarshalJSON() ([]byte, error)
func (*NullablePlotBandLabel) Set ¶
func (v *NullablePlotBandLabel) Set(val *PlotBandLabel)
func (*NullablePlotBandLabel) UnmarshalJSON ¶
func (v *NullablePlotBandLabel) UnmarshalJSON(src []byte) error
func (*NullablePlotBandLabel) Unset ¶
func (v *NullablePlotBandLabel) Unset()
type NullableRegionalScore ¶
type NullableRegionalScore struct {
// contains filtered or unexported fields
}
func NewNullableRegionalScore ¶
func NewNullableRegionalScore(val *RegionalScore) *NullableRegionalScore
func (NullableRegionalScore) Get ¶
func (v NullableRegionalScore) Get() *RegionalScore
func (NullableRegionalScore) IsSet ¶
func (v NullableRegionalScore) IsSet() bool
func (NullableRegionalScore) MarshalJSON ¶
func (v NullableRegionalScore) MarshalJSON() ([]byte, error)
func (*NullableRegionalScore) Set ¶
func (v *NullableRegionalScore) Set(val *RegionalScore)
func (*NullableRegionalScore) UnmarshalJSON ¶
func (v *NullableRegionalScore) UnmarshalJSON(src []byte) error
func (*NullableRegionalScore) Unset ¶
func (v *NullableRegionalScore) Unset()
type NullableStatus ¶
type NullableStatus struct {
// contains filtered or unexported fields
}
func NewNullableStatus ¶
func NewNullableStatus(val *Status) *NullableStatus
func (NullableStatus) Get ¶
func (v NullableStatus) Get() *Status
func (NullableStatus) IsSet ¶
func (v NullableStatus) IsSet() bool
func (NullableStatus) MarshalJSON ¶
func (v NullableStatus) MarshalJSON() ([]byte, error)
func (*NullableStatus) Set ¶
func (v *NullableStatus) Set(val *Status)
func (*NullableStatus) UnmarshalJSON ¶
func (v *NullableStatus) UnmarshalJSON(src []byte) error
func (*NullableStatus) Unset ¶
func (v *NullableStatus) Unset()
type NullableString ¶
type NullableString struct {
// contains filtered or unexported fields
}
func NewNullableString ¶
func NewNullableString(val *string) *NullableString
func (NullableString) Get ¶
func (v NullableString) Get() *string
func (NullableString) IsSet ¶
func (v NullableString) IsSet() bool
func (NullableString) MarshalJSON ¶
func (v NullableString) MarshalJSON() ([]byte, error)
func (*NullableString) Set ¶
func (v *NullableString) Set(val *string)
func (*NullableString) UnmarshalJSON ¶
func (v *NullableString) UnmarshalJSON(src []byte) error
func (*NullableString) Unset ¶
func (v *NullableString) Unset()
type NullableTicks ¶
type NullableTicks struct {
// contains filtered or unexported fields
}
func NewNullableTicks ¶
func NewNullableTicks(val *Ticks) *NullableTicks
func (NullableTicks) Get ¶
func (v NullableTicks) Get() *Ticks
func (NullableTicks) IsSet ¶
func (v NullableTicks) IsSet() bool
func (NullableTicks) MarshalJSON ¶
func (v NullableTicks) MarshalJSON() ([]byte, error)
func (*NullableTicks) Set ¶
func (v *NullableTicks) Set(val *Ticks)
func (*NullableTicks) UnmarshalJSON ¶
func (v *NullableTicks) UnmarshalJSON(src []byte) error
func (*NullableTicks) Unset ¶
func (v *NullableTicks) Unset()
type NullableTime ¶
type NullableTime struct {
// contains filtered or unexported fields
}
func NewNullableTime ¶
func NewNullableTime(val *time.Time) *NullableTime
func (NullableTime) Get ¶
func (v NullableTime) Get() *time.Time
func (NullableTime) IsSet ¶
func (v NullableTime) IsSet() bool
func (NullableTime) MarshalJSON ¶
func (v NullableTime) MarshalJSON() ([]byte, error)
func (*NullableTime) Set ¶
func (v *NullableTime) Set(val *time.Time)
func (*NullableTime) UnmarshalJSON ¶
func (v *NullableTime) UnmarshalJSON(src []byte) error
func (*NullableTime) Unset ¶
func (v *NullableTime) Unset()
type NullableTransaction ¶
type NullableTransaction struct {
// contains filtered or unexported fields
}
func NewNullableTransaction ¶
func NewNullableTransaction(val *Transaction) *NullableTransaction
func (NullableTransaction) Get ¶
func (v NullableTransaction) Get() *Transaction
func (NullableTransaction) IsSet ¶
func (v NullableTransaction) IsSet() bool
func (NullableTransaction) MarshalJSON ¶
func (v NullableTransaction) MarshalJSON() ([]byte, error)
func (*NullableTransaction) Set ¶
func (v *NullableTransaction) Set(val *Transaction)
func (*NullableTransaction) UnmarshalJSON ¶
func (v *NullableTransaction) UnmarshalJSON(src []byte) error
func (*NullableTransaction) Unset ¶
func (v *NullableTransaction) Unset()
type OneOfstringfloat ¶
type OneOfstringfloat struct {
Value float32
}
func (*OneOfstringfloat) MarshalJSON ¶
func (s *OneOfstringfloat) MarshalJSON() ([]byte, error)
func (*OneOfstringfloat) UnmarshalJSON ¶
func (s *OneOfstringfloat) UnmarshalJSON(data []byte) error
type PlotBand ¶
type PlotBand struct { Color *string `json:"color,omitempty"` From *int64 `json:"from,omitempty"` To *int64 `json:"to,omitempty"` Label *PlotBandLabel `json:"label,omitempty"` }
PlotBand struct for PlotBand
func NewPlotBand ¶
func NewPlotBand() *PlotBand
NewPlotBand instantiates a new PlotBand 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
func NewPlotBandWithDefaults ¶
func NewPlotBandWithDefaults() *PlotBand
NewPlotBandWithDefaults instantiates a new PlotBand 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
func (*PlotBand) GetColorOk ¶
GetColorOk returns a tuple with the Color field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PlotBand) GetFromOk ¶
GetFromOk returns a tuple with the From field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PlotBand) GetLabel ¶
func (o *PlotBand) GetLabel() PlotBandLabel
GetLabel returns the Label field value if set, zero value otherwise.
func (*PlotBand) GetLabelOk ¶
func (o *PlotBand) GetLabelOk() (*PlotBandLabel, bool)
GetLabelOk returns a tuple with the Label field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PlotBand) GetToOk ¶
GetToOk returns a tuple with the To field value if set, nil otherwise and a boolean to check if the value has been set.
func (PlotBand) MarshalJSON ¶
func (*PlotBand) SetColor ¶
SetColor gets a reference to the given string and assigns it to the Color field.
func (*PlotBand) SetFrom ¶
SetFrom gets a reference to the given int64 and assigns it to the From field.
func (*PlotBand) SetLabel ¶
func (o *PlotBand) SetLabel(v PlotBandLabel)
SetLabel gets a reference to the given PlotBandLabel and assigns it to the Label field.
type PlotBandLabel ¶
type PlotBandLabel struct { Text *string `json:"text,omitempty"` Rotation *int32 `json:"rotation,omitempty"` TextAlign *string `json:"textAlign,omitempty"` Align *string `json:"align,omitempty"` X *int32 `json:"x,omitempty"` Y *int32 `json:"y,omitempty"` }
PlotBandLabel struct for PlotBandLabel
func NewPlotBandLabel ¶
func NewPlotBandLabel() *PlotBandLabel
NewPlotBandLabel instantiates a new PlotBandLabel 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
func NewPlotBandLabelWithDefaults ¶
func NewPlotBandLabelWithDefaults() *PlotBandLabel
NewPlotBandLabelWithDefaults instantiates a new PlotBandLabel 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
func (*PlotBandLabel) GetAlign ¶
func (o *PlotBandLabel) GetAlign() string
GetAlign returns the Align field value if set, zero value otherwise.
func (*PlotBandLabel) GetAlignOk ¶
func (o *PlotBandLabel) GetAlignOk() (*string, bool)
GetAlignOk returns a tuple with the Align field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PlotBandLabel) GetRotation ¶
func (o *PlotBandLabel) GetRotation() int32
GetRotation returns the Rotation field value if set, zero value otherwise.
func (*PlotBandLabel) GetRotationOk ¶
func (o *PlotBandLabel) GetRotationOk() (*int32, bool)
GetRotationOk returns a tuple with the Rotation field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PlotBandLabel) GetText ¶
func (o *PlotBandLabel) GetText() string
GetText returns the Text field value if set, zero value otherwise.
func (*PlotBandLabel) GetTextAlign ¶
func (o *PlotBandLabel) GetTextAlign() string
GetTextAlign returns the TextAlign field value if set, zero value otherwise.
func (*PlotBandLabel) GetTextAlignOk ¶
func (o *PlotBandLabel) GetTextAlignOk() (*string, bool)
GetTextAlignOk returns a tuple with the TextAlign field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PlotBandLabel) GetTextOk ¶
func (o *PlotBandLabel) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PlotBandLabel) GetX ¶
func (o *PlotBandLabel) GetX() int32
GetX returns the X field value if set, zero value otherwise.
func (*PlotBandLabel) GetXOk ¶
func (o *PlotBandLabel) GetXOk() (*int32, bool)
GetXOk returns a tuple with the X field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PlotBandLabel) GetY ¶
func (o *PlotBandLabel) GetY() int32
GetY returns the Y field value if set, zero value otherwise.
func (*PlotBandLabel) GetYOk ¶
func (o *PlotBandLabel) GetYOk() (*int32, bool)
GetYOk returns a tuple with the Y field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PlotBandLabel) HasAlign ¶
func (o *PlotBandLabel) HasAlign() bool
HasAlign returns a boolean if a field has been set.
func (*PlotBandLabel) HasRotation ¶
func (o *PlotBandLabel) HasRotation() bool
HasRotation returns a boolean if a field has been set.
func (*PlotBandLabel) HasText ¶
func (o *PlotBandLabel) HasText() bool
HasText returns a boolean if a field has been set.
func (*PlotBandLabel) HasTextAlign ¶
func (o *PlotBandLabel) HasTextAlign() bool
HasTextAlign returns a boolean if a field has been set.
func (*PlotBandLabel) HasX ¶
func (o *PlotBandLabel) HasX() bool
HasX returns a boolean if a field has been set.
func (*PlotBandLabel) HasY ¶
func (o *PlotBandLabel) HasY() bool
HasY returns a boolean if a field has been set.
func (PlotBandLabel) MarshalJSON ¶
func (o PlotBandLabel) MarshalJSON() ([]byte, error)
func (*PlotBandLabel) SetAlign ¶
func (o *PlotBandLabel) SetAlign(v string)
SetAlign gets a reference to the given string and assigns it to the Align field.
func (*PlotBandLabel) SetRotation ¶
func (o *PlotBandLabel) SetRotation(v int32)
SetRotation gets a reference to the given int32 and assigns it to the Rotation field.
func (*PlotBandLabel) SetText ¶
func (o *PlotBandLabel) SetText(v string)
SetText gets a reference to the given string and assigns it to the Text field.
func (*PlotBandLabel) SetTextAlign ¶
func (o *PlotBandLabel) SetTextAlign(v string)
SetTextAlign gets a reference to the given string and assigns it to the TextAlign field.
func (*PlotBandLabel) SetX ¶
func (o *PlotBandLabel) SetX(v int32)
SetX gets a reference to the given int32 and assigns it to the X field.
func (*PlotBandLabel) SetY ¶
func (o *PlotBandLabel) SetY(v int32)
SetY gets a reference to the given int32 and assigns it to the Y field.
type RegionalScore ¶
type RegionalScore struct { Region *string `json:"region,omitempty"` Latency *int32 `json:"latency,omitempty"` Up *string `json:"up,omitempty"` Down *string `json:"down,omitempty"` LatencyScore *int32 `json:"latencyScore,omitempty"` UpScore *int32 `json:"upScore,omitempty"` DownScore *int32 `json:"downScore,omitempty"` FinalScore *int32 `json:"finalScore,omitempty"` }
RegionalScore struct for RegionalScore
func NewRegionalScore ¶
func NewRegionalScore() *RegionalScore
NewRegionalScore instantiates a new RegionalScore 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
func NewRegionalScoreWithDefaults ¶
func NewRegionalScoreWithDefaults() *RegionalScore
NewRegionalScoreWithDefaults instantiates a new RegionalScore 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
func (*RegionalScore) GetDown ¶
func (o *RegionalScore) GetDown() string
GetDown returns the Down field value if set, zero value otherwise.
func (*RegionalScore) GetDownOk ¶
func (o *RegionalScore) GetDownOk() (*string, bool)
GetDownOk returns a tuple with the Down field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RegionalScore) GetDownScore ¶
func (o *RegionalScore) GetDownScore() int32
GetDownScore returns the DownScore field value if set, zero value otherwise.
func (*RegionalScore) GetDownScoreOk ¶
func (o *RegionalScore) GetDownScoreOk() (*int32, bool)
GetDownScoreOk returns a tuple with the DownScore field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RegionalScore) GetFinalScore ¶
func (o *RegionalScore) GetFinalScore() int32
GetFinalScore returns the FinalScore field value if set, zero value otherwise.
func (*RegionalScore) GetFinalScoreOk ¶
func (o *RegionalScore) GetFinalScoreOk() (*int32, bool)
GetFinalScoreOk returns a tuple with the FinalScore field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RegionalScore) GetLatency ¶
func (o *RegionalScore) GetLatency() int32
GetLatency returns the Latency field value if set, zero value otherwise.
func (*RegionalScore) GetLatencyOk ¶
func (o *RegionalScore) GetLatencyOk() (*int32, bool)
GetLatencyOk returns a tuple with the Latency field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RegionalScore) GetLatencyScore ¶
func (o *RegionalScore) GetLatencyScore() int32
GetLatencyScore returns the LatencyScore field value if set, zero value otherwise.
func (*RegionalScore) GetLatencyScoreOk ¶
func (o *RegionalScore) GetLatencyScoreOk() (*int32, bool)
GetLatencyScoreOk returns a tuple with the LatencyScore field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RegionalScore) GetRegion ¶
func (o *RegionalScore) GetRegion() string
GetRegion returns the Region field value if set, zero value otherwise.
func (*RegionalScore) GetRegionOk ¶
func (o *RegionalScore) GetRegionOk() (*string, bool)
GetRegionOk returns a tuple with the Region field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RegionalScore) GetUp ¶
func (o *RegionalScore) GetUp() string
GetUp returns the Up field value if set, zero value otherwise.
func (*RegionalScore) GetUpOk ¶
func (o *RegionalScore) GetUpOk() (*string, bool)
GetUpOk returns a tuple with the Up field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RegionalScore) GetUpScore ¶
func (o *RegionalScore) GetUpScore() int32
GetUpScore returns the UpScore field value if set, zero value otherwise.
func (*RegionalScore) GetUpScoreOk ¶
func (o *RegionalScore) GetUpScoreOk() (*int32, bool)
GetUpScoreOk returns a tuple with the UpScore field value if set, nil otherwise and a boolean to check if the value has been set.
func (*RegionalScore) HasDown ¶
func (o *RegionalScore) HasDown() bool
HasDown returns a boolean if a field has been set.
func (*RegionalScore) HasDownScore ¶
func (o *RegionalScore) HasDownScore() bool
HasDownScore returns a boolean if a field has been set.
func (*RegionalScore) HasFinalScore ¶
func (o *RegionalScore) HasFinalScore() bool
HasFinalScore returns a boolean if a field has been set.
func (*RegionalScore) HasLatency ¶
func (o *RegionalScore) HasLatency() bool
HasLatency returns a boolean if a field has been set.
func (*RegionalScore) HasLatencyScore ¶
func (o *RegionalScore) HasLatencyScore() bool
HasLatencyScore returns a boolean if a field has been set.
func (*RegionalScore) HasRegion ¶
func (o *RegionalScore) HasRegion() bool
HasRegion returns a boolean if a field has been set.
func (*RegionalScore) HasUp ¶
func (o *RegionalScore) HasUp() bool
HasUp returns a boolean if a field has been set.
func (*RegionalScore) HasUpScore ¶
func (o *RegionalScore) HasUpScore() bool
HasUpScore returns a boolean if a field has been set.
func (RegionalScore) MarshalJSON ¶
func (o RegionalScore) MarshalJSON() ([]byte, error)
func (*RegionalScore) SetDown ¶
func (o *RegionalScore) SetDown(v string)
SetDown gets a reference to the given string and assigns it to the Down field.
func (*RegionalScore) SetDownScore ¶
func (o *RegionalScore) SetDownScore(v int32)
SetDownScore gets a reference to the given int32 and assigns it to the DownScore field.
func (*RegionalScore) SetFinalScore ¶
func (o *RegionalScore) SetFinalScore(v int32)
SetFinalScore gets a reference to the given int32 and assigns it to the FinalScore field.
func (*RegionalScore) SetLatency ¶
func (o *RegionalScore) SetLatency(v int32)
SetLatency gets a reference to the given int32 and assigns it to the Latency field.
func (*RegionalScore) SetLatencyScore ¶
func (o *RegionalScore) SetLatencyScore(v int32)
SetLatencyScore gets a reference to the given int32 and assigns it to the LatencyScore field.
func (*RegionalScore) SetRegion ¶
func (o *RegionalScore) SetRegion(v string)
SetRegion gets a reference to the given string and assigns it to the Region field.
func (*RegionalScore) SetUp ¶
func (o *RegionalScore) SetUp(v string)
SetUp gets a reference to the given string and assigns it to the Up field.
func (*RegionalScore) SetUpScore ¶
func (o *RegionalScore) SetUpScore(v int32)
SetUpScore gets a reference to the given int32 and assigns it to the UpScore field.
type ServerConfiguration ¶
type ServerConfiguration struct { URL string Description string Variables map[string]ServerVariable }
ServerConfiguration stores the information about a server
type ServerConfigurations ¶
type ServerConfigurations []ServerConfiguration
ServerConfigurations stores multiple ServerConfiguration items
type ServerVariable ¶
ServerVariable stores the information about a server variable
type Status ¶
type Status struct { Consensusblock *int32 `json:"consensusblock,omitempty"` Lastblock *int32 `json:"lastblock,omitempty"` Heartbeat *int64 `json:"heartbeat,omitempty"` Peers *int32 `json:"peers,omitempty"` Version *string `json:"version,omitempty"` }
Status struct for Status
func NewStatus ¶
func NewStatus() *Status
NewStatus instantiates a new Status 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
func NewStatusWithDefaults ¶
func NewStatusWithDefaults() *Status
NewStatusWithDefaults instantiates a new Status 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
func (*Status) GetConsensusblock ¶
GetConsensusblock returns the Consensusblock field value if set, zero value otherwise.
func (*Status) GetConsensusblockOk ¶
GetConsensusblockOk returns a tuple with the Consensusblock field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Status) GetHeartbeat ¶
GetHeartbeat returns the Heartbeat field value if set, zero value otherwise.
func (*Status) GetHeartbeatOk ¶
GetHeartbeatOk returns a tuple with the Heartbeat field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Status) GetLastblock ¶
GetLastblock returns the Lastblock field value if set, zero value otherwise.
func (*Status) GetLastblockOk ¶
GetLastblockOk returns a tuple with the Lastblock field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Status) GetPeersOk ¶
GetPeersOk returns a tuple with the Peers field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Status) GetVersion ¶
GetVersion returns the Version field value if set, zero value otherwise.
func (*Status) GetVersionOk ¶
GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Status) HasConsensusblock ¶
HasConsensusblock returns a boolean if a field has been set.
func (*Status) HasHeartbeat ¶
HasHeartbeat returns a boolean if a field has been set.
func (*Status) HasLastblock ¶
HasLastblock returns a boolean if a field has been set.
func (*Status) HasVersion ¶
HasVersion returns a boolean if a field has been set.
func (Status) MarshalJSON ¶
func (*Status) SetConsensusblock ¶
SetConsensusblock gets a reference to the given int32 and assigns it to the Consensusblock field.
func (*Status) SetHeartbeat ¶
SetHeartbeat gets a reference to the given int64 and assigns it to the Heartbeat field.
func (*Status) SetLastblock ¶
SetLastblock gets a reference to the given int32 and assigns it to the Lastblock field.
func (*Status) SetPeers ¶
SetPeers gets a reference to the given int32 and assigns it to the Peers field.
func (*Status) SetVersion ¶
SetVersion gets a reference to the given string and assigns it to the Version field.
type Ticks ¶
type Ticks struct { Total *[][]float32 `json:"total,omitempty"` Used *[][]float32 `json:"used,omitempty"` Storage *[][]float32 `json:"storage,omitempty"` Bandwidth *[][]float32 `json:"bandwidth,omitempty"` Collateral *[][]float32 `json:"collateral,omitempty"` }
Ticks struct for Ticks
func NewTicks ¶
func NewTicks() *Ticks
NewTicks instantiates a new Ticks 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
func NewTicksWithDefaults ¶
func NewTicksWithDefaults() *Ticks
NewTicksWithDefaults instantiates a new Ticks 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
func (*Ticks) GetBandwidth ¶
GetBandwidth returns the Bandwidth field value if set, zero value otherwise.
func (*Ticks) GetBandwidthOk ¶
GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Ticks) GetCollateral ¶
GetCollateral returns the Collateral field value if set, zero value otherwise.
func (*Ticks) GetCollateralOk ¶
GetCollateralOk returns a tuple with the Collateral field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Ticks) GetStorage ¶
GetStorage returns the Storage field value if set, zero value otherwise.
func (*Ticks) GetStorageOk ¶
GetStorageOk returns a tuple with the Storage field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Ticks) GetTotalOk ¶
GetTotalOk returns a tuple with the Total field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Ticks) GetUsedOk ¶
GetUsedOk returns a tuple with the Used field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Ticks) HasBandwidth ¶
HasBandwidth returns a boolean if a field has been set.
func (*Ticks) HasCollateral ¶
HasCollateral returns a boolean if a field has been set.
func (*Ticks) HasStorage ¶
HasStorage returns a boolean if a field has been set.
func (Ticks) MarshalJSON ¶
func (*Ticks) SetBandwidth ¶
SetBandwidth gets a reference to the given [][]float32 and assigns it to the Bandwidth field.
func (*Ticks) SetCollateral ¶
SetCollateral gets a reference to the given [][]float32 and assigns it to the Collateral field.
func (*Ticks) SetStorage ¶
SetStorage gets a reference to the given [][]float32 and assigns it to the Storage field.
type Transaction ¶
type Transaction struct { MasterHash *string `json:"MasterHash,omitempty"` ScChange *float64 `json:"ScChange,omitempty"` SfChange *float32 `json:"SfChange,omitempty"` Height *int32 `json:"Height,omitempty"` Timestamp *string `json:"Timestamp,omitempty"` TxType *string `json:"TxType,omitempty"` }
Transaction struct for Transaction
func NewTransaction ¶
func NewTransaction() *Transaction
NewTransaction instantiates a new Transaction 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
func NewTransactionWithDefaults ¶
func NewTransactionWithDefaults() *Transaction
NewTransactionWithDefaults instantiates a new Transaction 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
func (*Transaction) GetHeight ¶
func (o *Transaction) GetHeight() int32
GetHeight returns the Height field value if set, zero value otherwise.
func (*Transaction) GetHeightOk ¶
func (o *Transaction) GetHeightOk() (*int32, bool)
GetHeightOk returns a tuple with the Height field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Transaction) GetMasterHash ¶
func (o *Transaction) GetMasterHash() string
GetMasterHash returns the MasterHash field value if set, zero value otherwise.
func (*Transaction) GetMasterHashOk ¶
func (o *Transaction) GetMasterHashOk() (*string, bool)
GetMasterHashOk returns a tuple with the MasterHash field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Transaction) GetScChange ¶
func (o *Transaction) GetScChange() float64
GetScChange returns the ScChange field value if set, zero value otherwise.
func (*Transaction) GetScChangeOk ¶
func (o *Transaction) GetScChangeOk() (*float64, bool)
GetScChangeOk returns a tuple with the ScChange field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Transaction) GetSfChange ¶
func (o *Transaction) GetSfChange() float32
GetSfChange returns the SfChange field value if set, zero value otherwise.
func (*Transaction) GetSfChangeOk ¶
func (o *Transaction) GetSfChangeOk() (*float32, bool)
GetSfChangeOk returns a tuple with the SfChange field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Transaction) GetTimestamp ¶
func (o *Transaction) GetTimestamp() string
GetTimestamp returns the Timestamp field value if set, zero value otherwise.
func (*Transaction) GetTimestampOk ¶
func (o *Transaction) GetTimestampOk() (*string, bool)
GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Transaction) GetTxType ¶
func (o *Transaction) GetTxType() string
GetTxType returns the TxType field value if set, zero value otherwise.
func (*Transaction) GetTxTypeOk ¶
func (o *Transaction) GetTxTypeOk() (*string, bool)
GetTxTypeOk returns a tuple with the TxType field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Transaction) HasHeight ¶
func (o *Transaction) HasHeight() bool
HasHeight returns a boolean if a field has been set.
func (*Transaction) HasMasterHash ¶
func (o *Transaction) HasMasterHash() bool
HasMasterHash returns a boolean if a field has been set.
func (*Transaction) HasScChange ¶
func (o *Transaction) HasScChange() bool
HasScChange returns a boolean if a field has been set.
func (*Transaction) HasSfChange ¶
func (o *Transaction) HasSfChange() bool
HasSfChange returns a boolean if a field has been set.
func (*Transaction) HasTimestamp ¶
func (o *Transaction) HasTimestamp() bool
HasTimestamp returns a boolean if a field has been set.
func (*Transaction) HasTxType ¶
func (o *Transaction) HasTxType() bool
HasTxType returns a boolean if a field has been set.
func (Transaction) MarshalJSON ¶
func (o Transaction) MarshalJSON() ([]byte, error)
func (*Transaction) SetHeight ¶
func (o *Transaction) SetHeight(v int32)
SetHeight gets a reference to the given int32 and assigns it to the Height field.
func (*Transaction) SetMasterHash ¶
func (o *Transaction) SetMasterHash(v string)
SetMasterHash gets a reference to the given string and assigns it to the MasterHash field.
func (*Transaction) SetScChange ¶
func (o *Transaction) SetScChange(v float64)
SetScChange gets a reference to the given float64 and assigns it to the ScChange field.
func (*Transaction) SetSfChange ¶
func (o *Transaction) SetSfChange(v float32)
SetSfChange gets a reference to the given float32 and assigns it to the SfChange field.
func (*Transaction) SetTimestamp ¶
func (o *Transaction) SetTimestamp(v string)
SetTimestamp gets a reference to the given string and assigns it to the Timestamp field.
func (*Transaction) SetTxType ¶
func (o *Transaction) SetTxType(v string)
SetTxType gets a reference to the given string and assigns it to the TxType field.
Source Files ¶
- api_host.go
- api_navigator.go
- api_network_status.go
- client.go
- configuration.go
- missing.go
- model_all_hosts_request.go
- model_benchmarks.go
- model_comparison_matrix.go
- model_hash_response.go
- model_host.go
- model_host_response.go
- model_network_status.go
- model_plot_band.go
- model_plot_band_label.go
- model_regional_score.go
- model_status.go
- model_ticks.go
- model_transaction.go
- response.go
- utils.go