chart

package
v0.0.0-...-5ed304f Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 New

func New(pooldbClient, tsdbClient *dbcl.Client, redisClient *redis.Client) *Client

func (*Client) CollectBlocks

func (c *Client) CollectBlocks(node types.MiningNode) error

func (*Client) FetchBlockIntervals

func (c *Client) FetchBlockIntervals(chain string) ([]time.Time, error)

func (*Client) FetchEarningIntervals

func (c *Client) FetchEarningIntervals(chain string) ([]time.Time, error)

func (*Client) FetchShareIntervals

func (c *Client) FetchShareIntervals(chain string) ([]string, error)

func (*Client) ProcessBlocks

func (c *Client) ProcessBlocks(timestamp time.Time, node types.MiningNode) error

func (*Client) ProcessEarnings

func (c *Client) ProcessEarnings(timestamp time.Time, node types.MiningNode) error

func (*Client) ProcessPrices

func (c *Client) ProcessPrices(chain string) error

func (*Client) ProcessShares

func (c *Client) ProcessShares(chain, interval string, node types.MiningNode) error

Jump to

Keyboard shortcuts

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