Documentation ¶
Index ¶
- type MposClient
- func (client *MposClient) GetPoolHashrate() (float64, error)
- func (client *MposClient) GetPoolInfo() (PoolInfo, error)
- func (client *MposClient) GetPoolStatus() (PoolStatus, error)
- func (client *MposClient) GetUserBalance() (UserBalance, error)
- func (client *MposClient) GetUserStatus() (UserStatus, error)
- func (client *MposClient) GetUserTransactions() (UserTransactions, error)
- func (client *MposClient) GetUserWorkers() ([]UserWorkers, error)
- func (client MposClient) SetDebug(debug bool)
- type MposRequest
- type PoolInfo
- type PoolStatus
- type TransactionTimestamp
- type UserBalance
- type UserShares
- type UserStatus
- type UserTransaction
- type UserTransactionSummary
- type UserTransactions
- type UserWorkers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MposClient ¶
type MposClient struct {
// contains filtered or unexported fields
}
func NewMposClient ¶
func (*MposClient) GetPoolHashrate ¶
func (client *MposClient) GetPoolHashrate() (float64, error)
func (*MposClient) GetPoolInfo ¶
func (client *MposClient) GetPoolInfo() (PoolInfo, error)
func (*MposClient) GetPoolStatus ¶
func (client *MposClient) GetPoolStatus() (PoolStatus, error)
func (*MposClient) GetUserBalance ¶
func (client *MposClient) GetUserBalance() (UserBalance, error)
func (*MposClient) GetUserStatus ¶
func (client *MposClient) GetUserStatus() (UserStatus, error)
func (*MposClient) GetUserTransactions ¶
func (client *MposClient) GetUserTransactions() (UserTransactions, error)
func (*MposClient) GetUserWorkers ¶
func (client *MposClient) GetUserWorkers() ([]UserWorkers, error)
func (MposClient) SetDebug ¶
func (client MposClient) SetDebug(debug bool)
type MposRequest ¶
type PoolInfo ¶
type PoolInfo struct { Currency string `json:"currency"` CoinName string `json:"coinname"` CoinTarget string `json:"cointarget"` CoinDiffChangeTarget int `json:"coindiffchangetarget"` Algorithm string `json:"algorithm"` StratumPort uint16 `json:"stratumport,string"` PayoutSystem string `json:"payout_system"` Confirmations uint32 `json:"confirmations"` MinAPThreshold float64 `json:"min_ap_threshold"` MaxAPThreshold float64 `json:"max_ap_threshold"` RewardType string `json:"reward_type"` Reward float64 `json:"reward"` TxFee float64 `json:"txfee"` TxFeeManual float64 `json:"txfee_manual"` TxFeeAuto float64 `json:"txfee_auto"` Fees float64 `json:"fees"` }
type PoolStatus ¶
type PoolStatus struct { Poolname string `json:"pool_name"` Hashrate float64 `json:"hashrate"` Efficiency float64 `json:"efficiency"` Progress float64 `json:"progress"` Workers uint32 `json:"workers"` CurrentNetworkBlock uint32 `json:"currentnetworkblock"` NextNetworkBlock uint32 `json:"nextnetworkblock"` LastBlock uint32 `json:"lastblock"` NetworkDiff float64 `json:"networkdiff"` EstTime float64 `json:"esttime"` TimeSinceLast uint32 `json:"timesincelast"` NetHashRate float64 `json:"nethashrate"` }
func (*PoolStatus) UnmarshalJSON ¶
func (s *PoolStatus) UnmarshalJSON(data []byte) error
type TransactionTimestamp ¶
func (*TransactionTimestamp) MarshalJSON ¶
func (tt *TransactionTimestamp) MarshalJSON() ([]byte, error)
MarshalJSON override marshalJSON
func (*TransactionTimestamp) String ¶
func (tt *TransactionTimestamp) String() string
String returns it's string representation
func (*TransactionTimestamp) UnmarshalJSON ¶
func (tt *TransactionTimestamp) UnmarshalJSON(b []byte) (err error)
UnmarshalJSON override unmarshalJSON
type UserBalance ¶
type UserBalance struct { Confirmed float64 `json:"confirmed"` Unconfirmed float64 `json:"unconfirmed"` Orphaned float64 `json:"orphaned"` }
func (*UserBalance) UnmarshalJSON ¶
func (s *UserBalance) UnmarshalJSON(data []byte) error
type UserShares ¶
type UserShares struct {}
type UserStatus ¶
func (*UserStatus) UnmarshalJSON ¶
func (s *UserStatus) UnmarshalJSON(data []byte) error
type UserTransaction ¶
type UserTransaction struct { Id int `json:"id"` Username string `json:"username"` Type string `json:"type"` Amount float64 `json:"amount"` CoinAddress string `json:"coin_address"` Timestamp TransactionTimestamp `json:"timestamp"` TxId string `json:"txid"` Height uint32 `json:"height"` BlockHash string `json:"blockhash"` Confirmations uint16 `json:"confirmations"` }
type UserTransactionSummary ¶
type UserTransactions ¶
type UserTransactions struct { Transactions []UserTransaction `json:"transactions"` TransactionSummary UserTransactionSummary `json:"transactionsummary"` }
type UserWorkers ¶
Click to show internal directories.
Click to hide internal directories.