r2d2

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TxSender OUT
	TxSender = "sender"
	// TxReceiver IN
	TxReceiver = "receiver"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalOptions

type ExternalOptions struct {
	Type              string
	DstNotificationID int64
}

ExternalOptions ...

type ResultLastTxADA

type ResultLastTxADA struct {
	Addr          string `json:"addr,omitempty"`
	CtbID         string `json:"ctbId,omitempty"`
	CtbTimeIssued string `json:"ctbTimeIssued,omitempty"`
	FromAddr      string `json:"from_addr,omitempty"`
	ToAddr        string `json:"to_addr,omitempty"`
	Balance       string `json:"balance,omitempty"`
	Ammount       string `json:"ammount,omitempty"`
	TypeTx        string `json:"type_tx,omitempty"`
}

ResultLastTxADA ...

func (*ResultLastTxADA) TemplateDiscord

func (tx *ResultLastTxADA) TemplateDiscord() string

TemplateDiscord ...

func (*ResultLastTxADA) TemplateSMTP

func (tx *ResultLastTxADA) TemplateSMTP() string

TemplateSMTP ...

func (*ResultLastTxADA) TemplateTelegram

func (tx *ResultLastTxADA) TemplateTelegram() string

TemplateTelegram ...

func (*ResultLastTxADA) ToJSON

func (rtx *ResultLastTxADA) ToJSON() string

ToJSON ...

func (*ResultLastTxADA) ToMAP

func (rtx *ResultLastTxADA) ToMAP() (toHashMap map[string]interface{}, err error)

ToMAP ...

func (*ResultLastTxADA) TruncateAddress

func (rtx *ResultLastTxADA) TruncateAddress(address string) string

TruncateAddress ...

type ResultLastTxSOL

type ResultLastTxSOL struct {
	Addr      string `json:"addr,omitempty"`
	TxID      string `json:"tx_id,omitempty"`
	Timestamp string `json:"timestamp,omitempty"`
	FromAddr  string `json:"from_addr,omitempty"`
	ToAddr    string `json:"to_addr,omitempty"`
	Balance   string `json:"balance,omitempty"`
	Ammount   string `json:"ammount,omitempty"`
	TypeTx    string `json:"type_tx,omitempty"`
}

ResultLastTxSOL ...

func (*ResultLastTxSOL) TemplateDiscord

func (tx *ResultLastTxSOL) TemplateDiscord() string

TemplateDiscord ...

func (*ResultLastTxSOL) TemplateSMTP

func (tx *ResultLastTxSOL) TemplateSMTP() string

TemplateSMTP ...

func (*ResultLastTxSOL) TemplateTelegram

func (tx *ResultLastTxSOL) TemplateTelegram() string

TemplateTelegram ...

func (*ResultLastTxSOL) ToJSON

func (tx *ResultLastTxSOL) ToJSON() string

ToJSON ...

func (*ResultLastTxSOL) ToMAP

func (tx *ResultLastTxSOL) ToMAP() (toHashMap map[string]interface{}, err error)

ToMAP ...

func (*ResultLastTxSOL) TruncateAddress

func (tx *ResultLastTxSOL) TruncateAddress(address string) string

TruncateAddress ...

type TxRepository

type TxRepository struct {
	Option        ExternalOptions
	TGClient      *tgbotapi.BotAPI
	DiscordClient notify.DiscordClient
	WebHookClient notify.WebHookClient
	SMTPClient    notify.Sender
}

TxRepository ...

func NewTxRepository

func NewTxRepository(options ExternalOptions, clients ...interface{}) TxRepository

NewTxRepository ...

func (*TxRepository) SendNotification

func (r *TxRepository) SendNotification(ctx context.Context, data interface{}) error

SendNotification ...

Jump to

Keyboard shortcuts

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