Documentation ¶
Index ¶
- func ToFloat64(value interface{}) (float64, error)
- type Algo
- type Currencies
- type Currency
- type Miner
- type PoolStatus
- type Rental
- type RentalJob
- type Wallet
- type WalletEx
- type YiimpClient
- func (client *YiimpClient) GetCurrencies() (Currencies, error)
- func (client *YiimpClient) GetRental(key string) (Rental, error)
- func (client *YiimpClient) GetStatus() (PoolStatus, error)
- func (client *YiimpClient) GetWallet(address string) (Wallet, error)
- func (client *YiimpClient) GetWalletEx(address string) (WalletEx, error)
- func (client YiimpClient) SetDebug(debug bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Algo ¶
type Algo struct { Name string `json:"name"` Port uint16 `json:"port"` Coins uint16 `json:"coins"` Fees float32 `json:"fees"` Hashrate float64 `json:"hashrate"` Workers uint16 `json:"workers"` EstimateCurrent float64 `json:"estimate_current"` EstimateLast24h float64 `json:"estimate_last24h"` ActualLast24h float64 `json:"actual_last24h"` Hashrate24h float64 `json:"hashrate_last24h"` UnitFactor float64 `json:"mbtc_mh_factor,omitempty"` RentalCurrent float64 `json:"rental_current,omitempty"` }
func (*Algo) UnmarshalJSON ¶
type Currencies ¶
type Currency ¶
type Currency struct { Name string `json:"name"` Symbol string `json:"symbol,omitempty"` Port uint16 `json:"port"` Algo string `json:"algo"` Height uint32 `json:"height"` Workers uint16 `json:"workers"` Hashrate uint64 `json:"hashrate"` LastBlock uint32 `json:"lastblock"` TimeSinceLast uint32 `json:"timesincelast"` }
type Miner ¶
type Miner struct { Version string `json:"version"` Password string `json:"password"` Id string `json:"ID"` Algo string `json:"algo"` Difficulty float32 `json:"difficulty"` Subscribe uint8 `json:"subscribe"` Accepted float64 `json:"accepted"` Rejected float64 `json:"rejected"` }
func (*Miner) UnmarshalJSON ¶
type PoolStatus ¶
type RentalJob ¶
type RentalJob struct { JobId uint32 `json:"jobid,string"` Algo string `json:"algo"` Price float64 `json:"price,string"` Hashrate uint64 `json:"hashrate,string"` Server string `json:"server"` Port uint16 `json:"port,string"` Username string `json:"username"` Password string `json:"password"` Started uint8 `json:"started"` Active uint8 `json:"active"` Accepted float64 `json:"accepted,string"` Rejected float64 `json:"rejected,string"` Difficulty float32 `json:"diff,string"` }
type YiimpClient ¶
type YiimpClient struct {
// contains filtered or unexported fields
}
func NewYiimpClient ¶
func (*YiimpClient) GetCurrencies ¶
func (client *YiimpClient) GetCurrencies() (Currencies, error)
func (*YiimpClient) GetStatus ¶
func (client *YiimpClient) GetStatus() (PoolStatus, error)
func (*YiimpClient) GetWallet ¶
func (client *YiimpClient) GetWallet(address string) (Wallet, error)
func (*YiimpClient) GetWalletEx ¶
func (client *YiimpClient) GetWalletEx(address string) (WalletEx, error)
func (YiimpClient) SetDebug ¶
func (client YiimpClient) SetDebug(debug bool)
Click to show internal directories.
Click to hide internal directories.