Documentation
¶
Index ¶
- func Run(notifier *notify.Notifier, channel *channel.HttpCallbackChannel, ...) error
- type AddressTxsConfirmedPayload
- type InvoiceRequestPayload
- type LnurlPayInfoPayload
- type LnurlPayInvoicePayload
- type LnurlPayVerifyPayload
- type MobilePushWebHookQuery
- type NotificationConvertible
- type NwcEventPayload
- type PaymentReceivedPayload
- type SwapUpdatedPayload
- type TxConfirmedPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(notifier *notify.Notifier, channel *channel.HttpCallbackChannel, config *config.HTTPConfig) error
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) RequiresCallback ¶
func (p *AddressTxsConfirmedPayload) RequiresCallback() bool
func (*AddressTxsConfirmedPayload) ToNotification ¶
func (p *AddressTxsConfirmedPayload) ToNotification(query *MobilePushWebHookQuery) *notify.Notification
type InvoiceRequestPayload ¶
type InvoiceRequestPayload struct {
Event string `json:"event" binding:"required,eq=invoice.request"`
Data struct {
Offer string `json:"offer" binding:"required"`
InvoiceRequest string `json:"invoiceRequest" binding:"required"`
} `json:"data"`
}
func (*InvoiceRequestPayload) RequiresCallback ¶
func (p *InvoiceRequestPayload) RequiresCallback() bool
func (*InvoiceRequestPayload) ToNotification ¶
func (p *InvoiceRequestPayload) 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) RequiresCallback ¶
func (p *LnurlPayInfoPayload) RequiresCallback() bool
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"`
Comment *string `json:"comment"`
ReplyURL string `json:"reply_url" binding:"required"`
VerifyURL *string `json:"verify_url"`
Nostr *string `json:"nostr"`
} `json:"data"`
}
func (*LnurlPayInvoicePayload) RequiresCallback ¶
func (p *LnurlPayInvoicePayload) RequiresCallback() bool
func (*LnurlPayInvoicePayload) ToNotification ¶
func (p *LnurlPayInvoicePayload) ToNotification(query *MobilePushWebHookQuery) *notify.Notification
type LnurlPayVerifyPayload ¶
type LnurlPayVerifyPayload struct {
Template string `json:"template" binding:"required,eq=lnurlpay_verify"`
Data struct {
PaymentHash string `json:"payment_hash" binding:"required"`
ReplyURL string `json:"reply_url" binding:"required"`
} `json:"data"`
}
func (*LnurlPayVerifyPayload) RequiresCallback ¶
func (p *LnurlPayVerifyPayload) RequiresCallback() bool
func (*LnurlPayVerifyPayload) ToNotification ¶
func (p *LnurlPayVerifyPayload) ToNotification(query *MobilePushWebHookQuery) *notify.Notification
type MobilePushWebHookQuery ¶
type NotificationConvertible ¶
type NotificationConvertible interface {
RequiresCallback() bool
ToNotification(query *MobilePushWebHookQuery) *notify.Notification
}
type NwcEventPayload ¶
type NwcEventPayload struct {
Template string `json:"template" binding:"required,eq=nwc_event"`
Data struct {
Event string `json:"event" binding:"required"`
} `json:"data"`
}
func (*NwcEventPayload) RequiresCallback ¶
func (p *NwcEventPayload) RequiresCallback() bool
func (*NwcEventPayload) ToNotification ¶
func (p *NwcEventPayload) 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) RequiresCallback ¶
func (p *PaymentReceivedPayload) RequiresCallback() bool
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) RequiresCallback ¶
func (p *SwapUpdatedPayload) RequiresCallback() bool
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) RequiresCallback ¶
func (p *TxConfirmedPayload) RequiresCallback() bool
func (*TxConfirmedPayload) ToNotification ¶
func (p *TxConfirmedPayload) ToNotification(query *MobilePushWebHookQuery) *notify.Notification
Click to show internal directories.
Click to hide internal directories.