Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressTxsConfirmedPayload ¶
type AddressTxsConfirmedPayload struct { Template string `json:"template" binding:"required,eq=address_txs_confirmed"` Data struct { Address string `json:"address" binding:"required"` } `json:"data"` }
func (*AddressTxsConfirmedPayload) ToNotification ¶
func (p *AddressTxsConfirmedPayload) ToNotification(query *MobilePushWebHookQuery) *notify.Notification
type LnurlPayInfoPayload ¶
type LnurlPayInfoPayload struct { Template string `json:"template" binding:"required,eq=lnurlpay_info"` Data struct { CallbackURL string `json:"callback_url" binding:"required"` ReplyURL string `json:"reply_url" binding:"required"` } `json:"data"` }
func (*LnurlPayInfoPayload) ToNotification ¶
func (p *LnurlPayInfoPayload) ToNotification(query *MobilePushWebHookQuery) *notify.Notification
type LnurlPayInvoicePayload ¶
type LnurlPayInvoicePayload struct { Template string `json:"template" binding:"required,eq=lnurlpay_invoice"` Data struct { Amount uint64 `json:"amount" binding:"required,min=1"` ReplyURL string `json:"reply_url" binding:"required"` } `json:"data"` }
func (*LnurlPayInvoicePayload) ToNotification ¶
func (p *LnurlPayInvoicePayload) ToNotification(query *MobilePushWebHookQuery) *notify.Notification
type MobilePushWebHookQuery ¶
type NotificationConvertible ¶
type NotificationConvertible interface {
ToNotification(query *MobilePushWebHookQuery) *notify.Notification
}
type PaymentReceivedPayload ¶
type PaymentReceivedPayload struct { Template string `json:"template" binding:"required,eq=payment_received"` Data struct { PaymentHash string `json:"payment_hash" binding:"required"` } `json:"data"` }
func (*PaymentReceivedPayload) ToNotification ¶
func (p *PaymentReceivedPayload) ToNotification(query *MobilePushWebHookQuery) *notify.Notification
type SwapUpdatedPayload ¶
type SwapUpdatedPayload struct { Event string `json:"event" binding:"required,eq=swap.update"` Data struct { Id string `json:"id" binding:"required"` Status string `json:"status" binding:"required"` } `json:"data"` }
func (*SwapUpdatedPayload) ToNotification ¶
func (p *SwapUpdatedPayload) ToNotification(query *MobilePushWebHookQuery) *notify.Notification
type TxConfirmedPayload ¶
type TxConfirmedPayload struct { Template string `json:"template" binding:"required,eq=tx_confirmed"` Data struct { TxID string `json:"tx_id" binding:"required"` } `json:"data"` }
func (*TxConfirmedPayload) ToNotification ¶
func (p *TxConfirmedPayload) ToNotification(query *MobilePushWebHookQuery) *notify.Notification
Click to show internal directories.
Click to hide internal directories.