http

package
v0.0.0-...-f3cad7a Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(notifier *notify.Notifier, 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) ToNotification

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

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

type MobilePushWebHookQuery

type MobilePushWebHookQuery struct {
	Platform string  `form:"platform" binding:"required,oneof=ios android"`
	Token    string  `form:"token" binding:"required"`
	AppData  *string `form:"app_data"`
}

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

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

Jump to

Keyboard shortcuts

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