pools

package
v0.0.0-...-7c1506c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPayout

func GetPayout(pool Pool, payoutID int, testnet bool) payouts.Payout

func Newzpool

func Newzpool() *zpool

Types

type HashCryptos

type HashCryptos struct {
	LastFetchedPayout time.Time
	LastPayout        uint64
}

func NewHashCryptos

func NewHashCryptos() *HashCryptos

func (*HashCryptos) GetFee

func (p *HashCryptos) GetFee() float64

func (*HashCryptos) GetID

func (p *HashCryptos) GetID() int

func (*HashCryptos) GetName

func (p *HashCryptos) GetName() string

func (*HashCryptos) GetPassword

func (p *HashCryptos) GetPassword(payoutTicker string, network string) string

func (*HashCryptos) GetPayouts

func (p *HashCryptos) GetPayouts(testnet bool) []payouts.Payout

func (*HashCryptos) GetPendingPayout

func (p *HashCryptos) GetPendingPayout(addr string) uint64

func (*HashCryptos) GetStratumUrl

func (p *HashCryptos) GetStratumUrl() string

func (*HashCryptos) OpenBrowserPayoutInfo

func (p *HashCryptos) OpenBrowserPayoutInfo(addr string)

type P2Pool

type P2Pool struct {
	LastFetchedPayout time.Time
	LastPayout        uint64
	LastFetchedFee    time.Time
	LastFee           float64
}

func NewP2Pool

func NewP2Pool() *P2Pool

func (*P2Pool) GetFee

func (p *P2Pool) GetFee() (fee float64)

func (*P2Pool) GetID

func (p *P2Pool) GetID() int

func (*P2Pool) GetName

func (p *P2Pool) GetName() string

func (*P2Pool) GetPassword

func (p *P2Pool) GetPassword(payoutTicker string, network string) string

func (*P2Pool) GetPayouts

func (p *P2Pool) GetPayouts(testnet bool) []payouts.Payout

func (*P2Pool) GetPendingPayout

func (p *P2Pool) GetPendingPayout(addr string) uint64

func (*P2Pool) GetStratumUrl

func (p *P2Pool) GetStratumUrl() string

func (*P2Pool) OpenBrowserPayoutInfo

func (p *P2Pool) OpenBrowserPayoutInfo(addr string)

type Pool

type Pool interface {
	GetPayouts(testnet bool) []payouts.Payout
	GetPendingPayout(addr string) uint64
	GetStratumUrl() string
	GetPassword(payoutTicker string, network string) string
	GetName() string
	GetID() int
	GetFee() float64
	OpenBrowserPayoutInfo(addr string)
}

func GetPool

func GetPool(poolID int, testnet bool) Pool

func GetPools

func GetPools(testnet bool) []Pool

type Zergpool

type Zergpool struct {
	LastFetchedPayout time.Time
	LastPayout        uint64
}

func NewZergpool

func NewZergpool() *Zergpool

func (*Zergpool) GetFee

func (p *Zergpool) GetFee() float64

func (*Zergpool) GetID

func (p *Zergpool) GetID() int

func (*Zergpool) GetName

func (p *Zergpool) GetName() string

func (*Zergpool) GetPassword

func (p *Zergpool) GetPassword(payoutTicker string, network string) string

func (*Zergpool) GetPayouts

func (p *Zergpool) GetPayouts(testnet bool) []payouts.Payout

func (*Zergpool) GetPendingPayout

func (p *Zergpool) GetPendingPayout(addr string) uint64

func (*Zergpool) GetStratumUrl

func (p *Zergpool) GetStratumUrl() string

func (*Zergpool) OpenBrowserPayoutInfo

func (p *Zergpool) OpenBrowserPayoutInfo(addr string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL