Documentation ¶
Index ¶
- Constants
- type ExternalOptions
- type ResultLastTxADA
- func (tx *ResultLastTxADA) TemplateDiscord() string
- func (tx *ResultLastTxADA) TemplateSMTP() string
- func (tx *ResultLastTxADA) TemplateTelegram() string
- func (rtx *ResultLastTxADA) ToJSON() string
- func (rtx *ResultLastTxADA) ToMAP() (toHashMap map[string]interface{}, err error)
- func (rtx *ResultLastTxADA) TruncateAddress(address string) string
- type ResultLastTxSOL
- func (tx *ResultLastTxSOL) TemplateDiscord() string
- func (tx *ResultLastTxSOL) TemplateSMTP() string
- func (tx *ResultLastTxSOL) TemplateTelegram() string
- func (tx *ResultLastTxSOL) ToJSON() string
- func (tx *ResultLastTxSOL) ToMAP() (toHashMap map[string]interface{}, err error)
- func (tx *ResultLastTxSOL) TruncateAddress(address string) string
- type TxRepository
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 ¶
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) 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) 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 ...
Click to show internal directories.
Click to hide internal directories.