telegram

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: 6 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 {
	Enabled     bool
	Key         string
	InfoChatID  int64
	ErrorChatID int64
}

func New

func New(args map[string]string) (*Client, error)

func (*Client) NotifyConfirmPayout

func (t *Client) NotifyConfirmPayout(id uint64) error

func (*Client) NotifyFinalizeDeposit

func (t *Client) NotifyFinalizeDeposit(id uint64) error

func (*Client) NotifyFinalizeExchangeBatch

func (t *Client) NotifyFinalizeExchangeBatch(id uint64) error

func (*Client) NotifyFinalizeTrade

func (t *Client) NotifyFinalizeTrade(id uint64) error

func (*Client) NotifyFinalizeWithdrawal

func (t *Client) NotifyFinalizeWithdrawal(id uint64) error

func (*Client) NotifyInitiateDeposit

func (t *Client) NotifyInitiateDeposit(
	id uint64,
	chain string,
	value float64,
) error

func (*Client) NotifyInitiateExchangeBatch

func (t *Client) NotifyInitiateExchangeBatch(id uint64) error

func (*Client) NotifyInitiatePayout

func (t *Client) NotifyInitiatePayout(
	id uint64,
	chain, address, explorerURL string,
	value float64,
) error

func (*Client) NotifyInitiateTrade

func (t *Client) NotifyInitiateTrade(
	id uint64,
	pathID, stageID int,
	market, direction string,
	value float64,
) error

func (*Client) NotifyInitiateWithdrawal

func (t *Client) NotifyInitiateWithdrawal(
	id uint64,
	chain string,
	value float64,
) error

func (*Client) NotifyNewBlockCandidate

func (t *Client) NotifyNewBlockCandidate(
	chain, explorerURL string,
	height uint64,
	luck float64,
) error

func (*Client) NotifyNewHost

func (t *Client) NotifyNewHost(host, env string) error

func (*Client) NotifyNodeInstanceLaunched

func (t *Client) NotifyNodeInstanceLaunched(chain, region, ip string) error

func (*Client) NotifyNodeInstanceTerminated

func (t *Client) NotifyNodeInstanceTerminated(chain, region, ip string) error

func (*Client) NotifyTransactionSent

func (t *Client) NotifyTransactionSent(
	id uint64,
	chain, txid, explorerURL string,
	value float64,
) error

func (*Client) SendFatal

func (t *Client) SendFatal(err, app, env string) error

func (*Client) SendPanic

func (t *Client) SendPanic(err, app, env string) error

type StatusMessage

type StatusMessage struct {
	Chain       string
	RoundShares uint64
	Candidates  int
	Blocks      int
	Uncles      int
	Orphans     int
	Hashrate    float64
	Luck        float64
	Rewards     float64
}

Jump to

Keyboard shortcuts

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