notifications

package
v1.22.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

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 Nip47NotificationQueue interface {
	Channel() <-chan *events.Event
	AddToQueue(event *events.Event)
}

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

func (notifier *Nip47Notifier) ConsumeEvent(ctx context.Context, event *events.Event) error

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
}

Jump to

Keyboard shortcuts

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