Documentation
¶
Index ¶
Constants ¶
View Source
const ( PAYMENT_RECEIVED_NOTIFICATION = "payment_received" PAYMENT_SENT_NOTIFICATION = "payment_sent" HOLD_INVOICE_ACCEPTED_NOTIFICATION = "hold_invoice_accepted" )
Variables ¶
This section is empty.
Functions ¶
func NewNip47NotificationQueue ¶
func NewNip47NotificationQueue() *nip47NotificationQueue
Queue events that will be consumed when the relay connection is online
Types ¶
type HoldInvoiceAcceptedNotification ¶ added in v1.18.0
type HoldInvoiceAcceptedNotification struct {
models.Transaction
}
type Nip47NotificationQueue ¶
type Nip47Notifier ¶
type Nip47Notifier struct {
// contains filtered or unexported fields
}
func NewNip47Notifier ¶
func NewNip47Notifier(pool nostrmodels.SimplePool, db *gorm.DB, cfg config.Config, keys keys.Keys, permissionsSvc permissions.PermissionsService) *Nip47Notifier
func (*Nip47Notifier) ConsumeEvent ¶
type Notification ¶
type Notification struct {
Notification interface{} `json:"notification,omitempty"`
NotificationType string `json:"notification_type"`
}
type PaymentReceivedNotification ¶
type PaymentReceivedNotification struct {
models.Transaction
}
type PaymentSentNotification ¶
type PaymentSentNotification struct {
models.Transaction
}
Click to show internal directories.
Click to hide internal directories.