Documentation ¶
Index ¶
- type Client
- func (c *Client) AddAcceptedShare(chain, interval, compoundID string, soloMinerID uint64, count int, ...) error
- func (c *Client) AddInterval(chain, interval string) error
- func (c *Client) AddInvalidShare(chain, interval, compoundID string, soloMinerID uint64, count int) error
- func (c *Client) AddMinerIPAddressesInactive(chain string, values []string) error
- func (c *Client) AddRejectedShare(chain, interval, compoundID string, soloMinerID uint64, count int) error
- func (c *Client) AddShareIndexHeight(chain string, height uint64) error
- func (c *Client) AddUniqueShare(chain string, height uint64, hash string) (bool, error)
- func (c *Client) DeleteInterval(chain, interval string) error
- func (c *Client) DeleteShareIndexHeight(chain string, height uint64) error
- func (c *Client) GetCachedGlobalLastProfits() ([]*tsdb.Block, error)
- func (c *Client) GetCachedGlobalLastShares() ([]*tsdb.Share, error)
- func (c *Client) GetCachedLuckByChain(chain string) (float64, error)
- func (c *Client) GetCachedMinersByChain(chain string) (int64, error)
- func (c *Client) GetCachedWorkersByChain(chain string) (int64, error)
- func (c *Client) GetChartBlocksLastTime(chain string) (time.Time, error)
- func (c *Client) GetChartEarningsLastTime(chain string) (time.Time, error)
- func (c *Client) GetChartRoundsLastTime(chain string) (time.Time, error)
- func (c *Client) GetChartSharesLastTime(chain string) (time.Time, error)
- func (c *Client) GetIntervalAcceptedShares(chain, interval string) (map[string]uint64, map[string]uint64, error)
- func (c *Client) GetIntervalInvalidShares(chain, interval string) (map[string]uint64, map[string]uint64, error)
- func (c *Client) GetIntervalRejectedShares(chain, interval string) (map[string]uint64, map[string]uint64, error)
- func (c *Client) GetIntervals(chain string) ([]string, error)
- func (c *Client) GetMinerDifficulties(chain string) (map[string]float64, error)
- func (c *Client) GetMinerID(miner string) (uint64, error)
- func (c *Client) GetMinerIPAddresses(chain string) (map[string]float64, error)
- func (c *Client) GetMinerIPAddressesInactive(chain string) (map[string]bool, error)
- func (c *Client) GetMinerLatencies(chain string) (map[string]float64, error)
- func (c *Client) GetRoundShareCounts(chain string, soloMinerID uint64) (uint64, uint64, uint64, error)
- func (c *Client) GetRoundShares(chain string) (map[uint64]uint64, error)
- func (c *Client) GetRoundSoloShares(chain string, minerID uint64) (uint64, error)
- func (c *Client) GetShareIndexes(chain string) ([]string, error)
- func (c *Client) GetStreamDebugIndexChannel() (*PubSub, error)
- func (c *Client) GetStreamMinerChannel(minerID uint64) (*PubSub, error)
- func (c *Client) GetStreamMinerIndexChannel() (*PubSub, error)
- func (c *Client) GetTopMinerIDs(chain string) ([]uint64, error)
- func (c *Client) GetWorkerID(minerID uint64, worker string) (uint64, error)
- func (c *Client) NewLocker() *redislock.Client
- func (c *Client) NewRateLimiter() *redis_rate.Limiter
- func (c *Client) Ping() error
- func (c *Client) RemoveMinerIPAddresses(chain string, values []string) error
- func (c *Client) RemoveMinerIPAddressesInactive(chain string, values []string) error
- func (c *Client) SetCachedGlobalLastProfits(blocks []*tsdb.Block, exp time.Duration) error
- func (c *Client) SetCachedGlobalLastShares(shares []*tsdb.Share, exp time.Duration) error
- func (c *Client) SetCachedLuckByChain(chain string, luck float64, exp time.Duration) error
- func (c *Client) SetCachedMinersByChain(chain string, miners int64, exp time.Duration) error
- func (c *Client) SetCachedWorkersByChain(chain string, workers int64, exp time.Duration) error
- func (c *Client) SetChartBlocksLastTime(chain string, timestamp time.Time) error
- func (c *Client) SetChartEarningsLastTime(chain string, timestamp time.Time) error
- func (c *Client) SetChartRoundsLastTime(chain string, timestamp time.Time) error
- func (c *Client) SetChartSharesLastTime(chain string, timestamp time.Time) error
- func (c *Client) SetMinerDifficultiesBulk(chain string, values map[string]int64) error
- func (c *Client) SetMinerID(miner string, minerID uint64) error
- func (c *Client) SetMinerIPAddressesBulk(chain string, values map[string]int64) error
- func (c *Client) SetMinerLatenciesBulk(chain string, values map[string]int64) error
- func (c *Client) SetTopMinerIDsBulk(chain string, values map[uint64]float64, increment bool) error
- func (c *Client) SetWorkerID(minerID uint64, worker string, workerID uint64) error
- func (c *Client) WriteToStreamDebugChannel(ip, msg string) error
- func (c *Client) WriteToStreamDebugIndexChannel(msg string) error
- func (c *Client) WriteToStreamMinerChannel(minerID uint64, msg string) error
- func (c *Client) WriteToStreamMinerIndexChannel(msg string) error
- type PubSub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddAcceptedShare ¶
func (*Client) AddInterval ¶
func (*Client) AddInvalidShare ¶
func (*Client) AddMinerIPAddressesInactive ¶
func (*Client) AddRejectedShare ¶
func (*Client) AddShareIndexHeight ¶
func (*Client) AddUniqueShare ¶
func (*Client) DeleteInterval ¶
func (*Client) DeleteShareIndexHeight ¶
func (*Client) GetCachedGlobalLastProfits ¶
func (*Client) GetCachedGlobalLastShares ¶
func (*Client) GetCachedLuckByChain ¶
func (*Client) GetCachedMinersByChain ¶
func (*Client) GetCachedWorkersByChain ¶
func (*Client) GetChartBlocksLastTime ¶
func (*Client) GetChartEarningsLastTime ¶
func (*Client) GetChartRoundsLastTime ¶
func (*Client) GetChartSharesLastTime ¶
func (*Client) GetIntervalAcceptedShares ¶
func (*Client) GetIntervalInvalidShares ¶
func (*Client) GetIntervalRejectedShares ¶
func (*Client) GetMinerDifficulties ¶
func (*Client) GetMinerIPAddresses ¶
func (*Client) GetMinerIPAddressesInactive ¶
func (*Client) GetMinerLatencies ¶
func (*Client) GetRoundShareCounts ¶
func (*Client) GetRoundShares ¶
func (*Client) GetRoundSoloShares ¶
func (*Client) GetStreamDebugIndexChannel ¶
func (*Client) GetStreamMinerChannel ¶
func (*Client) GetStreamMinerIndexChannel ¶
func (*Client) GetWorkerID ¶
func (*Client) NewRateLimiter ¶
func (c *Client) NewRateLimiter() *redis_rate.Limiter
func (*Client) RemoveMinerIPAddresses ¶
func (*Client) RemoveMinerIPAddressesInactive ¶
func (*Client) SetCachedGlobalLastProfits ¶
func (*Client) SetCachedGlobalLastShares ¶
func (*Client) SetCachedLuckByChain ¶
func (*Client) SetCachedMinersByChain ¶
func (*Client) SetCachedWorkersByChain ¶
func (*Client) SetChartBlocksLastTime ¶
func (*Client) SetChartEarningsLastTime ¶
func (*Client) SetChartRoundsLastTime ¶
func (*Client) SetChartSharesLastTime ¶
func (*Client) SetMinerDifficultiesBulk ¶
func (*Client) SetMinerIPAddressesBulk ¶
func (*Client) SetMinerLatenciesBulk ¶
func (*Client) SetTopMinerIDsBulk ¶
func (*Client) SetWorkerID ¶
func (*Client) WriteToStreamDebugChannel ¶
func (*Client) WriteToStreamDebugIndexChannel ¶
func (*Client) WriteToStreamMinerChannel ¶
func (*Client) WriteToStreamMinerIndexChannel ¶
Click to show internal directories.
Click to hide internal directories.